Vault Employee Key Schema
Felder
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
Keine Felder passen zum Filter.
Standard-Endpoints
Diese Resource folgt dem generischen CRUD-Vertrag der Plattform. Lesen Sie die Konventionen für Pagination, Idempotenz, Optimistic Locking und Audit. Die wichtigsten Endpoints:
GET /api/v1/vault_employee_keys— Liste, paginiert + filterbarGET /api/v1/vault_employee_keys/<id>— Einzelne EntityPOST /api/v1/vault_employee_keys— AnlegenPATCH /api/v1/vault_employee_keys/<id>— Teil-UpdateDELETE /api/v1/vault_employee_keys/<id>— Soft-DeleteGET /api/v1/vault_employee_keys/<id>/timeline— Audit + Aktivitäten