How do you configure authorization with JCasC?
IntermediateConceptPlugins, JCasC & Jenkins on Kubernetes
Answer
With matrix-auth 3.x:
jenkins:
securityRealm:
local:
allowsSignup: false
users:
- id: admin
password: "${JENKINS_ADMIN_PASSWORD}"
authorizationStrategy:
globalMatrix:
entries:
- user:
name: admin
permissions: ["Overall/Administer"]
- group:
name: authenticated
permissions: ["Overall/Read", "Job/Read", "Job/Build", "Job/Cancel"]
In real organizations the realm is LDAP, SAML or OIDC, with groups mapped from the identity provider.
More on Plugins, JCasC & Jenkins on Kubernetes
How do you manage plugins in a reproducible way?IntermediateWhat does `jenkins-plugin-cli` resolve for you, and what flags matter?IntermediateWhy should you keep the number of plugins low?BeginnerWhat is JCasC and how is it loaded?BeginnerWhat are the top-level root elements in a JCasC file?IntermediateHow do you inject secrets into JCasC without committing them?Advanced