Git Product home page Git Product logo

anr007 / airflow-xtended-api Goto Github PK

View Code? Open in Web Editor NEW
11.0 2.0 3.0 344 KB

Apache Airflow plugin that exposes custom secure API endpoints similar to the official Airflow API, providing richer capabilities to support more powerful DAG and job management.

Home Page: https://pypi.org/project/airflow-xtended-api/

License: MIT License

Python 88.50% CSS 1.40% JavaScript 0.76% HTML 9.34%
airflow airflow-plugin flask python workflow-scheduler

airflow-xtended-api's People

Contributors

anr007 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

airflow-xtended-api's Issues

Incorrect RBAC enforcement decorator

Containerized

Debian GNU/Linux 11 (bullseye)
Python 3.9.16
Airflow 2.5.3

The plugin fails to load because the API routes use the incorrect decorator to enforce RBAC on the endpoints. You will see the following error in your Airflow logs.

RuntimeError: Working outside of application context.
 
 This typically means that you attempted to use functionality that needed
 the current application. To solve this, set up an application context
 with app.app_context(). See the documentation for more information.

The appropriate patch is to make the following changes to all files in airflow_xtended_api/api/endpoints/*

from airflow.api_connexion import security -> from airflow.www.auth import has_access

@security.requires_access -> @has_access

from airflow.api_connexion import security

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.