aspain opened a new issue, #25968:
URL: https://github.com/apache/airflow/issues/25968
### Apache Airflow version
2.3.4
### What happened
I am attempting to configure a Google Secrets Manager secrets backend using
the `gcp_keyfile_dict` param in a `.env` file with the following ENV Vars:
```
AIRFLOW__SECRETS__BACKEND=airflow.providers.google.cloud.secrets.secret_manager.CloudSecretManagerBackend
AIRFLOW__SECRETS__BACKEND_KWARGS='{"connections_prefix":
"airflow-connections", "variables_prefix": "airflow-variables",
"gcp_keyfile_dict": <json-keyfile>}'
```
In previous versions including 2.3.3 this worked without issue
After upgrading to Astro Runtime 5.0.8 I get the following error taken from
the scheduler container logs. The scheduler, webserver, and triggerer are
continually restarting
```
Traceback (most recent call last):
File "/usr/local/bin/airflow", line 5, in <module>
from airflow.__main__ import main
File "/usr/local/lib/python3.9/site-packages/airflow/__init__.py", line
35, in <module>
from airflow import settings
File "/usr/local/lib/python3.9/site-packages/airflow/settings.py", line
35, in <module>
from airflow.configuration import AIRFLOW_HOME, WEBSERVER_CONFIG, conf
# NOQA F401
File "/usr/local/lib/python3.9/site-packages/airflow/configuration.py",
line 1618, in <module>
secrets_backend_list = initialize_secrets_backends()
File "/usr/local/lib/python3.9/site-packages/airflow/configuration.py",
line 1540, in initialize_secrets_backends
custom_secret_backend = get_custom_secret_backend()
File "/usr/local/lib/python3.9/site-packages/airflow/configuration.py",
line 1523, in get_custom_secret_backend
return _custom_secrets_backend(secrets_backend_cls,
**alternative_secrets_config_dict)
TypeError: unhashable type: 'dict'
```
### What you think should happen instead
Containers should remain healthy and the secrets backend should successfully
be added
### How to reproduce
`astro dev init` a fresh project
Dockerfile:
`FROM quay.io/astronomer/astro-runtime:5.0.8`
`.env` file:
```
AIRFLOW__SECRETS__BACKEND=airflow.providers.google.cloud.secrets.secret_manager.CloudSecretManagerBackend
AIRFLOW__SECRETS__BACKEND_KWARGS='{"connections_prefix":
"airflow-connections", "variables_prefix": "airflow-variables",
"gcp_keyfile_dict": <service-acct-json-keyfile>}'
```
`astro dev start`
### Operating System
macOS 11.6.8
### Versions of Apache Airflow Providers
[apache-airflow-providers-google](https://airflow.apache.org/docs/apache-airflow-providers-google/8.1.0/)
8.1.0
### Deployment
Astronomer
### Deployment details
_No response_
### Anything else
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]