Skip to content

fix: add secrets and pods RBAC rules for admin-api builder#200

Open
Bi-Gen wants to merge 1 commit into
apache:mainfrom
Bi-Gen:fix/rbac-deployer-secrets-pods
Open

fix: add secrets and pods RBAC rules for admin-api builder#200
Bi-Gen wants to merge 1 commit into
apache:mainfrom
Bi-Gen:fix/rbac-deployer-secrets-pods

Conversation

@Bi-Gen
Copy link
Copy Markdown

@Bi-Gen Bi-Gen commented May 26, 2026

Summary

The deployer (admin-api builder) requires RBAC access to secrets and pods resources that are missing from the current nuvolaris-wsku-role definition.

Mirrors apache/openserverless-operator#101 — keeping both copies of the file in sync.

Added rules

Secrets (full CRUD):

  • build_service.py: create_registry_secret() for docker registry auth, get_secret() to read registry credentials, delete_secret() to clean up after build

Pods and pods/log (read-only):

  • kube_api_client.py: get_pod_by_job_name() to find the buildkit job pod, stream_pod_logs() to monitor build progress, get_pod() to check pod status

Test plan

  • Tested on k3s cluster (lorenzo1.hz.nuvolaris.dev)
  • Without these permissions the builder fails with RBAC errors
  • With these permissions: full deployer pipeline works (build, push, deploy)
  • Cotemar pipeline (6 stages, custom runtime) deployed successfully
  • Running in production for 3 weeks

Related: nuvolaris/projects#409

The deployer (admin-api builder) requires access to secrets and pods
that are not included in the current wsku role definition.

Secrets are used by build_service.py:
- create_registry_secret() for docker registry auth
- get_secret() to read registry credentials
- delete_secret() to clean up after build

Pods are used by kube_api_client.py:
- get_pod_by_job_name() to find the buildkit job pod
- stream_pod_logs() to monitor build progress
- get_pod() to check pod status

Mirrors apache/openserverless-operator#101.
Tested on k3s (lorenzo1) with Cotemar pipeline deployment.

Related: nuvolaris/projects#409
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.

1 participant