Identity Management
Create the keypair that unlocks your local state, tags your changes in the audit trail, and lets teammates share vault secrets with you.
noorm identity initIdentity created.
Name: Alice Cooper
Email: alice@example.com
Fingerprint: 5e217a60eb7c27d5390cf2f3c8639fb7158dc3006df5057be03d83e3be51d721Name and email come from git config user.name and git config user.email. --name and --email override them. init writes three files in ~/.noorm/. The private key never leaves your machine.
| File | Mode | Holds |
|---|---|---|
identity.key | 0600 | Private key |
identity.pub | 0644 | Public key, derived from the private key |
identity.json | umask default | Name, email, public key, machine, OS, fingerprint |
What is an identity used for?
One identity serves every project on the machine. On CI, environment variables replace the files.
The fingerprint identifies you in the database. A disk identity hashes the machine too, so the same person on two laptops appears twice, and each laptop needs vault access.
| Disk identity | Environment identity | |
|---|---|---|
| Fingerprint input | SHA-256(email, name, hostname, OS) | SHA-256(email, name, public key, "env") |
| Same person on two machines | Two identities | One identity |
| Files written | ~/.noorm/* | None |
identity init
noorm identity init [--name <name>] [--email <email>] [--force --yes] [--json]| Flag | Effect |
|---|---|
--name <name> | Display name. Default: git config user.name, then the OS username |
--email <email> | Email address. Default: git config user.email |
--force | Replace an existing identity. Needs --yes |
--yes, -y | Confirm the replacement. NOORM_YES does not count |
--json | JSON result with name, email, fingerprint, publicKey, and completedExistingKey: true when an existing key was kept |
| Condition | Behavior |
|---|---|
No --email and git config user.email is unset | Could not determine your email: git config user.email is not set. Pass --email <address>., exit 1. No prompt |
No --name, no git config user.name, and no OS username | Could not determine your name. Pass --name <name>., exit 1 |
identity.key, identity.pub and identity.json all exist, no --force | Identity already exists. Use --force to overwrite., exit 1 |
identity.key exists, identity.pub or identity.json is missing, no --force | Keeps the key, derives identity.pub from it, writes identity.json. Prints Identity completed from the existing private key., exit 0. An existing identity.json is kept, and then no name or email is needed |
identity.key is unreadable, corrupted, or readable by other users, no --force | Prints the reason, exit 1. The key is not replaced |
NOORM_IDENTITY_PRIVATE_KEY is set and no identity.key exists | NOORM_IDENTITY_PRIVATE_KEY is set, so this process already has an identity and no key would be written to ~/.noorm. Unset it to create an identity on this machine., exit 1. Writes nothing |
--name or --email is blank | Treated as not passed; the default applies |
--force without --yes | Prints the warning below and Pass --yes to confirm., exit 1 |
--force --yes | Copies the key files to <file>.bak-<timestamp>, then replaces them. Prints the backup paths |
| Backup fails | Refuses to overwrite, exit 1 |
DANGER
Replacing an identity makes every .noorm/state/state.enc on the machine unreadable. State encryption is keyed off the private key, and nothing re-encrypts it under the new one. Restore identity.key from the .bak- copy to get the configs, secrets, and database passwords back, and identity.pub and identity.json from theirs so the public key matches the private one.
When identity.key is the only identity file, as on a new machine you copied the key to, noorm keeps it. Identity setup never generates a keypair over an existing private key. Only two actions replace one: identity init --force --yes and regenerating from the TUI identity screen. Both back the files up first and refuse when the backup fails. identity init without --force, and identity setup in the TUI and in noorm init, derive identity.pub from the key and write identity.json from the name and email you give.
identity edit
noorm identity edit [--name <name>] [--email <email>] [--json]noorm identity edit --name "Alice C. Cooper"Identity updated.
Name: Alice C. Cooper
Email: alice@example.com
Fingerprint: bf151889b92fdc4f65e0b717dc3e93465488beba27f4df00be06095a70547936
NOTE: the fingerprint changed, because it is derived from your name and email.
Vault access is granted against the old fingerprint, so you will need a team
member with vault access to propagate it to the new one.
Previous: 5e217a60eb7c27d5390cf2f3c8639fb7158dc3006df5057be03d83e3be51d721| Condition | Behavior |
|---|---|
Neither --name nor --email | At least one of --name or --email must be provided., exit 2 |
| No identity yet | No identity found. Run `noorm identity init` first., exit 2 |
| Name or email changes | The fingerprint changes. --json reports previousFingerprint and fingerprintChanged |
| Machine | Carried over unchanged |
identity export
noorm identity export [--json]Prints your name, email, fingerprint, and public key. Send the public key to a teammate who is adding you to the vault.
noorm identity export --json{"success":true,"name":"Alice Cooper","email":"alice@example.com","fingerprint":"5e217a60…","publicKey":"302a3005…"}| Condition | Behavior |
|---|---|
| No identity | No identity found. Run `noorm identity init` to create one., exit 2 |
| Public key unreadable | Failed to load public key. Identity files may be corrupted., exit 1 |
identity list
noorm identity list [--json]Lists the people this project has seen, collected when a config syncs with its database.
Known users (1):
Alice Cooper <alice@example.com>
Fingerprint: 5e217a60eb7c27d5390cf2f3c8639fb7158dc3006df5057be03d83e3be51d721
Machine: alice-mbp
Source: prod
Last seen: 2026-10-21 05:41:59| Condition | Behavior |
|---|---|
| Nobody synced yet | No known users found., exit 0. --json gives {"users":[]} |
| State cannot be decrypted | Failed to load state: …, exit 1 |
How does CI get an identity?
Set three variables before the first noorm command. Every command in that process then uses the environment identity and writes nothing to ~/.noorm/.
| Variable | Value |
|---|---|
NOORM_IDENTITY_PRIVATE_KEY | Hex-encoded X25519 private key, 96 hex characters |
NOORM_IDENTITY_NAME | Display name |
NOORM_IDENTITY_EMAIL | Email address |
| Condition | Behavior |
|---|---|
| All three valid | Environment identity is used, even if ~/.noorm/ also holds one |
| One missing, blank, or the key is not valid hex | Ignored without an error, and the disk identity is used |
| Leading or trailing whitespace | Trimmed |
noorm ci identity new generates a CI keypair, and noorm ci identity enroll grants it vault access on a database. The CI guide walks through both.
Next
- CI automation: provision and enroll a CI identity
- Vault: share secrets between identities
- Secrets: config-scoped secrets, which the identity key protects