Documentation · Usage

Concepts

The words Credvane uses and how they fit together: organizations, people and identities, sources, specs, credentials, secret stores, and the ways applications read a value.

A spec is checked with a source. A person or identity owns a credential, which matches a spec and keeps its value in a secret store. Exchange tokens, trust policies and CLI sessions read the credential's current value. SourceGitHub, GitLab, an APISpecdeclared by an adminPerson or identitythe ownerCredentialone current valueSecret storeholds the valueExchange tokenfor one applicationTrust policyfor CI jobs, pods, agentsCLI sessiona person's command linechecked withmatchesownsvalue inread the current value
Everything here belongs to one organization. Every read is recorded in the audit log.

How they relate

NounWhat it isBelongs toHas
OrganizationEveryone and everything in one installation–People, identities, sources, specs, a secret store, the audit log
PersonSomeone who signs in through your identity providerThe organizationCredentials, exchange tokens, CLI sessions
IdentityA team, application or agent; it never signs inThe organization, managed by adminsCredentials, exchange tokens, trust policies
SourceThe service a credential comes from and is checked withThe organizationSpecs
SpecWhat a credential must be: its source, scopes and a key applications ask forA sourceCredentials, one per owner
CredentialAn owner's value for one specA spec and a person or identityOne current value in the secret store, a state, and its reads
Exchange tokenA scoped, expiring token an application reads withA person or identityA list of specs it may read
Trust policyWhich workload tokens may act as an identityAn identity and an issuerRequired claims, an audience, a list of specs
CLI sessionA person's credvane login from the browserA personRead access to everything they hold, for a few hours

The organization

Everything belongs to an organization. A Credvane installation has one. People whose email is on its domain (Settings → General) join by signing in. Without a domain, only people an admin added, people SCIM provisioned, and admins get in, unless open sign-up is configured. The identity provider must have verified the email.

Admins are members of an admin group in your identity provider, people made admin on Settings → Admins or Users, and the bootstrap admins in CREDVANE_ADMINS. Admins declare specs, configure sources and settings, and manage identities. See sign-in and provisioning.

People and identities

  • A person signs in. Their credentials are their own: Credvane shows a value only to its owner. An admin can revoke it but cannot read it in Credvane.
  • An identity stands for a team, an application or an agent. It never signs in. Any admin can add, read and revoke its credentials and give out access to it. An identity can be deactivated but never deleted, so the audit trail always has it.

Sources and specs

A source is the service a credential belongs to: GitHub, GitLab, Gitea, Forgejo, Cloudflare, or any HTTP API that takes a key. The source decides how Credvane checks a credential.

A spec is what an admin declares, such as "a GitHub token with read:packages only". It has a key that applications ask for (deploy-key), a source, the scopes a credential must have where the source can report them, instructions for the person creating it, and whether credentials the source cannot verify are accepted. A spec nothing uses can be deleted; a spec with credentials can be archived once none of them is live, which keeps its key and history.

Credentials

A credential is a person's or identity's value for one spec. The owner creates it at the source by following the spec's guide, then pastes it into Credvane, which checks it with the source.

  • One current value. A new value replaces the current one only after it passes its check; then the old value is revoked, at the source too unless the spec turns that off. That is how a credential rotates without a redeploy.
  • One account per source. An owner's credentials for one source must all belong to the same account there, so a colleague's or a shared token is refused.
  • Never in Credvane's database. The value is in the organization's secret store; Credvane keeps a reference, the owner and the history.

States

StateMeaningServed to applications
PendingAdded, not checked yetNo
ActivePassed its checkYes
RejectedFailed its first check; the value is deletedNo
DegradedA later check found it no longer matches its spec, or its account changedNo
ExpiredThe source refuses it and its known expiry has passedNo
RevokedRevoked in Credvane, replaced by a newer value, or found dead at the sourceNo

Credvane checks credentials when they are added and every six hours after. A source that cannot be reached never changes a state; the check is tried again.

Verified and attested

  • Verified: the source reported the credential's scopes and they are exactly the spec's (GitHub classic tokens, GitLab tokens, tokens from a recent Forgejo).
  • Attested: the source confirmed the credential works but cannot say what it may do (API keys, Gitea, GitHub fine-grained tokens). The person adding it vouches for it, and the spec must allow it.

Reading a value

Applications read a credential's current value from GET /api/v1/credentials/<spec-key>. Who is asking decides whose credential they get and which specs they may read.

ReaderReadsStored with the reader
Exchange token (cst_…)The listed specs of the person or identity that created it, until it expiresThe token
A workload's own token, matched by a trust policyThe specs the policy lists, as its identityNothing: the platform issues the token
CLI session (css_…)Every credential the person holds, for a few hoursA session in the system keychain

Every read is audited, and Credvane uses the reads to show who depends on what: which applications read each credential, and when they last did. More in reading credentials, the command line and CI integrations.

Identities, issuers and trust policies

A workload such as a CI job or a pod has an identity token from its platform. An issuer is the platform that signs those tokens: GitHub Actions and GitLab CI are built in, and admins add others (self-managed GitLab, Gitea, Forgejo, a Kubernetes cluster, any OpenID Connect issuer). A trust policy on an identity says which tokens from which issuer may act as it: the audience the token must carry, the claims it must have (this repository, this branch), the specs it may read, and optionally how old the token may be. Nothing is stored with the workload, and switching the policy off takes effect on the next read.

Exchange tokens and CLI sessions

An exchange token is for a program that has no platform identity. Its creator names the application, lists the specs it may read and sets an expiry; it reads its creator's credentials for those specs. A CLI session is what credvane login gets from your browser: it reads every credential you hold, for a few hours. Both can be ended early, and both stop at once when their owner is deactivated.

Admins, API keys and settings

Admins declare specs, configure sources, manage identities and change settings. Someone is an admin through an identity provider group, by being made one on Settings → Admins, or by being listed in CREDVANE_ADMINS. An admin API key (cat_…) lets automation such as Terraform or a SIEM call the admin API; it can manage the organization or only read the audit log, and it always expires. Neither an admin nor an API key can read a person's credential values.

Who can read values

Credvane has to read the values it holds: it checks each one with its source and hands it to applications. So whoever controls Credvane, or the store the values are in, can read them too. Credvane decides only what its own roles allow.

WhoCan read a person's value?Kept in check by
The personYes, their own, in the web app or with the CLIThe audit log
An admin, or an admin API keyNo: Credvane gives them no way to see it. Pointing a source somewhere else does not work either: each credential is pinned to the address it was added under, and Credvane stops sending a person's value until that person confirms a new one (see sources).Credvane's roles, the pin and the audit log
Applications and workloadsOnly the specs their exchange token or trust policy names, for the owner they act forExchange tokens, trust policies, the audit log
Whoever operates the secret storeYes, directly in the storeThe store's own access rules and audit log
Whoever runs CredvaneYes, with Credvane's own accessYour platform's access control

Keep the people who run the store and the server few, separate from Credvane's admins where you can, and audited.

When something goes wrong, and governance

Offboarding

Revokes everything a person holds, at the source where it can, and names the applications that need a new owner. SCIM can start it from your identity provider. See users and offboarding.

Leak response

Finds a pasted value's credential or exchange token by its fingerprint, without storing the value, and leads to revoke and replace. See leaks.

Access reviews

Ask owners to confirm or revoke each credential they hold, and keep the result as evidence. See access reviews.

Notifications

Email owners about their own credentials and tokens; admins see organization-wide notices, and email channels get the events they choose. See notifications.

The audit log

Records every action and every read, with export, SIEM streaming and retention. See the audit log.