POSTGRES db password environment variable
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 598
- Forks
- 168
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 86
Description
Version
We are using our own pulp-core components using containers based on this project.
Describe the bug
It is not a bug, we would like to find out what is the environment variable for postgres database password that pulp-api , pulp-content can read to connect to DATABASE. We can update settings.py file under DATABASES= section, but we want to use environment variable.
We have tried PULP_PASSWORD, PGPASSWORD and POSTGRES_SERVICE_PASSWORD, none of them worked.
To Reproduce
Can you set environment variables to connect to RDS postgres database
Expected behavior
connect to postgres database
Additional context
It would be nice if we BOTO3 can read configuration files automatically if pod identity is enabled for AWS.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with settings.py and its DATABASES configuration, then trace how pulp-api and pulp-content receive database settings in the container setup. Confirm whether a PostgreSQL password environment variable is supported and document the required configuration for an RDS connection; add or update tests only where the existing configuration handling covers this behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, postgresql, python
- Domain
- backend, cloud, databases, documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100