Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PostgreSQL password in config file #6946

Open
cloudmaster39 opened this issue Dec 6, 2024 · 2 comments
Open

PostgreSQL password in config file #6946

cloudmaster39 opened this issue Dec 6, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@cloudmaster39
Copy link

cloudmaster39 commented Dec 6, 2024

Hello!

Thank you very much for such an amazing program!

Could you please help me with the following question?

I am running Temporal using systemctl with a connection to PostgreSQL. I have configured everything according to the documentation, and it works perfectly!

However, I have one concern. I really don’t like storing the database password in the configuration YAML file.
How can I configure Temporal, when running it via a systemd unit, so that it retrieves the PostgreSQL password from an environment variable? I’ve tried all possible options but haven’t had any success so far.

I would greatly appreciate your help. Thank you!

@cloudmaster39 cloudmaster39 added the enhancement New feature or request label Dec 6, 2024
@yiminc
Copy link
Member

yiminc commented Dec 6, 2024

@cloudmaster39
Copy link
Author

@cloudmaster39, please see discussion here: https://community.temporal.io/t/temporal-with-custom-postgres-db/4787/3

Thank you very much for the quick reply, but my question is not answered there. I have studied all the documentation and have not found the answer.

I'm interested in how to specify the password value from the environment variable in a configuration file like this one

/etc/temporal/temporal-server.yaml

log:
stdout: true
level: info

persistence:
defaultStore: postgres-default
visibilityStore: postgres-visibility
numHistoryShards: 4
datastores:
postgres-default:
sql:
pluginName: "postgres12"
connectAddr: "127.0.0.1:5432"
connectProtocol: "tcp"
databaseName: "temporal"
user: "user_temporal"
password: "password_temporal"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants