You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "manmeetkaur (via GitHub)" <gi...@apache.org> on 2023/02/21 13:19:14 UTC

[GitHub] [airflow] manmeetkaur opened a new issue, #29656: Generate URI/JSON for a connection from the Airflow Connection UI

manmeetkaur opened a new issue, #29656:
URL: https://github.com/apache/airflow/issues/29656

   ### Description
   
   Ability to generate the Connection String in either URI or JSON Format from the Connection UX on the Airflow UI.
   
   ### Use case/motivation
   
   Many a times, have seen Data Engineers struggle with create Connection via the UI, but then struggle to generate the corresponding JSON or URI required to port it to Secret Managers. We have to either go via Astro CLI or Airflow Shell to export the connection in JSON or URI format. 
   
   The goal is to make it easier for Users to do this via the UI, and make the migration from a Dev Environment to a more organized Prod Environment's Secret Manager much easier by reducing the turnaround time.
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a 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: commits-unsubscribe@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] fritz-astronomer commented on issue #29656: Generate URI/JSON for a connection from the Airflow Connection UI

Posted by "fritz-astronomer (via GitHub)" <gi...@apache.org>.
fritz-astronomer commented on issue #29656:
URL: https://github.com/apache/airflow/issues/29656#issuecomment-1438926634

   There is an API route to get the connection - and as mentioned a CLI route. 
   
   I think this request is reasonable to expose the same functionality in the UI - even potentially with a password/sensitive info redacted or only in the connection creation modal, as the newest users are likely to use that.


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] Taragolis commented on issue #29656: Generate URI/JSON for a connection from the Airflow Connection UI

Posted by "Taragolis (via GitHub)" <gi...@apache.org>.
Taragolis commented on issue #29656:
URL: https://github.com/apache/airflow/issues/29656#issuecomment-1438653287

   AFAIK it is not possible retrieve `password` field in Webserver/REST API, potentially for security reason


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] boring-cyborg[bot] commented on issue #29656: Generate URI/JSON for a connection from the Airflow Connection UI

Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on issue #29656:
URL: https://github.com/apache/airflow/issues/29656#issuecomment-1438479480

   Thanks for opening your first issue here! Be sure to follow the issue template!
   


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] potiuk commented on issue #29656: Generate URI/JSON for a connection from the Airflow Connection UI

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #29656:
URL: https://github.com/apache/airflow/issues/29656#issuecomment-1438764607

   correct. Passwords in the UI are "write only" for that very reason. We are not supposed to read them via UI. And we also have all the - easy - ways to get the URL either via a small snippets of Python code or simply using hte `airflow cli`  - https://airflow.apache.org/docs/apache-airflow/stable/howto/connection.html#uri-format - even from exsting connections


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] potiuk commented on issue #29656: Generate URI/JSON for a connection from the Airflow Connection UI

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #29656:
URL: https://github.com/apache/airflow/issues/29656#issuecomment-1438765361

   closing as this is not very likely to be implemented.


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] potiuk closed issue #29656: Generate URI/JSON for a connection from the Airflow Connection UI

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk closed issue #29656: Generate URI/JSON for a connection from the Airflow Connection UI
URL: https://github.com/apache/airflow/issues/29656


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] ashb commented on issue #29656: Generate URI/JSON for a connection from the Airflow Connection UI

Posted by "ashb (via GitHub)" <gi...@apache.org>.
ashb commented on issue #29656:
URL: https://github.com/apache/airflow/issues/29656#issuecomment-1438827099

   An option: have a button on the New Connection form that gives "Copy as URI".


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] potiuk commented on issue #29656: Generate URI/JSON for a connection from the Airflow Connection UI

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #29656:
URL: https://github.com/apache/airflow/issues/29656#issuecomment-1439013943

   Sure. If you think so. Without sensitive info it might be fine - the 'get as uri' is kinda cumbersome though :)


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org