8000 Update audit.md by mallardduck · Pull Request #46655 · kubernetes/website · GitHub
[go: up one dir, main page]

Skip to content

Conversation

mallardduck
Copy link
Contributor
@mallardduck 8000 mallardduck commented Jun 4, 2024

Adjust phrasing of the metadata audit level description to provide consistency of terms between levels.
Previously the metadata level was the only one referencing "request metadata" rather than "event metadata".
If the metadata logged does not change between these levels, then it seems apt to use a consistent term.

Adjust phrasing of the metadata audit level description to provide consistency of terms between levels. Previously the metadata level was the only one referencing "request metadata" rather than "event metadata".
Copy link
linux-foundation-easycla bot commented Jun 4, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@k8s-ci-robot
Copy link
Contributor

Welcome @mallardduck!

It looks like this is your first PR to kubernetes/website 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes/website has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 4, 2024
@k8s-ci-robot k8s-ci-robot requested a review from soltysh June 4, 2024 14:23
@k8s-ci-robot k8s-ci-robot added the language/en Issues or PRs related to English language label Jun 4, 2024
@k8s-ci-robot k8s-ci-robot requested a review from sttts June 4, 2024 14:23
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Jun 4, 2024
Copy link
netlify bot commented Jun 4, 2024

Pull request preview available for checking

Built without sensitive environment variables

Name Link
🔨 Latest commit 8dc9b08
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-io-main-staging/deploys/670d3d40281a020008cc7610
😎 Deploy Preview https://deploy-preview-46655--kubernetes-io-main-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle stale
  • Close this PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 2, 2024
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle rotten
  • Close this PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Oct 2, 2024
@mallardduck
Copy link
Contributor Author

hi @soltysh / @sttts - wondering on if this can get a review and an ETA?

@mallardduck
Copy link
Contributor Author

/remove-lifecycle rotten

@k8s-ci-robot k8s-ci-robot removed the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label Oct 2, 2024

- `None` - don't log events that match this rule.
- `Metadata` - log request metadata (requesting user, timestamp, resource,
- `Metadata` - log event metadata (requesting user, timestamp, resource,
Copy link
Contributor

Choose a reason for hiding this comment

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

this seems wrong. The metadata is about requests, not about events. The events are the carrier of the metadata, not the source.

Copy link
Contributor

Choose a reason for hiding this comment

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

Similarly, line 68 is not accurate.

Copy link
Contributor

Choose a reason for hiding this comment

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

why not accurate? What's wrong with that line?

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe this would clarify it for line 69: log events with request metadata only (....)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Interesting, so if the metadata is about requests then 70/71 are wrong too. Since it uses the same phrasing and that was the root of my confusion.

In terms of all the options except None - don't they all provide the same type of metadata, or does the subject of that metadata actually change based on the option? If they provide metadata on the same subject, then the phrasing on all 3 active options should be uniform to be more clear.

Today line 69 reads as the only one referencing the request metadata versus event metadata.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sttts - I like that suggestion, so keeping with the goal of clearer consistency that would mean the others would read as:

  • Metadata - log events with request metadata [...]
  • Request - log events with request metadata and body but not response body. [...]
  • RequestResponse - log events with request metadata, request body and response body. [...]

Copy link
Contributor
@sttts sttts Oct 8, 2024

Choose a reason for hiding this comment

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

Of course this might be hairsplitting. Technically this is what we are talking about here:

Bildschirmfoto 2024-10-08 um 14 32 42

The fields metav1.TypeMeta, Level, AuditID and Stage are event metadata.
All the other fields lik RequestURI, Verb, .... are request metadata, with exception of RequestObject and ResponseObject which are not logged in Metadata mode.

Copy link
Contributor

Choose a reason for hiding this comment

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

Right. The audit module generates audit events, based on request/response body and/or metadata. When we say "log events with request metadata only", we are talking about things that are generated. When we say "log request metadata", we are talking about the data source. It is the wording here that causes confusion, IIUC.

8000

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've updated this PR per the feedback here. It seemed that the suggestion @sttts provided and I applied to all 3 was going to be acceptable to clarify the wording?

@mallardduck mallardduck requested review from tengqm and sttts October 14, 2024 18:04
@tengqm
Copy link
Contributor
tengqm commented Oct 15, 2024

/approve

@k8s-ci-robot 6D47
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tengqm

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 15, 2024
@mallardduck
Copy link
Contributor Author

ty, @tengqm. it looks like the PR just needs a lgtm from someone too - @sttts could you take a look?

@windsonsea
Copy link
Member

/label tide/merge-method-squash

@k8s-ci-robot k8s-ci-robot added the tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. label Oct 22, 2024
@sttts
Copy link
Contributor
sttts commented Oct 22, 2024

A lot better now. Thank you!

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 22, 2024
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 27a746e2c4abe869c42d526ebe5bebe124d1b957

@k8s-ci-robot k8s-ci-robot merged commit ae15372 into kubernetes:main Oct 22, 2024
6 checks passed
klueska pushed a commit to klueska/website that referenced this pull request Oct 24, 2024
* Update audit.md

Adjust phrasing of the metadata audit level description to provide consistency of terms between levels. Previously the metadata level was the only one referencing "request metadata" rather than "event metadata".

* Adjust wording per feedback thread
reylejano pushed a commit to reylejano/website that referenced this pull request Oct 25, 2024
* Update audit.md

Adjust phrasing of the metadata audit level description to provide consistency of terms between levels. Previously the metadata level was the only one referencing "request metadata" rather than "event metadata".

* Adjust wording per feedback thread
jimangel pushed a commit to jimangel/website that referenced this pull request Oct 30, 2024
* Update audit.md

Adjust phrasing of the metadata audit level description to provide consistency of terms between levels. Previously the metadata level was the only one referencing "request metadata" rather than "event metadata".

* Adjust wording per feedback thread
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. language/en Issues or PRs related to English language lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants
0