Why the audit policy is capturing logs for only 'networkpolicy' changes but not for 'egressnetworkpolicy'?

Solution Verified - Updated -

Issue

  • For a security requirement to audit the changes for networkpolicy and egressnetworkpolicy, below policy is applied with group extensions, however only logs related to networkpolicy are generated and not for egressnetworkpolicy.
root@ocp-master-201:  ~$ cat /etc/origin/master/adv-audit.yaml
apiVersion: audit.k8s.io/v1beta1
kind: Policy
rules:
  - level: RequestResponse
    users:
    verbs:
    resources:
    - group: "" # core API group
    - group: "extensions"
root@ocp-master-201:  ~$ 
  • How to generate the logs for egressnetworkpolicy?

Environment

  • Red Hat OpenShift Container Platform 3.11
  • Audit policy object

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content