forked from ambient-code/platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Epic: #1
Phase: 2 - RBAC Conversion
Dependencies: #4 (tests passing)
Estimate: 6 hours
Description
Convert the 3 ambient-project ClusterRoles to namespace-scoped Roles that can be deployed to vteam--test1.
Critical Issues Addressed
- ✅ ClusterRole dependencies in operator (Epic: MPP Deployment - Single-Namespace vTeam Implementation #1)
Implementation Tasks
1. Extract ClusterRole Definitions
Extract rules from:
components/manifests/rbac/ambient-project-admin-clusterrole.yamlcomponents/manifests/rbac/ambient-project-edit-clusterrole.yamlcomponents/manifests/rbac/ambient-project-view-clusterrole.yaml
2. Create Namespace-Scoped Roles
New file: vteam-mpp-deployment/roles/ambient-project-admin.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: ambient-project-admin
namespace: vteam--test1
rules:
# Copy all rules from ClusterRole
- apiGroups: ["vteam.ambient-code"]
resources: ["agenticsessions", "projectsettings", "rfeworkflows"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
- apiGroups: ["vteam.ambient-code"]
resources: ["agenticsessions/status", "projectsettings/status", "rfeworkflows/status"]
verbs: ["get", "update", "patch"]
# ... rest of rules ...Repeat for ambient-project-edit and ambient-project-view.
3. Document Role Mapping
Create table showing ClusterRole → Role conversion:
| Original ClusterRole | New Namespace Role | Scope Change |
|---|---|---|
| ambient-project-admin | ambient-project-admin (Role) | cluster-wide → vteam--test1 |
| ambient-project-edit | ambient-project-edit (Role) | cluster-wide → vteam--test1 |
| ambient-project-view | ambient-project-view (Role) | cluster-wide → vteam--test1 |
Acceptance Criteria
- 3 Role YAML files created
- All rules copied accurately from ClusterRoles
- Namespace set to vteam--test1
- Documentation updated
- Files reviewed for accuracy
Files Changed
vteam-mpp-deployment/roles/ambient-project-admin.yaml(new)vteam-mpp-deployment/roles/ambient-project-edit.yaml(new)vteam-mpp-deployment/roles/ambient-project-view.yaml(new)
Branch
feature/mpp-single-namespace-mode
Metadata
Metadata
Assignees
Labels
No labels