Vault Employee Key Schema
Velden
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
Geen velden komen overeen met het filter.
Standaard-endpoints
Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:
GET /api/v1/vault_employee_keys— Lijst, gepagineerd + filterbaarGET /api/v1/vault_employee_keys/<id>— Enkele entityPOST /api/v1/vault_employee_keys— AanmakenPATCH /api/v1/vault_employee_keys/<id>— Gedeeltelijke updateDELETE /api/v1/vault_employee_keys/<id>— Soft-deleteGET /api/v1/vault_employee_keys/<id>/timeline— Audit + activiteiten