Skip to content

How to access secrets in Livebook code? #1532

Answered by jonatanklosko
nicksergeant asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @nicksergeant, secrets are accessible as env vars (similarly to env vars defined in the global settings). The only difference is that they have LB_ prefix. So in your case you can do System.fetch_env!("LB_BEARER_TOKEN") :)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nicksergeant
Comment options

Answer selected by hugobarauna
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants