Skip to content

Conversation

@bbovenzi
Copy link
Contributor

Closes #22352

Add logging to all CRUD REST API endpoints. In the action_logging decorator, include checks for the url and origin to also distinguish between API endpoints from the Airflow UI vs externally. api.{name_of_function} or ui.{name_of_function}


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@boring-cyborg boring-cyborg bot added area:API Airflow's REST/HTTP API area:webserver Webserver related Issues kind:documentation labels Feb 27, 2024
@bbovenzi bbovenzi mentioned this pull request Feb 27, 2024
@bbovenzi bbovenzi added this to the Airflow 2.9.0 milestone Feb 27, 2024
@bbovenzi bbovenzi changed the title Add rest api crud events to audit log Add REST API events to Audit Log Feb 27, 2024
@Lee-W Lee-W force-pushed the audit-rest-api-crud branch 2 times, most recently from 07e54dc to 68a655a Compare March 1, 2024 09:05
@Lee-W
Copy link
Member

Lee-W commented Mar 1, 2024

@bbovenzi package.json looks like accidentally added to me. Could you please confirm whether I misunderstood or not? Thanks!

@Lee-W Lee-W force-pushed the audit-rest-api-crud branch 2 times, most recently from 96419d8 to 77249b2 Compare March 1, 2024 11:28
@bbovenzi bbovenzi force-pushed the audit-rest-api-crud branch from 77249b2 to 8c258be Compare March 6, 2024 21:31
Copy link
Member

@jedcunningham jedcunningham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a newfragment that documents the event changes that happen as a result of this?

Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com>
@bbovenzi bbovenzi merged commit 31f5900 into apache:main Mar 7, 2024
@bbovenzi bbovenzi deleted the audit-rest-api-crud branch March 7, 2024 22:47
@ephraimbuddy ephraimbuddy added the type:improvement Changelog: Improvements label Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API area:webserver Webserver related Issues kind:documentation type:improvement Changelog: Improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Audit rest api update requests

6 participants