Vault Employee Key Schema
Campos
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
Ningún campo coincide con el filtro.
Endpoints estándar
Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:
GET /api/v1/vault_employee_keys— Lista, paginada y filtrableGET /api/v1/vault_employee_keys/<id>— Una entidadPOST /api/v1/vault_employee_keys— CrearPATCH /api/v1/vault_employee_keys/<id>— Actualización parcialDELETE /api/v1/vault_employee_keys/<id>— Eliminación lógicaGET /api/v1/vault_employee_keys/<id>/timeline— Auditoría y actividades