Skip to content

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.

bash
noorm identity init
Identity created.
  Name:        Alice Cooper
  Email:       alice@example.com
  Fingerprint: 5e217a60eb7c27d5390cf2f3c8639fb7158dc3006df5057be03d83e3be51d721

Name 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.

FileModeHolds
identity.key0600Private key
identity.pub0644Public key, derived from the private key
identity.jsonumask defaultName, 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 identityEnvironment identity
Fingerprint inputSHA-256(email, name, hostname, OS)SHA-256(email, name, public key, "env")
Same person on two machinesTwo identitiesOne identity
Files written~/.noorm/*None

identity init ​

noorm identity init [--name <name>] [--email <email>] [--force --yes] [--json]
FlagEffect
--name <name>Display name. Default: git config user.name, then the OS username
--email <email>Email address. Default: git config user.email
--forceReplace an existing identity. Needs --yes
--yes, -yConfirm the replacement. NOORM_YES does not count
--jsonJSON result with name, email, fingerprint, publicKey, and completedExistingKey: true when an existing key was kept
ConditionBehavior
No --email and git config user.email is unsetCould 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 usernameCould not determine your name. Pass --name <name>., exit 1
identity.key, identity.pub and identity.json all exist, no --forceIdentity already exists. Use --force to overwrite., exit 1
identity.key exists, identity.pub or identity.json is missing, no --forceKeeps 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 --forcePrints the reason, exit 1. The key is not replaced
NOORM_IDENTITY_PRIVATE_KEY is set and no identity.key existsNOORM_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 blankTreated as not passed; the default applies
--force without --yesPrints the warning below and Pass --yes to confirm., exit 1
--force --yesCopies the key files to <file>.bak-<timestamp>, then replaces them. Prints the backup paths
Backup failsRefuses 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]
bash
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
ConditionBehavior
Neither --name nor --emailAt least one of --name or --email must be provided., exit 2
No identity yetNo identity found. Run `noorm identity init` first., exit 2
Name or email changesThe fingerprint changes. --json reports previousFingerprint and fingerprintChanged
MachineCarried 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.

bash
noorm identity export --json
json
{"success":true,"name":"Alice Cooper","email":"alice@example.com","fingerprint":"5e217a60…","publicKey":"302a3005…"}
ConditionBehavior
No identityNo identity found. Run `noorm identity init` to create one., exit 2
Public key unreadableFailed 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
ConditionBehavior
Nobody synced yetNo known users found., exit 0. --json gives {"users":[]}
State cannot be decryptedFailed 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/.

VariableValue
NOORM_IDENTITY_PRIVATE_KEYHex-encoded X25519 private key, 96 hex characters
NOORM_IDENTITY_NAMEDisplay name
NOORM_IDENTITY_EMAILEmail address
ConditionBehavior
All three validEnvironment identity is used, even if ~/.noorm/ also holds one
One missing, blank, or the key is not valid hexIgnored without an error, and the disk identity is used
Leading or trailing whitespaceTrimmed

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