Skip to content

Conversation

@olamilekan000
Copy link
Contributor

Summary

change adds workspace path to the audit event logs
{
  "kind": "Event",
  "apiVersion": "audit.k8s.io/v1",
  "level": "Request",
  "auditID": "5684337a-48d6-4491-aed2-a0bca6fcda2b",
  "stage": "RequestReceived",
  "requestURI": "/api/v1/namespaces/default/configmaps?limit=500",
  "verb": "list",
  "user": {
    "username": "kcp-admin",
    "uid": "e6741a4d-fc7c-44c5-b5ec-9357b44b7e0b",
    "groups": [
      "system:kcp:admin",
      "system:authenticated"
    ]
  },
  "sourceIPs": [
    "127.0.0.1"
  ],
  "userAgent": "kubectl/v1.30.1 (darwin/arm64) kubernetes/6911225",
  "objectRef": {
    "resource": "configmaps",
    "namespace": "default",
    "apiVersion": "v1"
  },
  "requestReceivedTimestamp": "2025-12-09T16:03:44.214758Z",
  "stageTimestamp": "2025-12-09T16:03:44.214758Z",
**  "annotations": {
    "kcp.io/cluster": "16iai06e7ob717ht",
    "kcp.io/path": "root:consumer:meme",
    "tenancy.kcp.io/workspace": "16iai06e7ob717ht"
  }**
}

What Type of PR Is This?

/kind feature

Related Issue(s)

Fixes 3734

Release Notes

Added workspace path to the event logs annotation.

@kcp-ci-bot kcp-ci-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/feature Categorizes issue or PR as related to a new feature. dco-signoff: yes Indicates the PR's author has signed the DCO. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Dec 9, 2025
@mjudeikis
Copy link
Contributor

/lgtm
/approve
can you open separate PR to add these details to docs?

@kcp-ci-bot kcp-ci-bot added the lgtm Indicates that a PR is ready to be merged. label Dec 10, 2025
@kcp-ci-bot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 174fa84db06a4b40508b53b8065b732338b8b550

@kcp-ci-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mjudeikis

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

@kcp-ci-bot kcp-ci-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 10, 2025
@olamilekan000
Copy link
Contributor Author

/lgtm
/approve
can you open separate PR to add these details to docs?

Sure

@olamilekan000
Copy link
Contributor Author

/retest

2 similar comments
@olamilekan000
Copy link
Contributor Author

/retest

@olamilekan000
Copy link
Contributor Author

/retest

@kcp-ci-bot kcp-ci-bot merged commit 08fb9eb into kcp-dev:main Dec 10, 2025
14 checks passed
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. dco-signoff: yes Indicates the PR's author has signed the DCO. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feature: Add workspace path to audit event

3 participants