Audit Records

9 min read

Audit Records #

Overview

BuildPiper is a mission-critical platform, so complete audit visibility is essential for governance, accountability, troubleshooting and security investigations. BuildPiper records audit information at multiple layers. It captures the configuration changes that users make through the UI, and it also records direct access to running Kubernetes workloads.

Swipe horizontally to view all columns →
Audit layer What it covers Enabled
Default audit trail (UI) User actions performed through the BuildPiper UI, such as creating, updating or deleting resources, and pod-level SSH access history. By default
Deep-Drive Forensic Audit Logging Backend API activity at the request level (POST and DELETE requests), for security investigations and root-cause analysis. Must be enabled

Together, these give you:

Governance and accountability: every configuration change, deployment action and administrative event is attributed to a user.

Layered visibility: UI-level change tracking and pod-level SSH tracking cover both control-plane and runtime access events.

Default Audit Trail #

BuildPiper has a built-in audit trail that captures user actions performed through the UI and shows platform-level changes.

Note: The default audit trail is enabled by default. No setup or activation is needed. Audit logging works from the moment BuildPiper is deployed.

What is captured #

Swipe horizontally to view all columns →
Category What is recorded
CREATE Resource creation
UPDATE Resource modification
DELETE Resource deletion
CONFIG Pipeline configuration changes
CONFIG Job template updates
CONFIG Environment configuration changes
DEPLOY Deployment-related changes
ADMIN Administrative UI actions

The captured events are shown in the BP Change Log in the Admin Portal.

  1. 1

    Click your profile at the bottom of the left menu and select Super Admin (the Super Admin role is required).

  2. 2

    In the left menu, click Audit Records.

  3. 3

    Under Audit Records, select BP Change Log (or Pod Shell Access). The Audit Details page opens.

Audit Records: original screenshot 1

Audit Details page

The page keeps audit data for the past 365 days. This period can be changed in the system settings. Each row is one audit event:

Swipe horizontally to view all columns →
Column What it shows
Entity Name The name of the resource that was changed
Entity Type The type of resource, for example Project Env Configmap, Project Job Template, System Setting or Service
Change Type The action performed: CREATE, UPDATE or DELETE
User The user who made the change
Date & Time When the change was made
View Details Opens the details of that record

Filter audit records #

Use the filters to find specific audit events instead of browsing through a large list.

Swipe horizontally to view all columns →
Filter option Purpose Example use
Change Type Filters records by the type of action performed on an entity. Find only CREATE, UPDATE or DELETE operations.
Entity Type Filters records by the type of BuildPiper resource that was changed. Search for changes to Services, CI Details, CD Details, Service Environment Variables, Global Job Templates and so on.
Entity Name Filters records by the name of the resource. Find all changes to one service or job template.
More Filters Gives advanced options for precise searches. Search by a specific user.
Clear Filters Removes all active filters and resets the view. Start a new search after applying several filters.
Pagination / Go to Page Lets you move through large sets of records. Jump to a specific page when reviewing historical records.

View the details of a change #

Use View Details to see exactly what changed in a record.

  1. 1

    In the BP Change Log, find the record you want to check.

  2. 2

    Click View Details at the end of that row. The Compared Details page opens.

  3. 3

    Compare the Old and New panels. Click Back to return to the list.

The page header shows the name and type of the changed resource, for example a Project Env Configmap. The two panels show the same record before and after the change In the example above, is_deploy changed from false to true, and updated_at changed to the time of the update. Pod-level SSH audit

Audit Records: original screenshot 2

The default audit trail also records pod-level SSH access history. Whenever a user starts an SSH session into a Kubernetes pod through BuildPiper, the activity is recorded. You can review it under Audit Records → Pod Shell Access. This gives you a trail of runtime access alongside configuration changes. The page is titled “Pod Terminal Access: Command History and Auditing”.

Audit Records: original screenshot 3

Pod Terminal Audit History page

The Pod Terminal Audit History page lists every pod terminal session. You can filter the list by App Name, Service Name and Environment Name.

Swipe horizontally to view all columns →
Column What it shows
App Name The application the pod belongs to
Service Name The service the pod belongs to
Environment Name The environment of the pod, for example dev or prod
Pod Name The Kubernetes pod that was accessed
User The user who opened the terminal
Duration How long the session lasted
Status The state of the session, for example Ended
View Details Opens the details of that session, including the command history

Important: This is especially valuable where production troubleshooting or live debugging access is allowed. It provides the evidence needed for internal reviews and external compliance audits.

View session details #

Click View Details on a session to see what happened in it.

Audit Records: original screenshot 4
Swipe horizontally to view all columns →
Section What it shows
Session Details The application, service, environment and pod, the user, the duration, the status and the start time of the session
Command History Each command run in the session, with its status, the time it ran and, if it was blocked, the reason

A summary line under the table shows how many commands were recorded and how many were blocked. In the example above, one command was recorded and it was blocked.

Important: This is especially valuable where production troubleshooting or live debugging access is allowed. It provides the evidence needed for internal reviews and external compliance audits.

Deep-Drive Forensic Audit Logging #

For organisations that need deeper forensic visibility, BuildPiper can also capture backend API activity at the request level. It goes beyond UI events to the underlying API layer, and is designed for security investigations, root-cause analysis and compliance evidence.

Important: This feature is not enabled by default. You must enable it from the BuildPiper UI before logs start to accumulate.

What it captures #

Once enabled, BuildPiper records backend API requests by HTTP method:

Swipe horizontally to view all columns →
Method What is recorded
POST Every create or update API call made to the BuildPiper backend, with the payload, user and path
DELETE Every destructive API call, with full attribution so that events can be reconstructed

Use cases #

Swipe horizontally to view all columns →
Use case What it helps you do
Security incident investigation Reconstruct the chain of API events leading up to a suspected breach or anomaly.
Root-cause analysis Pinpoint the exact request that caused an unexpected platform state change.
Operational debugging Get detailed request-level visibility for troubleshooting complex operational issues.
Compliance evidence Keep tamper-evident logs of every destructive operation for regulatory audits.
API activity monitoring See continuously how the platform backend is being used.
Unauthorised action investigation Detect and analyse unauthorised or unexpected platform actions.
Incident correlation Correlate backend API operations with observed application or infrastructure incidents.

Enable forensic audit logging #

  1. 1

    Log in to BuildPiper with Super Admin credentials.

  2. 2

    Click your profile at the bottom of the left menu and select System Settings.

  3. 3

    In System Properties, select Audit Logs.

  4. 4

    Set Audit Logs Enable to true.

  5. 5

    In Audit logs request methods, enter the methods to capture, for example [“DELETE”, “POST”].

  6. 6

    Click Apply Immediately, or Apply Async to apply the change later.

Audit Records: original screenshot 5

Audit Logs setting in System Settings

Swipe horizontally to view all columns →
Setting What it does
Audit Logs Enable true enables audit logs. false disables them.
Audit logs request methods The HTTP methods to capture, as a list. For example, [“DELETE”, “POST”].
Apply Immediately Saves the change and applies it right away.
Apply Async Saves the change but does not apply it immediately.

Where the logs are stored #

The forensic logs are stored on the BuildPiper host at:

TEXT TEXT
Log File Path

/home/buildpiper/.log/buildpiper/audit_trail

Important: These logs are not available in the BuildPiper UI. To review them you need direct server access (SSH or file system access) to the BuildPiper host.

Swipe horizontally to view all columns →
Property Value
Log file name audit.log.<date>, one file for each day
Log size per day About 1 GB
Compression Enabled

Read a log entry #

Each entry is one line. For example:

TEXT TEXT
[2026-05-04 15:30:23,744][<thread-id>][audit_trail][INFO]: User: <user-email>, Path: /admin/api/v1/cluster/50/, Method: DELETE, Payload: {'entity_id': 50, 'name': 'cluster', 'label': 'cluster'}
Swipe horizontally to view all columns →
Part Meaning
Timestamp When the request was made
Thread ID and logger Internal identifiers of the process that handled the request
Level INFO for normal entries, ERROR for failed operations
User The user who made the request. Anonymous means the user was not signed in.
Path The API path that was called
Method The HTTP method, such as POST or DELETE
Payload The request details, such as the entity ID, name and label
Message The result of the operation, shown on some entries

How to use the forensic audit trail #

Case 1: Detect unauthorised access attempts #

If you suspect that someone is attacking BuildPiper or trying a brute-force attack on user accounts, the logs give you the data to investigate. A failed login attempt looks like this. The command filters the log for failed login requests, and each line below it is one attempt:

TEXT TEXT
Audit Log Entry · Failed Login
[2026-05-26 15:36:57,113][130744095063904][views] User: Anonymous, Path: /api/v1/user/login/, Method: POST, Payload: {'email': 'user@example.com', 'password': ' [INFO]: UNAUTHORIZED : *********'}
Audit Records: original screenshot 6

Failed login attempts in the audit log

What to look for: Many User: Anonymous entries against /api/v1/user/login/ with UNAUTHORIZED messages, especially from the same source, are a strong sign of a brute-force attack.

Case 2: Find who deleted a resource #

If an important resource, such as a Kubernetes cluster, suddenly disappears, the logs show who deleted it and when. Example A: A cluster was deleted

TEXT TEXT
Audit Log Entries · Cluster DELETE

[2026-05-04 15:30:23,744][136328556460160][audit_trail][INFO]: User: samyak.jain@opstree.com, Path: /admin/api/v1/cluster/50/, Method: DELETE, Payload: {'entity_id': 50, 'name': 'cluster', 'label': 'cluster'}

[2026-05-04 15:33:51,792][136328557854784][audit_trail][INFO]: User: samyak.jain@opstree.com, Path: /admin/api/v1/cluster/51/, Method: DELETE, Payload: {'entity_id': 51, 'name': 'cluster', 'label': 'cluster'}

Cluster delete entry in the audit log

Audit Records: original screenshot 7

Example B: A job template was deleted Bash · Grep Job Template Deletions

BASH BASH
cat audit.log.2026-05-02 | grep 'Method: DELETE' | grep 'template'

Audit Log Entries · Job Template DELETE

TEXT TEXT
[2026-05-04 16:14:01,210][136328560115072][audit_trail][INFO]: User: sunny.kumar@mygurukulam.co, Path: /api/v1/project/72/job/template/1374/, Method: DELETE, Payload: {'entity_id': 1374, 'name': 'project_job_templates', 'label': 'job template'}, Message: job_template test with ID 1374 was deleted Successfully.

[2026-05-04 16:16:29,970][136328545178528][audit_trail][INFO]: User: sunny.kumar@mygurukulam.co, Path: /api/v1/job/template/1376/, Method: DELETE, Payload: {'entity_id': '1376', 'name': 'project_job_templates', 'label': 'job template'}, Message: global job template test-V3 with ID 1376 was deleted Successfully.

[2026-05-11 11:08:55,652][136327890554528][audit_trail][INFO]: User: opstree@opstree.com, Path: /api/v1/job/template/1266/, Method: DELETE, Payload: {'entity_id': 1266, 'name': 'project_job_templates', 'label': 'job template'}, Message: global job template Global-GOLANG-EXTENSIVE-CI with ID 1266 was deleted Successfully.

[2026-05-11 15:51:40,616][136327917204352][audit_trail][INFO]: User: aayush.verma@opstree.com, Path: /api/v1/job/template/1399/, Method: DELETE, Payload: {'entity_id': 1399, 'name': 'project_job_templates', 'label': 'job template'}, Message: global job template Global-Global-olly-pr-update-ci with ID 1399 was deleted Successfully.

A failed attempt

TEXT TEXT
[2026-05-14 15:12:24,166][<thread-id>][audit_trail][ERROR]: User: <user-email>, Path: /api/v1/job/template/1402/, Method: DELETE, Payload: {'entity_id': 1402, 'name': 'project_job_templates', 'label': 'job template'}, Message: global job template <name> with ID 1402 was deleted unsuccessfully.

Note: The forensic log keeps both successful and failed delete attempts. Failed attempts (ERROR) matter too. They can show users without the right permissions trying to delete resources.

Audit Records: original screenshot 8

Job template delete entry in the audit log

Default Audit Trail and Forensic Logging Compared #

Swipe horizontally to view all columns →
Feature Default UI audit Deep-Drive forensic
Enabled by default Yes No
Needs explicit configuration No Yes
Available in the BuildPiper UI Yes No
Captures resource create / modify / delete Yes Yes
Tracks pod-level SSH access history Yes No
Captures backend API POST requests Limited Yes
Captures backend API DELETE requests Limited Yes
Suitable for operational audits Yes Yes
Suitable for forensic investigations Moderate High