Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Sharing and rotation

Summary: add a person to a project, remove them, and rotate keys.

secrets-chad -p shop share @alex --role writer   # compare the fingerprint with alex by another channel
secrets-chad -p shop unshare @alex               # removes alex and rotates every environment
secrets-chad -e shop/prod rotate                 # a new key for one environment
secrets-chad -p shop rotate --all                # every environment, and every pending rotation
secrets-chad -p shop verify                      # check the whole log and every latest record
secrets-chad -p shop audit --limit 50            # owners: who read and wrote what
  • Roles: owner (everything), writer (read and write secrets), reader (read secrets).
  • share shows the new member’s fingerprint. The first comparison is the only protection against a server that substitutes a key; later the client warns when a pinned fingerprint changes.
  • unshare shows the project’s machines with the owner who approved each, and asks which to revoke too. Without a terminal it refuses when the member approved machines, unless --revoke or --keep-machines is given.
  • After a removal, change the values the person could read at their source. A rotation stops future reads only.
  • Exit code 8 means an owner must rotate first: a member left or a device was revoked.

Wiki: Remove a member. Spec: §9.