You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kube-oidc-proxy: No explicit timestamps, but they could be inferred from the log output system.
Differences
Log Format Granularity:
Kubernetes logs are general and encapsulate the entire request and response lifecycle, including stage and responseStatus.
kube-oidc-proxy logs are more granular, focusing on API request parsing, such as api_prefix, api_group, api_version, and selectors (field_selector, label_selector).
User Agent:
Kubernetes: Captured as userAgent.
kube-oidc-proxy: Missing.
Response Details:
Kubernetes: responseStatus includes the HTTP response code (e.g., 200).
kube-oidc-proxy: Does not log response details, focusing solely on the request.
Cluster Context:
Kubernetes: Does not log cluster_name.
kube-oidc-proxy: Includes cluster_name for multi-cluster environments.
Compatibility Considerations
Mapping Fields:
Most fields can be mapped directly:
username → email
uid → uid
groups → groups
requestURI → request_path
verb → verb
Additional parsing would be required for:
Extracting namespace, resource, and sub_resource from requestURI.
Missing Fields in proxy:
responseStatus
sourceIPs
userAgent
kind
level
stage
Response Data:
Kubernetes logs include responseStatus, while kube-oidc-proxy does not. If response tracking is required, kube-oidc-proxy logs would need enhancements.
The text was updated successfully, but these errors were encountered:
Bhoomiz01
changed the title
audit-logs compatibility
Audit-logs compatibility between k8s default logs and our audit-logs schema.
Jan 17, 2025
default k8s audit logs
kube-oidc-proxy audit logs formet
Similarities
User Information:
user
object) andkube-oidc-proxy
logs (email
,uid
, andgroups
) both provide user-related details, including:username
/email
)uid
)groups
)extra
)Request Metadata:
requestURI
kube-oidc-proxy
:request_path
verb
kube-oidc-proxy
:verb
is_resource_request
inkube-oidc-proxy
).Namespace & Resource:
requestURI
.kube-oidc-proxy
explicitly separates these (namespace
,resource
, andsub_resource
).Timestamps:
requestReceivedTimestamp
,stageTimestamp
.kube-oidc-proxy
: No explicit timestamps, but they could be inferred from the log output system.Differences
Log Format Granularity:
stage
andresponseStatus
.kube-oidc-proxy
logs are more granular, focusing on API request parsing, such asapi_prefix
,api_group
,api_version
, and selectors (field_selector
,label_selector
).User Agent:
userAgent
.kube-oidc-proxy
: Missing.Response Details:
responseStatus
includes the HTTP response code (e.g.,200
).kube-oidc-proxy
: Does not log response details, focusing solely on the request.Cluster Context:
cluster_name
.kube-oidc-proxy
: Includescluster_name
for multi-cluster environments.Compatibility Considerations
Mapping Fields:
username
→email
uid
→uid
groups
→groups
requestURI
→request_path
verb
→verb
namespace
,resource
, andsub_resource
fromrequestURI
.Missing Fields in proxy:
responseStatus
sourceIPs
userAgent
kind
level
stage
Response Data:
responseStatus
, whilekube-oidc-proxy
does not. If response tracking is required,kube-oidc-proxy
logs would need enhancements.The text was updated successfully, but these errors were encountered: