Skip to main content

DeployStage

One deploy stage: the bundle target names the object, and spec.subject is the exact CI subject (a GitHub Actions sub) allowed to deploy to that stage. The operator renders one Keycloak client per object; Nova authorizes a deploy whose token was issued to that client.

Spec​

FieldTypeRequiredDefaultDescriptionConstraints
spec.audiencestringNostardelt-deployThe audience the realm client's mapper puts in the token this stage accepts. Default stardelt-deploy.min 1, max 128; pattern ^[A-Za-z0-9][A-Za-z0-9._:-]*$
spec.environmentstring (nullable)NoThe GitHub environment the token was issued for, when the subject names one. Pinning an environment drops the ref part of the subject, so the two are either/or.min 1, max 64; pattern ^[a-z0-9][a-z0-9-]*$
spec.groupstring (nullable)NoThe owner group this stage deploys: Nova lets a deploy principal whose client is this stage's act on a bundle of this group only. Optional; without it the deploy principal gets the "own group" refusal, which is the behaviour before this field existed.min 1, max 64; pattern ^[A-Za-z0-9][A-Za-z0-9._-]*$
spec.subjectstringYesThe exact CI subject as the identity provider receives it: repo:<owner>/<name>:ref:refs/heads/<branch> or repo:<owner>/<name>:environment:<name> (with GitHub's immutable ids: repo:<owner>@<id>/<name>@<id>:ref:refs/heads/<branch>).min 8, max 512; pattern ^repo:[^\s]+:(ref:refs/heads/[^\s]+|environment:[a-z0-9][a-z0-9-]*)$

Status​

No fields.