Skip to content

Grant machinist RBAC to create image pull secrets#62

Merged
marcopiraccini merged 2 commits into
mainfrom
create-application-secrets
Jul 10, 2026
Merged

Grant machinist RBAC to create image pull secrets#62
marcopiraccini merged 2 commits into
mainfrom
create-application-secrets

Conversation

@marcopiraccini

@marcopiraccini marcopiraccini commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

The deployer API in icc-3 creates a dockerconfigjson Secret from the registry credentials in a deploy request so a private image can be pulled, and machinist applies it to the target namespace. This grants the plt-pod-manager ServiceAccount the permission to do that.

Adds secrets: [create, patch] to the plt-pod-manager ClusterRole, next to the existing workload-create permissions (gated on features.skew_protection.manage_mode). Least privilege: the Secret is written with server-side apply, so only create and patch are needed -- never get (which would expose secret contents), nor update or delete.

Requires platformatic/machinist#74 and is required by platformatic/icc-3#909.

Signed-off-by: marcopiraccini <marco.piraccini@gmail.com>
@marcopiraccini
marcopiraccini marked this pull request as ready for review July 10, 2026 12:26
@marcopiraccini marcopiraccini changed the title RBAC to machinist to create K8s secrets Grant machinist RBAC to create image pull secrets Jul 10, 2026
Signed-off-by: marcopiraccini <marco.piraccini@gmail.com>

@leorossi leorossi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@marcopiraccini
marcopiraccini merged commit 3de8085 into main Jul 10, 2026
1 check passed
@marcopiraccini
marcopiraccini deleted the create-application-secrets branch July 10, 2026 14:24
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.

2 participants