Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Improve content invalidation audit logging#4689

Merged
mattjackson220 merged 2 commits into
apache:masterfrom
rawlinp:improve-invalidation-logging
May 13, 2020
Merged

Improve content invalidation audit logging#4689
mattjackson220 merged 2 commits into
apache:masterfrom
rawlinp:improve-invalidation-logging

Conversation

@rawlinp
Copy link
Copy Markdown
Contributor

@rawlinp rawlinp commented May 12, 2020

What does this PR (Pull Request) do?

When this API was rewritten to Go, the audit logging was made too terse.
Improve it to provide as much information as TO-Perl provided.

  • This PR is not related to any Issue

Which Traffic Control components are affected by this PR?

  • Traffic Ops

What is the best way to verify this PR?

Create a content invalidation job, update it, then delete it. Observe the created audit log messages in TP and verify that they provide sufficient information (DS xml_id, asset URL, params).

If this is a bug fix, what versions of Traffic Control are affected?

  • master
  • 4.0.0
  • 4.1.0-RC0

The following criteria are ALL met by this PR

  • Minor audit log enhancement, no new tests necessary
  • Minor audit log enhancement, no new docs necessary
  • This PR includes an update to CHANGELOG.md
  • This PR includes any and all required license headers
  • This PR ensures that database migration sequence is correct OR this PR does not include a database migration
  • This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY (see the Apache Software Foundation's security guidelines for details)

When this API was rewritten to Go, the audit logging was made too terse.
Improve it to provide as much information as TO-Perl provided.
@rawlinp rawlinp added Traffic Ops related to Traffic Ops regression bug a bug in existing functionality introduced by a new version labels May 12, 2020
Copy link
Copy Markdown
Member

@zrhoffman zrhoffman left a comment

Choose a reason for hiding this comment

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

This looks good to me. API and unit tests pass, and the changes are a definite improvement to logging.

@mattjackson220 mattjackson220 merged commit 436b046 into apache:master May 13, 2020
@rawlinp rawlinp deleted the improve-invalidation-logging branch May 13, 2020 17:41
rawlinp added a commit to rawlinp/trafficcontrol that referenced this pull request May 28, 2020
* Improve content invalidation audit logging

When this API was rewritten to Go, the audit logging was made too terse.
Improve it to provide as much information as TO-Perl provided.

* Add changelog entry

(cherry picked from commit 436b046)
rawlinp added a commit that referenced this pull request May 28, 2020
* Improve content invalidation audit logging

When this API was rewritten to Go, the audit logging was made too terse.
Improve it to provide as much information as TO-Perl provided.

* Add changelog entry

(cherry picked from commit 436b046)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

regression bug a bug in existing functionality introduced by a new version Traffic Ops related to Traffic Ops

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants