[PR #62] [MERGED] Restrict api access #338

Closed
opened 2026-03-03 11:29:27 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dflow-sh/dflow/pull/62
Author: @manikanta9176
Created: 4/17/2025
Status: Merged
Merged: 4/17/2025
Merged by: @manikanta9176

Base: mainHead: restrict-api-access


📝 Commits (3)

  • 331503f chore: added roles field to users collection
  • 2bb6c0b chore: added admin access control based on role
  • a4f09d3 chore: restricted access to collections for admins with permissions for CRUD, version reading, and unlocking

📊 Changes

11 files changed (+85 additions, -29 deletions)

View changed files

📝 src/payload-types.ts (+2 -0)
src/payload/access/isAdmin.ts (+11 -0)
📝 src/payload/collections/CloudProviderAccounts/index.ts (+9 -0)
📝 src/payload/collections/Deployments/index.ts (+7 -4)
📝 src/payload/collections/GitProviders/index.ts (+7 -4)
📝 src/payload/collections/Projects/index.ts (+7 -5)
📝 src/payload/collections/SSHkeys/index.ts (+7 -4)
📝 src/payload/collections/SecurityGroups/index.ts (+7 -4)
📝 src/payload/collections/Servers/index.ts (+7 -4)
📝 src/payload/collections/Services/index.ts (+7 -4)
📝 src/payload/collections/Users/index.ts (+14 -0)

📄 Description

#58


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dflow-sh/dflow/pull/62 **Author:** [@manikanta9176](https://github.com/manikanta9176) **Created:** 4/17/2025 **Status:** ✅ Merged **Merged:** 4/17/2025 **Merged by:** [@manikanta9176](https://github.com/manikanta9176) **Base:** `main` ← **Head:** `restrict-api-access` --- ### 📝 Commits (3) - [`331503f`](https://github.com/dflow-sh/dflow/commit/331503f934f67cae63201fd006917da71ba8e15c) chore: added roles field to users collection - [`2bb6c0b`](https://github.com/dflow-sh/dflow/commit/2bb6c0be3f98ee2cedad2c6ec9b9245cff1f94d8) chore: added admin access control based on role - [`a4f09d3`](https://github.com/dflow-sh/dflow/commit/a4f09d30e10bbf042c6dfd98061c08220defea4c) chore: restricted access to collections for admins with permissions for CRUD, version reading, and unlocking ### 📊 Changes **11 files changed** (+85 additions, -29 deletions) <details> <summary>View changed files</summary> 📝 `src/payload-types.ts` (+2 -0) ➕ `src/payload/access/isAdmin.ts` (+11 -0) 📝 `src/payload/collections/CloudProviderAccounts/index.ts` (+9 -0) 📝 `src/payload/collections/Deployments/index.ts` (+7 -4) 📝 `src/payload/collections/GitProviders/index.ts` (+7 -4) 📝 `src/payload/collections/Projects/index.ts` (+7 -5) 📝 `src/payload/collections/SSHkeys/index.ts` (+7 -4) 📝 `src/payload/collections/SecurityGroups/index.ts` (+7 -4) 📝 `src/payload/collections/Servers/index.ts` (+7 -4) 📝 `src/payload/collections/Services/index.ts` (+7 -4) 📝 `src/payload/collections/Users/index.ts` (+14 -0) </details> ### 📄 Description #58 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 11:29:27 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dflow#338
No description provided.