Keyring and Data Encryption Reference

    /keyring

    Response

    1. "active": "RfsDJ2Ol",
    2. "ids": [
    3. "xSD219lH"
    4. ]
    5. }

    View Active Key

    Endpoint

    /keyring/active

    Response

    1. HTTP 200 OK
    1. {
    2. "id": "RfsDJ2Ol"
    3. }

    Export Keyring

    This endpoint is only available with the cluster keyring strategy.

    The endpoint requires that the keyring_public_key and keyring_private_key Kong configuration values are defined.

    Endpoint

    /keyring/export

    Response

    1. {
    2. "data": "<base64>..."

    This endpoint is only available with the cluster keyring strategy.

    The endpoint requires that the keyring_public_key and keyring_private_key Kong configuration values are defined.

    Endpoint

    Request Body

    Response

    1. HTTP 201 Created

    Import Key

    This endpoint is only available with the cluster keyring strategy.

    The endpoint requires that the keyring_public_key and keyring_private_key Kong configuration values are defined.

    Endpoint

    /keyring/import/raw

    Request Body

    Response

    1. HTTP 201 Created

    Recover Keyring from Database

    This endpoint is only available with the cluster keyring strategy.

    The endpoint requires that the keyring_recovery_public_key Kong configuration value is defined.

    Endpoint

    /keyring/recover

    Request Body

    1. "recovered": [
    2. "RfsDJ2Ol"
    3. ],
    4. "not_recovered": [
    5. "xSD219lH"
    6. ]
    7. }

    This endpoint is only available with the cluster keyring strategy.

    Endpoint

    /keyring/generate

    Response

    1. HTTP 201 Created
    1. {
    2. "id": "500pIquV",
    3. "key": "3I23Ben5m7qKcCA/PK7rnsNeD3kI4IPtA6ki7YjAgKA="

    Remove Key from Keyring

    This endpoint is only available with the cluster keyring strategy.

    Endpoint

    /keyring/remove

    Request Body

    Response

    Sync Keyring with Vault Endpoint

    This endpoint is only available with the keyring strategy.

    Endpoint

    /keyring/vault/sync

    Response

    1. HTTP 204 No Content