This is an automated email from the ASF dual-hosted git repository.
kamilbregula pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/master by this push:
new d02c12c Add link to ADC in use-alternative-secrets-backend.rst (#9478)
d02c12c is described below
commit d02c12c60cddf0ab0780cbf9d2c67fcdd2fe60d2
Author: Kamil BreguĊa <[email protected]>
AuthorDate: Tue Jun 23 16:39:03 2020 +0200
Add link to ADC in use-alternative-secrets-backend.rst (#9478)
---
docs/howto/use-alternative-secrets-backend.rst | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/docs/howto/use-alternative-secrets-backend.rst
b/docs/howto/use-alternative-secrets-backend.rst
index 04879ee..5ef2005 100644
--- a/docs/howto/use-alternative-secrets-backend.rst
+++ b/docs/howto/use-alternative-secrets-backend.rst
@@ -387,17 +387,14 @@ and if you want to retrieve both Variables and
connections use the following sam
backend_kwargs = {"connections_prefix": "airflow-connections",
"variables_prefix": "airflow-variables", "sep": "-"}
-When ``gcp_key_path`` is not provided, it will use the Application Default
Credentials in the current environment. You can set up the credentials with:
+When ``gcp_key_path`` is not provided, it will use the Application Default
Credentials (ADC) to obtain credentials.
-.. code-block:: ini
+.. note::
- # 1. GOOGLE_APPLICATION_CREDENTIALS environment variable
- export GOOGLE_APPLICATION_CREDENTIALS=path/to/key-file.json
+ For more information about the Application Default Credentials (ADC), see:
- # 2. Set with SDK
- gcloud auth application-default login
- # If the Cloud SDK has an active project, the project ID is returned. The
active project can be set using:
- gcloud config set project
+ * `google.auth.default
<https://google-auth.readthedocs.io/en/latest/reference/google.auth.html#google.auth.default>`__
+ * `Setting Up Authentication for Server to Server Production
Applications <https://cloud.google.com/docs/authentication/production>`__
The value of the Secrets Manager secret id must be the :ref:`connection URI
representation <generating_connection_uri>`
of the connection object.