Skip to content

Commit

Permalink
chore: document how to use secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
birme committed Jun 8, 2024
1 parent 4bda974 commit 3900999
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/cli/core.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,14 @@ This will be translated to the following JSON payload when creating the instance
}
}
```

### Using Secrets

It is recommended for sensitive data such as API keys or shared secrets to be provided as a reference to a secret variable instead of provided in plain text. Create secret in the web user interface and a secret is scoped to the service it is created for. To refer to a secret you enter `{{secrets.mysecret}}` as the option value, e.g.

```bash
osc create eyevinn-shaka-packager-s3 \
-o AwsAccessKeyId="{{secrets.awsaccesskeyid}}" \
-o AwsSecretAccessKey="{{secrets.awssecretaccesskey}}" \
-o CmdLineArgs="s3://source/abr s3://dest/vod -i a:audio=snaxax_STEREO.mp4 -i v:3100=snaxax_x264_3100.mp4"
```

0 comments on commit 3900999

Please sign in to comment.