APC audit logging is introduced in Astro Private Cloud 2.x.
What gets audited
APC audit logging emits an audit event for each successful or failed administrative action, including:- Workspace and Deployment lifecycle changes.
- User, team, service account, and role binding changes.
- Authentication events such as sign-in, sign-out, and password reset.
- Cluster registration and cluster configuration changes.
- Background worker operations that modify Deployments or cluster state.
How it works
APC audit logging uses a Vector sidecar that runs alongside the APC API and APC Worker Pods.- The APC API writes structured JSON events to standard output as it normally does.
- A built-in log wrapper script tees the APC API’s output to a shared volume that the Vector sidecar reads.
- Vector parses each line, keeps only entries where
audit == true, adds Kubernetes and platform metadata, normalizes the timestamp to@timestamp, and converts thelevelfield to uppercase. - Vector delivers the transformed event to the configured sink.
Supported sinks
Each sink is supported on a specific Kubernetes platform for the Astro Private Cloud control plane. Cross-cloud configurations, such as shipping to AWS CloudWatch Logs from a GKE cluster, aren’t supported.For this release, exactly one sink can be enabled per installation. Enabling more than one sink results in a Helm validation error. Enabling the sidecar without a sink also fails validation.
Default state
APC audit logging is disabled by default. The sidecar isn’t injected and no audit events are shipped to any external system until you enable it through Helm values. Because APC audit logging always writes audit events to standard output, you can inspect recent events withkubectl logs on the APC API or APC Worker Pods even when the sidecar is disabled. Use the sidecar when you need durable, long-term retention in a sink that you can query.
Next steps
- To enable audit log shipping, see Set up audit log shipping.
- To review every Helm value that controls the sidecar and its sinks, see Audit logging configuration reference.
- To understand the shape of each audit event and the full inventory of audited operations, see Audit log schema and operations.