Repository navigation
adding support for Managed airflow audit log - #878
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces support for Cloud Composer API audit logs, enabling the visualization of environment operations such as creation, update, and deletion on timelines. It defines new revision states, timeline types, and field set readers, and implements tasks for querying, ingesting, grouping, and mapping these logs, supported by comprehensive unit tests. The review feedback recommends replacing hex color notations (style.MustForceConvertSRGBHex) with style.Color raw values in revision_state.go and log_type.go to comply with KHI's color space standards.
kyasbal
force-pushed
the
push-ukzsqlonryzt
branch
from
August 10, 2026 05:01
d66b2eb to
76caaa1
Compare
kyasbal
marked this pull request as ready for review
August 10, 2026 05:09
kyasbal
requested review from
K53,
RyuSA,
jyane,
kkuchima and
renamoo
as code owners
August 10, 2026 05:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds support for Cloud Composer (
composer.googleapis.com) API audit logs to KHI, allowing users to inspect environment-level operations and lifecycle transitions directly on the timeline.Key Changes
googlecloudlogcomposerapiaudit):ComposerAuditLogResourceFieldSet(fieldset.go) to extractenvironment_name,location, andproject_idfromresource.labels.LogTypeManagedAirflowAPI(log_type.go) and task IDs.log_id("cloudaudit.googleapis.com/activity")andserviceName="composer.googleapis.com"(query_task.go).LogIngesterTaskandLogToTimelineMapperTask(parser_tasks.go) to map audit logs to operations and environment lifecycle revisions.product: composerinspection selector (registration.go).TimelineTypeManagedAirflowEnvironment(Managed Airflow) under GCP Project ingooglecloudcommon(timeline_type.go).MustManagedAirflowEnvironmentTimeline(ctx, projectPath, environmentName)(timeline.go).RevisionStateManagedAirflowEnvironment*states matching GKE cluster/nodepool styling, labels, and icons inrevision_state.go:CreateEnvironment:Environment is being provisioned➔Environment exists(withLog Not Foundfallback).DeleteEnvironment:Environment is being deleted➔Environment is deleted(withLog Not Foundfallback).principalSubjectfallback inGCPOperationAuditLogFieldSetReader(fieldset.go) to support Workload Identity Service Accounts whereprincipalEmailis empty.MarkStarted(operationID string)helper inGCPOperationTracker(operation_tracker.go).Verification
make build-go: Passed.make test-go: All backend tests passed.make lint-go: Passed with 0 issues.make pre-commit: All format and lint checks passed.