Vault Employee Key Schema
Champs
Vault Employee Key Schema
Multi-recipient wrap of an employee data-encryption key (DEK)
employeeProfileId
UUID of the employee_profile this key belongs to
keyVersion
Increments on rotation. Encrypted documents/contracts reference the version that produced their ciphertext.
memberKeys
Per-recipient wraps of the DEK. Recipients are users, teams (e.g. HR group), or roles (e.g. payroll_manage).
type
userteamroleid
For type=user: user UUID; type=team: team UUID; type=role: permission string (e.g. "payroll_manage")
wrappedKey
Base64-encoded ECDH-wrapped DEK
ephemeralPublicKey
Base64-encoded ephemeral public key used during wrap
relationship
Why this recipient was added — drives auto-revoke when the relationship ends.
selfmanagerhrpayrollrecoverymanualaddedAt
addedBy
groupKeyVersion
Version of the team/role group key used for the wrap, if applicable
needsRewrap
Lazy-rewrap flag — set when manager/HR membership changes; client refreshes wraps on next access.
lastRotatedAt
lastRotatedBy
Aucun champ ne correspond au filtre.
Endpoints standard
Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :
GET /api/v1/vault_employee_keys— Liste, paginée et filtrableGET /api/v1/vault_employee_keys/<id>— Une entitéPOST /api/v1/vault_employee_keys— CréerPATCH /api/v1/vault_employee_keys/<id>— Mise à jour partielleDELETE /api/v1/vault_employee_keys/<id>— Suppression logiqueGET /api/v1/vault_employee_keys/<id>/timeline— Audit et activités