Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kubernetes API audit logs enabled on EKS-A clusters to be able to debug and log RBAC issues #6975

Open
saiteja313 opened this issue Nov 6, 2023 · 1 comment

Comments

@saiteja313
Copy link
Contributor

What would you like to be added:

Currently, this can be enabled manually following the Log Backend configuration here:

https://kubernetes.io/docs/tasks/debug/debug-cluster/audit/

EKSA Should allow configuring audit logging through EKS-A Cluster configuration file so that, manual modification to the API server config can be avoided.

Why is this needed:
Security and audit purposes.

As a EKSA Admin, I want to know who deleted a application pod or retrieved a secret value from Cluster using Audit logs.

@Cajga
Copy link
Contributor

Cajga commented Nov 8, 2023

Hi @saiteja313 ,

API audit logging is enabled by default for the cloudstack, docker, tinkerbell (bare metal) and vsphere providers:

$ git remote -v
origin	[email protected]:aws/eks-anywhere.git (fetch)
origin	[email protected]:aws/eks-anywhere.git (push)
$ git pull
Already up to date.
$ grep api-audit.log pkg/providers/*/config/template-cp.yaml
pkg/providers/cloudstack/config/template-cp.yaml:          audit-log-path: /var/log/kubernetes/api-audit.log
pkg/providers/docker/config/template-cp.yaml:          audit-log-path: /var/log/kubernetes/api-audit.log
pkg/providers/tinkerbell/config/template-cp.yaml:          audit-log-path: /var/log/kubernetes/api-audit.log
pkg/providers/vsphere/config/template-cp.yaml:          audit-log-path: /var/log/kubernetes/api-audit.log

Note: the tinkerbell (bare metal) provider got enabled in v0.17.4 with this PR

Which provider are you using and which version of EKS-A?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants