Content-Length: 310974 | pFad | https://github.com/apache/airflow/commit/ebd39ca486f9cf0386a18a249a8246059f58d613

92 Fix docs for Google Cloud Secret Manager backend (#14164) · apache/airflow@ebd39ca · GitHub
Skip to content

Commit ebd39ca

Browse files
authored
Fix docs for Google Cloud Secret Manager backend (#14164)
"airflow-tenant-primary" is a bit confusing, and the examples don't match up in the configuration file example. fix "connections_prefix" and "variables_prefix" mixup in first unordered list in "Managing Secrets" section make "variable_prefix" plural for consistency
1 parent 106d2c8 commit ebd39ca

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/apache-airflow-providers-google/secrets-backends/google-cloud-secret-manager-backend.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ the following parameters:
7979

8080
All options should be passed as a JSON dictionary.
8181

82-
For example, if you want to set parameter ``connections_prefix`` to ``"airflow-tenant-primary"`` and parameter ``variables_prefix`` to ``"variables_prefix"``, your configuration file should look like this:
82+
For example, if you want to set parameter ``connections_prefix`` to ``"example-connections-prefix"`` and parameter ``variables_prefix`` to ``"example-variables-prefix"``, your configuration file should look like this:
8383

8484
.. code-block:: ini
8585
8686
[secrets]
8787
backend = airflow.providers.google.cloud.secrets.secret_manager.CloudSecretManagerBackend
88-
backend_kwargs = {"connections_prefix": "airflow-tenant-primary", "variables_prefix": "airflow-tenant-primary"}
88+
backend_kwargs = {"connections_prefix": "example-connections-prefix", "variables_prefix": "example-variables-prefix"}
8989
9090
Set-up credentials
9191
""""""""""""""""""
@@ -114,14 +114,14 @@ In order to manage secrets, you can use the ``gcloud`` tool or other supported t
114114

115115
The name of the secret must fit the following formats:
116116

117-
* for connection: ``[variable_prefix][sep][connection_name]``
118-
* for variable: ``[connections_prefix][sep][variable_name]``
117+
* for connections: ``[connections_prefix][sep][connection_name]``
118+
* for variables: ``[variables_prefix][sep][variable_name]``
119119
* for Airflow config: ``[config_prefix][sep][config_name]``
120120

121121
where:
122122

123123
* ``connections_prefix`` - fixed value defined in the ``connections_prefix`` parameter in backend configuration. Default: ``airflow-connections``.
124-
* ``variable_prefix`` - fixed value defined in the ``variable_prefix`` parameter in backend configuration. Default: ``airflow-variables``.
124+
* ``variables_prefix`` - fixed value defined in the ``variables_prefix`` parameter in backend configuration. Default: ``airflow-variables``.
125125
* ``config_prefix`` - fixed value defined in the ``config_prefix`` parameter in backend configuration. Default: ``airflow-config``.
126126
* ``sep`` - fixed value defined in the ``sep`` parameter in backend configuration. Default: ``-``.
127127

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/apache/airflow/commit/ebd39ca486f9cf0386a18a249a8246059f58d613

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy