API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola
Entidad · vault_employee_keys

Vault Employee Key Schema

ID del esquema
vault_employee_key
Colección
vault_employee_keys
Permisos
  • Leeremployee_profile_view
  • Crearemployee_profile_create
  • Modificaremployee_profile_edit
  • Eliminaremployee_profile_delete

Campos

Vault Employee Key Schema

vault_employee_keys4 permisos

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

employeeProfileIduuidobligatorio

UUID of the employee_profile this key belongs to

keyVersionintegerobligatorio

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

≥ 1Valor por defecto: 1solo lectura
memberKeysobject[]obligatorio

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

Valor por defecto: []solo lectura
typestringobligatorio
userteamrole
idstringobligatorio

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

máx. 200 caracteres
wrappedKeystringobligatorio

Base64-encoded ECDH-wrapped DEK

máx. 1024 caracteres
ephemeralPublicKeystringopcional

Base64-encoded ephemeral public key used during wrap

máx. 1024 caracteresadmite null
relationshipstringopcional

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

selfmanagerhrpayrollrecoverymanual
admite null
addedAtdatetimeopcional
admite null
addedByuuidopcional
admite null
groupKeyVersionintegeropcional

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

admite null
needsRewrapbooleanopcional

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

Valor por defecto: false
lastRotatedAtdatetimeopcional
solo lecturaadmite null
lastRotatedByuuidopcional
solo lecturaadmite null

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 filtrable
  • GET /api/v1/vault_employee_keys/<id> — Una entidad
  • POST /api/v1/vault_employee_keys — Crear
  • PATCH /api/v1/vault_employee_keys/<id> — Actualización parcial
  • DELETE /api/v1/vault_employee_keys/<id> — Eliminación lógica
  • GET /api/v1/vault_employee_keys/<id>/timeline — Auditoría y actividades

Búsqueda