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:

PlatformYou enterIssuer URL
Giteahttps://gitea.example.comthe address + /api/actions/oidc
Forgejohttps://forgejo.example.comthe address + /api/actions
GitHub Enterprise Serverhttps://github.example.comthe address + /_services/token
GitLab (self-managed)https://gitlab.example.comthe address itself
Kubernetes clusterThe cluster's service-account issueras entered
Another OIDC issuerThe issuer exactly as in the token's iss, for example https://agent.buildkite.com or https://keycloak.example.com/realms/cias 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 in CREDVANE_ALLOWED_PRIVATE_HOSTS in 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" }
}