CICD-420 · Developer access provisioning
Encyclopedia · Platform engineering and internal developer platforms · All snippets
Previous · CICD-419 · Next · CICD-421
1. Where it fits
- Placement CI run step or authorized lab terminal.
- Prerequisites platform sandbox, scoped identities and reviewed service catalog or provisioning policy.
- Platforms kubernetes, local-lab.
- Parameters
GROUP_NAME,TEAM_NAMESPACE.
2. Copy the snippet
bash
[[ "${TEAM_NAMESPACE:?}" =~ ^team-[a-z0-9-]+$ ]]
kubectl -n "$TEAM_NAMESPACE" create rolebinding developers --clusterrole=view --group="${GROUP_NAME:?}" --dry-run=client -o yaml | kubectl apply -f -3. How it works
Client dry run renders a candidate object locally so it can be reviewed or piped into a separate apply.
4. Verify the result
Use an approved identity-provider group and verify view is the desired role. Test access as an approved member.
Watch for. Use an independently reviewed target, owner and scoped write identity. Confirm the resulting state separately.
Validation syntax-validated (Bash parse). Status definitions.