Rest API - Source File Upload #41892
Replies: 4 comments 1 reply
-
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval. |
Beta Was this translation helpful? Give feedback.
-
Uploading of DAGs was not implemented by intend especially in regards of considerations of security as far as I understand - in the past. There are recently some plans to change DAG deployment in Ariflow 3 under the AIP-66, can you take a look and check if this is the "right" direction? --> https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=294816356&src=contextnavpagetreemode There is a bit more complexity behind the scene. Else it might be a valid topic to be added as plans for future changes towards Ariflow 3. --> https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+3+Workstreams |
Beta Was this translation helpful? Give feedback.
-
Yep. What @jscheffl wrote. Also converting that one ot a discussion. Also to add - submitting the source code via "productin" REST API directly is not likely to happen even in Airflow 3 - it is considered as violating the basic security model of Airflow https://airflow.apache.org/docs/apache-airflow/stable/security/security_model.html - it's quite unlikely the standard REST API will allow to submit the code - because that would mean that But yes - AIP-66 is a way where - @necatiarslan - your contributions migh help in shaping it for Airlfow 3 in a way that might be good for your extension. I can imagine a "development" pluggable DAG backend that could expose such an API - and you could certainly develop and contribute such pluggable DAG backend and make it works as your extension would find useful. That would expose a "new" non-production API maybe that could accept dag code from outside. It could also be developed by you and released as part of your extension - it will not necessarily have to be maintained and developed in Airflow once pluggable backends are implemented. CC: @jedcunningham - for the use case for AIP-66 |
Beta Was this translation helpful? Give feedback.
-
Thanks, Guys for your replies. It is better to go on this discussion under the scope of AIP-66 |
Beta Was this translation helpful? Give feedback.
-
Description
It is good to have an API to upload source code files to the Airflow server to make deployments.
Use case/motivation
I am the developer of the Airflow VSCode extension, which developers use to build and test Airflow DAGs locally within VSCode. Currently, before running a DAG for testing, the source code must be deployed to the Airflow server. Developers often rely on their own deployment solutions, tailored to their specific development environments. However, if an API were provided to upload source code files directly, the VSCode extension could automatically upload any changed files and run the DAGs, streamlining the testing process. This is one of the most requested features by users of the extension.
Related issues
No response
Are you willing to submit a PR?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions