PrithviBadiga commented on code in PR #65694:
URL: https://github.com/apache/airflow/pull/65694#discussion_r3127432391


##########
providers/cncf/kubernetes/docs/secrets-backends/kubernetes-secrets-backend.rst:
##########
@@ -207,6 +208,33 @@ You can create a variable secret with ``kubectl``:
         airflow.apache.org/variable-key=my_var \
         --namespace=airflow
 
+Multi-team lookup
+"""""""""""""""""
+
+In multi-team mode, this backend first looks for a secret whose identifier 
label matches the requested
+connection or variable and whose ``team_label`` matches the current team. If 
no team-scoped secret is
+found, it falls back to a global secret with the same identifier label and no 
team label.
+
+For example, with ``team_label="airflow.apache.org/team"``, 
``team_name="team_a"``, and
+``conn_id="my_db"``, the backend queries:
+
+* Team-scoped: 
``airflow.apache.org/connection-id=my_db,airflow.apache.org/team=team_a``
+* Global fallback: 
``airflow.apache.org/connection-id=my_db,!airflow.apache.org/team``
+

Review Comment:
   Makes sense. I updated the docs to explicitly describe the no-team case as 
well: when `team_name` is not provided, the backend only looks up global 
secrets and excludes team-labeled ones.
   



-- 
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]

Reply via email to