Skip to content

feat: BE-76 Contributor Branch Environment Permissions#615

Open
amankoli09 wants to merge 2 commits into
Pulsefy:mainfrom
amankoli09:feat/be-branch-env-permissions
Open

feat: BE-76 Contributor Branch Environment Permissions#615
amankoli09 wants to merge 2 commits into
Pulsefy:mainfrom
amankoli09:feat/be-branch-env-permissions

Conversation

@amankoli09

Copy link
Copy Markdown

Closes #560

Summary

This PR implements permission rules that control which contributors can create, modify, or tear down preview environments linked to their branches, resolving BE-76.

Changes

  • BranchEnvironmentsModule: Introduced a new backend module with controllers and services specifically for branch environment APIs.
  • Roles & Permissions Enforcement: Enforced distinct roles (owner, reviewer, and admin). Contributors can only manage environments they are allowed to touch, while reviewers/admins can intervene when needed.
  • Auditing: Added integration with AuditService so that destructive operations (teardown, modify) and permission grants are strictly audited.
  • Test Coverage: Added robust test cases to verify unauthorized branch/environment operations and audit logs in branch-environments.service.unit.spec.ts.

@drips-wave

drips-wave Bot commented Jun 27, 2026

Copy link
Copy Markdown

@amankoli09 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Cedarich

Copy link
Copy Markdown
Contributor

@amankoli09 fix workflow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BE-76: Contributor Branch Environment Permissions

2 participants