Documentation · Administration · Identities
Issuers
Identities → Issuers: the OIDC issuers whose tokens workloads use to read credentials. GitHub Actions and GitLab CI are built in; add your own instances and clusters once, then pick them in trust policies.
Built in
GitHub Actions (https://token.actions.githubusercontent.com) and GitLab CI (gitlab.com) for gitlab.com are always there and cannot be changed. Because everyone shares them, a trust policy using one must pin your account: the repository owner on GitHub, the top-level group on GitLab, with no wildcard in it.
Add an issuer
Add an issuer, give it a name, pick the platform and its address. Credvane works out the issuer URL:
| Platform | You enter | Issuer URL |
|---|---|---|
| Gitea | https://gitea.example.com | the address + /api/actions/oidc |
| Forgejo | https://forgejo.example.com | the address + /api/actions |
| GitHub Enterprise Server | https://github.example.com | the address + /_services/token |
| GitLab (self-managed) | https://gitlab.example.com | the address itself |
| Kubernetes cluster | The cluster's service-account issuer | as entered |
| Another OIDC issuer | The issuer exactly as in the token's iss, for example https://agent.buildkite.com or https://keycloak.example.com/realms/ci | as entered |
For a cluster, this prints its issuer:
kubectl get --raw /.well-known/openid-configuration | jq -r .issuer- Credvane must be able to reach the issuer's discovery document and keys over public
https, unless the issuer's host is inCREDVANE_ALLOWED_PRIVATE_HOSTSin the configuration. - Deleting an issuer leaves the trust policies already written against it working; new policies can no longer pick it by name.
Terraform
family is github-enterprise, gitlab, gitea, forgejo, kubernetes or generic, and cannot change.
# Built-in issuers are read-only: refer to them by name.
data "credvane_issuer" "github" {
name = "GitHub Actions"
}
resource "credvane_issuer" "company_gitlab" {
name = "Company GitLab"
family = "gitlab"
address = "https://gitlab.example.com"
}
resource "credvane_issuer" "prod_cluster" {
name = "Production cluster"
family = "kubernetes"
address = "https://oidc.example.com"
}
# Trust policies take an issuer by its URL.
resource "credvane_workload_trust" "from_gitlab" {
name = "api-deploy-gitlab"
issuer = credvane_issuer.company_gitlab.url
audience = "https://credvane.example.com/w/0f3b6c1e-..."
identity = "api-deploy"
specs = ["github-packages"]
claims = { project_path = "example-org/api" }
}