API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · vault_employee_keys

Vault Employee Key Schema

ID du schéma
vault_employee_key
Collection
vault_employee_keys
Autorisations
  • Lireemployee_profile_view
  • Créeremployee_profile_create
  • Modifieremployee_profile_edit
  • Supprimeremployee_profile_delete

Champs

Vault Employee Key Schema

vault_employee_keys4 autorisations

Multi-recipient wrap of an employee data-encryption key (DEK)

employeeProfileIduuidobligatoire

UUID of the employee_profile this key belongs to

keyVersionintegerobligatoire

Increments on rotation. Encrypted documents/contracts reference the version that produced their ciphertext.

≥ 1Par défaut : 1lecture seule
memberKeysobject[]obligatoire

Per-recipient wraps of the DEK. Recipients are users, teams (e.g. HR group), or roles (e.g. payroll_manage).

Par défaut : []lecture seule
typestringobligatoire
userteamrole
idstringobligatoire

For type=user: user UUID; type=team: team UUID; type=role: permission string (e.g. "payroll_manage")

max. 200 caractères
wrappedKeystringobligatoire

Base64-encoded ECDH-wrapped DEK

max. 1024 caractères
ephemeralPublicKeystringfacultatif

Base64-encoded ephemeral public key used during wrap

max. 1024 caractèresnullable
relationshipstringfacultatif

Why this recipient was added — drives auto-revoke when the relationship ends.

selfmanagerhrpayrollrecoverymanual
nullable
addedAtdatetimefacultatif
nullable
addedByuuidfacultatif
nullable
groupKeyVersionintegerfacultatif

Version of the team/role group key used for the wrap, if applicable

nullable
needsRewrapbooleanfacultatif

Lazy-rewrap flag — set when manager/HR membership changes; client refreshes wraps on next access.

Par défaut : false
lastRotatedAtdatetimefacultatif
lecture seulenullable
lastRotatedByuuidfacultatif
lecture seulenullable

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 filtrable
  • GET /api/v1/vault_employee_keys/<id> — Une entité
  • POST /api/v1/vault_employee_keys — Créer
  • PATCH /api/v1/vault_employee_keys/<id> — Mise à jour partielle
  • DELETE /api/v1/vault_employee_keys/<id> — Suppression logique
  • GET /api/v1/vault_employee_keys/<id>/timeline — Audit et activités

Recherche