Docs menuOrganization sharing

Organization sharing

Organization sharing stores one encrypted project vault in LPM.dev Registry. The content key is the key that encrypts the vault. LPM CLI wraps it separately for each organization member who registered a sharing key.

A sharing key is an X25519 key pair. The private key stays on the member's computer. Dashboard Pairing can give a browser a copy that LPM.dev Registry cannot read. LPM.dev Registry stores the public keys, the shared encrypted vault, and one wrapped content key for each included member.

Organization sharing requires an Organization or Enterprise plan. Reads and writes work while billing is active and during the billing grace period. After the grace period, LPM.dev Registry returns HTTP 402 with ORG_BILLING_LAPSED for organization env access. This continues until billing is active again.

Cleanup still works while billing is lapsed. Owners and admins can delete an organization vault, disconnect platforms, delete OIDC policies, and disable CI decryption. They can also remove members, which deletes the wrapped keys of those members.

Share a project vault

An organization owner or admin can create the first shared copy:

lpm env share --org acme

LPM CLI does these steps:

  1. If your account has no X25519 public key, registers the key of this computer. You must prove your identity first.
  2. Gets the current organization members and their registered public keys.
  3. Compares the member keys with the set that this computer accepted before. If the set is new or changed, LPM CLI prints it and stops.
  4. Creates a new AES-256 content key and encrypts the complete local vault with it.
  5. Wraps that content key separately for every member who has a public key.
  6. Uploads the encrypted vault and the wrapped member keys to LPM.dev Registry.

The member key check stops the first share on each computer, and every share after a member key changes. If LPM CLI stops, make sure that each user ID and key fingerprint in the list is correct. Then run the command again with the digest that LPM CLI printed:

lpm env share --org acme --accept-recipient-keys <digest>

A member without a registered public key does not get a wrapped key. Membership alone does not let a member decrypt the vault.

Owners and admins can create a shared vault. Owners, admins, and maintainers can update an existing shared vault. A maintainer update keeps the current content key. Only an owner or admin can create a new content key or add members to the vault.

Give a new member access

First, the new member registers a sharing key. In the project directory, the member runs an organization pull:

lpm env pull --org acme

The first pull registers the member's public key after the member proves their identity. Then the pull stops, because nobody has wrapped a content key for the new key yet. On the Access page, owners and admins see the member as Needs share.

Next, an owner or admin who already has vault access shares the current vault again:

lpm env share --org acme

The member key set changed, so LPM CLI prints the new set and stops. Make sure that the list includes the new member's key. Then run the command again with --accept-recipient-keys and the printed digest.

The member can now pull:

lpm env pull --org acme

Each organization command checks that the local X25519 key matches the public key registered for the account. If the keys differ, LPM CLI stops and points to the sharing-key recovery command. It does not replace the registered key.

Pull and update

An organization pull merges the cloud keys into the matching local environments:

lpm env pull --org acme

Local keys and environments that are not in the cloud copy stay. An organization pull does not read the personal cloud vault. A plain lpm env pull does not read the organization vault.

After you change the local vault, update the organization copy with the same share command. This requires the owner, admin, or maintainer role:

lpm env share --org acme

A maintainer must pull the organization vault in this checkout before the first update.

Each organization write sends the last LPM.dev Registry version that this checkout saw. If another member shared a newer version, LPM.dev Registry rejects the write. Pull the organization vault. Review the local values. Then share again:

lpm env pull --org acme
lpm env share --org acme

lpm env share --force does not overwrite an existing organization vault. If the vault exists, pull it and review the local values.

If an owner or admin deleted the cloud vault, an owner or admin can recreate it from a bound checkout:

lpm env share --org acme --force

The checkout must be bound to the same organization and must have a stored revision checkpoint. The command stops if the cloud vault still exists.

The recreated vault starts one revision after the stored checkpoint. Checkpoints for other organizations do not change, in this checkout or in LPM.dev Registry.

Sharing-key rotation

lpm env rotate-sharing-key

This recovery command replaces your X25519 key pair. Use it if you lost the computer that held the previous private key. The command runs only in a terminal, and you must type ROTATE.

Before LPM CLI registers or rotates a sharing key, you must prove your identity:

  • If your account has a passkey, approve the request in the browser. If the account also has a password and an authenticator app, you can type both in the terminal instead.
  • If your account has a password and an authenticator app, type the password and a code.
  • If your account has an authenticator app and no password, approve the request in the browser.
  • If your account has only a password, type the password.

An account with no password, no passkey, and no authenticator app must set a password in the dashboard first.

The confirmation names the new key and, for a rotation, the key that it replaces. It cannot approve a different key, or replace a key that another computer rotated in the meantime. Older LPM CLI versions cannot register or rotate a sharing key. Update LPM CLI before you try.

A sharing-key rotation deletes your wrapped keys in every organization vault. Each affected vault then needs a new content key. Until an owner or admin with access runs lpm env share --org <slug> again, you cannot pull that vault.

A sharing-key rotation is different from a content key rotation. To give an organization vault a new content key, an owner or admin runs this command:

lpm env rotate-key --org acme

The command downloads the cloud vault and encrypts it again with a new content key. Then it wraps that key for every member who has a registered sharing key. It keeps the cloud values and uses the same member key check as a share. An owner or admin share also creates a new content key, but it uploads the local vault.

Member removal

When an owner or admin removes a member, or a member leaves, that person can no longer pull organization vaults. Every pull checks current membership.

The removal also deletes the member's wrapped keys. LPM.dev Registry marks each affected vault as needing a new content key and adds a member_removed entry to its activity. Until an owner or admin runs lpm env rotate-key --org <slug> or shares again, maintainers and browsers cannot save changes to that vault.

LPM.dev Registry stops a removal or a departure if the member holds the only current key for an organization vault. Before you remove that member, share the vault with another member.

A role change does not change the member's wrapped key. The member can still pull, and the new role decides what the member can change.

A removal cannot take back plaintext, ciphertext, or keys that the former member already downloaded. A new content key protects only the versions that come after it. LPM.dev Registry cannot erase data that the former member kept.

Audit visibility

Owners, admins, and maintainers can open the Activity tab of an organization vault in the dashboard. Members with the Member role and former members cannot read its audit entries.

Each audit list belongs to one organization vault. If a personal project or another organization uses the same vault ID, LPM.dev Registry keeps their entries separate. lpm env log reads only the personal vault. It has no organization option.

Browser access

Open a shared organization project in the dashboard. Then complete Dashboard Pairing on the computer that holds your registered sharing key.

The browser can then decrypt the vaults shared with your account. Owners, admins, and maintainers can edit values. Members with the Member role can only read them.

After a member leaves or rotates a sharing key, the browser cannot save changes to the affected vault. An owner or admin must first run lpm env rotate-key --org <slug>. If your sharing key changes, pair the browser again.

CI access

An owner or admin can turn on OIDC for CI for an organization vault. LPM CLI then gives LPM.dev Registry the current content key, so that the registry can decrypt the vault for CI. It never sends a member's private sharing key.

The first setup requires LPM CLI and the --allow-server-decryption flag. After that, owners and admins can manage policies or disable CI decryption on the Access page.

A new content key disables CI decryption and revokes the CI credentials that LPM.dev Registry issued. A member removal or a sharing-key rotation has the same effect on each affected vault. An owner or admin share also creates a new content key. After any of these, an owner or admin must turn on CI decryption again for the current key. Owners and admins can disable CI decryption while billing is lapsed.

For command behavior, see the LPM CLI environment reference. For the encryption model, see the LPM CLI vault architecture.

See also

  • Cloud sync explains the separate personal vault model.
  • Dashboard Pairing explains how to pair a browser with the correct account key.
  • OIDC for CI explains CI access for a personal or organization project.