SecretsOrg Secrets

Create an org secret

POST
/v1/orgs/{org}/secrets
AuthorizationBearer <token>

API key starting with tektona_. Create one at app-dev.tektona.ai under API Keys.

In: header

Path Parameters

org*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

aws_access_key_id?string

Required on an aws secret, rejected on any other type. The value is then the secret access key

Match^AKIA[A-Z0-9]{16}$
key*string

Segments of lowercase letters, digits, - and _, joined by /. Every segment but the last names a folder, as in payments/live/key

Match^[a-z0-9][a-z0-9_-]*(/[a-z0-9][a-z0-9_-]*)*$
Length1 <= length <= 256
scope*string

Value in

  • "org"
  • "project"
  • "personal"
type*string
Default"generic"

Value in

  • "generic"
  • "git"
  • "aws"
  • "basic"
username?string

Required on a basic secret, rejected on any other type. The value is then the password

Match^[^:\x00-\x1f\x7f-\x9f]+$
Lengthlength <= 256
value*string
Length1 <= length

Response Body

application/json

application/problem+json

curl -X POST "https://example.com/v1/orgs/string/secrets" \  -H "Content-Type: application/json" \  -d '{    "key": "string",    "scope": "org",    "type": "generic",    "value": "string"  }'
{  "secret": {    "aws_access_key_id": "string",    "created_at": "string",    "id": "string",    "key": "string",    "owner_user_id": "string",    "scope": "org",    "type": "generic",    "updated_at": "string",    "username": "string"  }}