Skip to main content

Save Secrets

PUT 

/secret-svc/secrets

Save secrets if authorized to do so

Request

Body

required

Save Secret Request

    secrets

    object[]

  • Array [

  • canChangeDeleters string[]

    Slugs of services/users who can change the deleters list

    canChangeReaders string[]

    Slugs of services/users who can change the readers list

    canChangeWriters string[]

    Slugs of services/users who can change the writers list

    deleters string[]

    Slugs of services/users who can delete the secret

    encrypted boolean

    Whether the secret is encrypted All secrets are encrypted before written to the DB. This really only exists for write requests to know if the secret is already encrypted. Ie: while most secret save [key] [value] commands are probably not encrypted, File based saves, eg. secret save secretA.yaml are probably encrypted.

    id string

    Id of the secret

    key string

    Envar or slug-like key of the secret

    namespace string

    Namespace of the secret

    readers string[]

    Slugs of services/users who can read the secret

    value string

    Secret Value

    writers string[]

    Slugs of services/users who can modify the secret

  • ]

Responses

Save Secret Response

Schema

    object

Loading...