Theme
Seal and unseal
Unseal by passphrase or officer shares, seal, and change the unlock. Aegis Core API, SealService: 5 operations, generated from the OpenAPI document of Aegis Core 0.13.0.
Rekey
POST /v1/sys/rekey
Changes the unlock: a new passphrase or new shares; the seal key stays.
- Role:
adminor higher - gRPC:
/aegis.v1.SealService/Rekey
Request body, required (application/json):
| Field | Type | Description |
|---|---|---|
new_passphrase | string, nullable | A new passphrase. |
officers | array of OfficerIn | The new officers. |
passphrase | string, nullable | The current passphrase. |
shares | array of ShareIn | Or the current shares. |
threshold | integer (int64), nullable | Or a new threshold and officers. |
Response 200 (application/json): RekeyResponse
Errors: 400 · 401 · 403 · 404 · 409 · 413 · 500 · 503 (what each means).
Seal
POST /v1/sys/seal
Seals the vault: its keys leave memory.
- Role:
adminor higher - gRPC:
/aegis.v1.SealService/Seal
Request body, required (application/json):
No fields.
Response 200 (application/json): SealResponse
Errors: 400 · 401 · 403 · 404 · 409 · 413 · 500 · 503 (what each means).
Unseal status
GET /v1/sys/unseal
Whether the vault is sealed, how it unseals and the shares received so far.
- Role:
auditoror higher - gRPC:
/aegis.v1.SealService/UnsealStatus
Response 200 (application/json): UnsealStatusResponse
Errors: 400 · 401 · 403 · 404 · 409 · 413 · 500 · 503 (what each means).
Unseal
POST /v1/sys/unseal
Unseals with the passphrase, or hands in one officer's share.
- Role:
adminor higher - gRPC:
/aegis.v1.SealService/Unseal
Request body, required (application/json):
| Field | Type | Description |
|---|---|---|
passphrase | string, nullable | The passphrase. |
share | string, nullable | One officer's share. |
share_passphrase | string, nullable | The passphrase a sealed share is sealed to. |
Response 200 (application/json): UnsealStatusResponse
Errors: 400 · 401 · 403 · 404 · 409 · 413 · 500 · 503 (what each means).
Reset unseal
POST /v1/sys/unseal/reset
Wipes the shares handed in so far.
- Role:
adminor higher - gRPC:
/aegis.v1.SealService/ResetUnseal
Request body, required (application/json):
No fields.
Response 200 (application/json): ResetUnsealResponse
Errors: 400 · 401 · 403 · 404 · 409 · 413 · 500 · 503 (what each means).
Schemas
OfficerIn
A new officer.
| Field | Type | Description |
|---|---|---|
name | string | The name. |
passphrase | string, nullable | A passphrase to seal the officer's share to. |
RekeyResponse
The new unlock.
| Field | Type | Description |
|---|---|---|
mode | string | passphrase or shamir. |
shares | array of IssuedShare | The new shares, shown once. |
ResetUnsealResponse
The shares wiped.
| Field | Type | Description |
|---|---|---|
discarded | integer (int64) | How many. |
SealResponse
The vault sealed.
| Field | Type | Description |
|---|---|---|
sealed | boolean | Always true. |
ShareIn
A share of the current unlock.
| Field | Type | Description |
|---|---|---|
passphrase | string, nullable | Its passphrase, if sealed. |
share | string | The share. |
UnsealStatusResponse
The seal state and, while sealed, the progress of an unseal by shares.
| Field | Type | Description |
|---|---|---|
expires | integer (int64), nullable | When the shares are wiped unless the threshold is reached. |
mode | string, nullable | passphrase or shamir. |
officers | array of Officer | The officers. |
received | array of ReceivedShare | The shares received. |
sealed | boolean | Whether the vault is sealed. |
started | integer (int64), nullable | When the first share arrived. |
threshold | integer (int64), nullable | Shares needed. |
IssuedShare
A new share, shown once.
| Field | Type | Description |
|---|---|---|
officer | string | Its officer. |
share | string | The share. |
x | integer (int64) | Its point. |
Officer
An officer who holds a share.
| Field | Type | Description |
|---|---|---|
name | string | The officer's name. |
sealed | boolean | Whether the share is sealed to the officer's passphrase. |
x | integer (int64) | The share's point. |
ReceivedShare
A share handed in.
| Field | Type | Description |
|---|---|---|
by | string | Who handed it in. |
officer | string | The officer it belongs to. |
x | integer (int64) | The share's point. |