uranusjr commented on a change in pull request #17448:
URL: https://github.com/apache/airflow/pull/17448#discussion_r702392881



##########
File path: airflow/providers/amazon/aws/secrets/secrets_manager.py
##########
@@ -55,6 +55,24 @@ class SecretsManagerBackend(BaseSecretsBackend, 
LoggingMixin):
     You can also pass additional keyword arguments like 
``aws_secret_access_key``, ``aws_access_key_id``
     or ``region_name`` to this class and they would be passed on to Boto3 
client.
 
+    There are two ways of storing secrets in Secret Manager for using them 
with this operator:
+    storing them as a conn URI in one field, or taking advantage of native 
approach of Secrets Manager
+    and storing them in multiple fields. There are certain words that will be 
searched in the name
+    of fileds for trying to retrieve a connection part. Those words are:
+
+    .. code-block:: ini
+
+        possible_words_for_conn_fields = {
+                'user': ['user', 'username', 'login', 'user_name'],
+                'password': ['password', 'pass', 'key'],
+                'host': ['host', 'remote_host', 'server'],
+                'port': ['port'],
+                'schema': ['database', 'schema'],
+                'conn_type': ['conn_type', 'conn_id', 'connection_type', 
'engine'],
+            }

Review comment:
       Why is this ini?




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