Skip to content

Commit

Permalink
secrets now use app ID as context
Browse files Browse the repository at this point in the history
  • Loading branch information
matslina committed Nov 6, 2023
1 parent b1e54da commit 74fb0b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/02_build/05_authoring_apps.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Many apps need secret values like API keys. When publishing your app to the [Tid
To encrypt values, use the `pixlet encrypt` command. For example:

```shell
# replace "googletraffic" with the folder name of your app in the community repo
# replace "googletraffic" with the ID of your app (as per your manifest.yaml)
$ pixlet encrypt googletraffic top_secret_google_api_key_123456
"AV6+...." # encrypted value
```
Expand Down
2 changes: 1 addition & 1 deletion docs/06_reference/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ The secret module can decrypt values that were encrypted with `pixlet encrypt`.

| Function | Description |
| --- | --- |
| `decrypt(value)` | Decrypts and returns the value when running in Tidbyt cloud. Returns `None` when running locally. Decryption will fail if the name of the app doesn't match the name that was passed to `pixlet encrypt`. |
| `decrypt(value)` | Decrypts and returns the value when running in Tidbyt cloud. Returns `None` when running locally. Decryption will fail if the ID of the app doesn't match the ID that was passed to `pixlet encrypt`. |

Example:
```starlark
Expand Down

0 comments on commit 74fb0b2

Please sign in to comment.