cube-js / cube-js/cube

Set API secret from file

Open
#2,685 6 comments 1 reaction 1 assignee Claimed by @paveltiunov View on GitHub
Dominant language
Rust
Stars
20.8k
Forks
2.1k
Avg merge
1d 2h
Merged PRs (30d)
181

Description

**Problem**

Is it possible to set the DB password and secret key from a file?
Does setting the `CUBEJS_DB_PASS`/`CUBEJS_API_SECRET` env variables to a path work?

My use case is that I want to set the key using a docker secret.
If it is not possible, I guess it should be straightforward to "define" `CUBEJS_DB_PASS_FILE` and `CUBEJS_API_SECRET_FILE` to do so.

Thanks in advance!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.