Skip to content

db+ string in result backend but not metadata secret #18283

Description

@EliMor

Official Helm Chart version

1.1.0 (latest released)

Apache Airflow version

2.1.3 (latest released)

Kubernetes Version

1.21

Helm Chart configuration

data:
metadataSecretName: "airflow-metadata"
resultBackendSecretName: "airflow-result-backend"

Docker Image customisations

No response

What happened

If we only supply 1 secret with

connection: postgresql://airflow:password@postgres.rds:5432/airflow?sslmode=disable

To use for both metadata and resultBackendConnection then we end up with a connection error because
resultBackendConnection expects the string to be formatted like

connection: db+postgresql://airflow:password@postgres.rds:5432/airflow?sslmode=disable

from what i can tell

What you expected to happen

I'd expect to be able to use the same secret for both using the same format if they are using the same connection.

How to reproduce

Make a secret structured like above to look like the metadataConnection auto-generated secret.
use that same secret for the result backend.
deploy.

Anything else

Occurs always.
To get around currently we make 2 secrets one with just the db+ prepended.

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions