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

👷 Review and test inconsistencies in Data Catalogue RDS variable assignment #1200

Open
3 tasks
mitchdawson1982 opened this issue Dec 19, 2024 · 2 comments
Open
3 tasks

Comments

@mitchdawson1982
Copy link
Collaborator

mitchdawson1982 commented Dec 19, 2024

User Story

As a developer I want a consistent way of defining access to RDS database variables workflows, so that we remove unnecessary configuration and potential confusion.

Background

Datahub accesses an RDS database instance configured as part of the cloud platform deployment. When the RDS database is configured, secrets such as the username, password, database name, and host url are added to a secret store within the namespace.

We have noticed inconsistencies in that some of the parameters are being pulled from the secret store, stored in github and then sent in via the workflow. Other parameters are simply applied to the pod environment from the secret store as we would expect.

Secrets pulled from K8's

Secrets pulled from github via workflow

Data Catalogue readme

PR

Definition of Done

  • Identify each RDS variable and how it is applied (via secret store or github)
  • test accessing all variables directly from the RDS secret store and validate results
  • where issues are experienced accessing variables from the secret store, document these inconsistencies.
@github-project-automation github-project-automation bot moved this to Todo 📝 in Data Catalogue Dec 19, 2024
@mitchdawson1982 mitchdawson1982 moved this from Todo 📝 to In Progress 🚀 in Data Catalogue Dec 19, 2024
@mitchdawson1982
Copy link
Collaborator Author

mitchdawson1982 commented Dec 19, 2024

https://datahubproject.io/docs/deploy/aws#rds

Keys within the rds store

{
  "database_name": "",
  "database_password": "",
  "database_username": "",
  "rds_instance_address": "",
  "rds_instance_endpoint": "",
  "rds_url": ""
}

Keys applied from rds store

  • database_name
  • database_password
  • database_name

@mitchdawson1982
Copy link
Collaborator Author

Deploying the changes gives this deployment error -

2024/12/20 10:22:09 bad hostname provided: tcp://map[secretKey:rds_instance_address. parse "tcp://map[secretKey:rds_instance_address": invalid port ":rds_instance_address" after host                                                   │
│ Stream closed EOF for data-platform-datahub-catalogue-dev/datahub-postgresql-setup-job-2lpzk (postgresql-setup-job)

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress 🚀
Development

No branches or pull requests

1 participant