Read Secret
POST/secret-svc/secret
Fetch a secret by key, if authorized
Request
- application/json
Body
Read Secret Request
key string
Responses
- 200
- 401
- 500
Read Secret Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
secrets
object[]
id string
Id of the secret
key string
Envar or slug-like key 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
{
"secrets": [
{
"id": "string",
"key": "string",
"readers": [
"string"
],
"value": "string",
"writers": [
"string"
]
}
]
}
Unauthorized
- application/json
- Schema
Schema
string
Internal Server Error
- application/json
- Schema
Schema
string
Loading...