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

Parse new database connection parameters #4612

Merged
merged 1 commit into from
May 5, 2021

Conversation

eternaltyro
Copy link
Collaborator

Problem:

There's no straightforward way to prevent PostgreSQL password
from being displayed in AWS console (our current application host).
This is a shortcoming of AWS Cloudformation and available options
for AWS ECS ValueFrom field.

Solution:

Instead of trying to parse the secrets manager entry and pick specific
parameters in the CloudFormation template, we do the parsing in
config.py and pass the whole JSON stored in secrets manager.

This is agnostic of AWS and can be extended to any cloud provider or
server host in the future.

@willemarcel willemarcel added this to the v4.4.6 milestone May 4, 2021
@willemarcel willemarcel added scope: infrastructure type: enhancement Improving an existing functionality labels May 4, 2021
@willemarcel
Copy link
Contributor

@eternaltyro before merging, could you document the new variable on https://github.com/hotosm/tasking-manager/blob/develop/example.env and on https://github.com/hotosm/tasking-manager/blob/develop/docs/deploy-aws.md

Problem:

There's no straightforward way to prevent PostgreSQL password
from being displayed in AWS console (our current application host).
This is a shortcoming of AWS Cloudformation and available options
for AWS ECS `ValueFrom` field.

Solution:

Instead of trying to parse the secrets manager entry and pick specific
parameters in the CloudFormation template, we do the parsing in
config.py and pass the whole JSON stored in secrets manager.

This is agnostic of AWS and can be extended to any cloud provider or
server host in the future.
@eternaltyro eternaltyro force-pushed the feature/db-connection-parameters branch from 7c7ad99 to 9b5ef2a Compare May 5, 2021 11:05
@eternaltyro
Copy link
Collaborator Author

@eternaltyro before merging, could you document the new variable on https://github.com/hotosm/tasking-manager/blob/develop/example.env and on https://github.com/hotosm/tasking-manager/blob/develop/docs/deploy-aws.md

Wille, I've updated example.env. The AWS deploy documentation will need more tuning and I think it's better if I merge it along with the rest of the CloudFormation code for it to make sense.

@willemarcel willemarcel merged commit 50351ae into develop May 5, 2021
@willemarcel willemarcel deleted the feature/db-connection-parameters branch May 5, 2021 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants