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.
How they relate
| Noun | What it is | Belongs to | Has |
|---|---|---|---|
| Organization | Everyone and everything in one installation | – | People, identities, sources, specs, a secret store, the audit log |
| Person | Someone who signs in through your identity provider | The organization | Credentials, exchange tokens, CLI sessions |
| Identity | A team, application or agent; it never signs in | The organization, managed by admins | Credentials, exchange tokens, trust policies |
| Source | The service a credential comes from and is checked with | The organization | Specs |
| Spec | What a credential must be: its source, scopes and a key applications ask for | A source | Credentials, one per owner |
| Credential | An owner's value for one spec | A spec and a person or identity | One current value in the secret store, a state, and its reads |
| Exchange token | A scoped, expiring token an application reads with | A person or identity | A list of specs it may read |
| Trust policy | Which workload tokens may act as an identity | An identity and an issuer | Required claims, an audience, a list of specs |
| CLI session | A person's credvane login from the browser | A person | Read 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
| State | Meaning | Served to applications |
|---|---|---|
| Pending | Added, not checked yet | No |
| Active | Passed its check | Yes |
| Rejected | Failed its first check; the value is deleted | No |
| Degraded | A later check found it no longer matches its spec, or its account changed | No |
| Expired | The source refuses it and its known expiry has passed | No |
| Revoked | Revoked in Credvane, replaced by a newer value, or found dead at the source | No |
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.
| Reader | Reads | Stored with the reader |
|---|---|---|
Exchange token (cst_…) | The listed specs of the person or identity that created it, until it expires | The token |
| A workload's own token, matched by a trust policy | The specs the policy lists, as its identity | Nothing: the platform issues the token |
CLI session (css_…) | Every credential the person holds, for a few hours | A 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.
| Who | Can read a person's value? | Kept in check by |
|---|---|---|
| The person | Yes, their own, in the web app or with the CLI | The audit log |
| An admin, or an admin API key | No: 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 workloads | Only the specs their exchange token or trust policy names, for the owner they act for | Exchange tokens, trust policies, the audit log |
| Whoever operates the secret store | Yes, directly in the store | The store's own access rules and audit log |
| Whoever runs Credvane | Yes, with Credvane's own access | Your 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.