Skip to content

✨ Console integration followups#1498

Merged
slntopp merged 3 commits intomainfrom
mik/follow-up-integration-v13
May 8, 2026
Merged

✨ Console integration followups#1498
slntopp merged 3 commits intomainfrom
mik/follow-up-integration-v13

Conversation

@slntopp
Copy link
Copy Markdown
Member

@slntopp slntopp commented May 8, 2026

No description provided.

Copy link
Copy Markdown

@mondoo-code-review mondoo-code-review Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renames CronJobs and centralizes shared code; EKS/AKS init containers still dump kubeconfig to logs.

Additional findings (file/line not in diff):

  • 🟡 controllers/k8s_scan/resources.go:774 — The GKE branch had its DEBUG: generated kubeconfig log removed (good — it could leak a bearer token), but EKS and AKS still have cat /etc/opt/mondoo/kubeconfig/kubeconfig which dumps the kubeconfig (potentially including tokens or credential-exec config) into container logs. Consider removing these debug statements to match the GKE branch, or replacing them with a non-sensitive confirmation message like echo "Kubeconfig generated".

Comment thread controllers/k8s_scan/deployment_handler.go
@github-actions

This comment has been minimized.

mondoo-code-review[bot]
mondoo-code-review Bot previously approved these changes May 8, 2026
Copy link
Copy Markdown

@mondoo-code-review mondoo-code-review Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Debug output removed and spelling metadata updated; no new issues introduced.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Test Results

  7 files  ± 0   44 suites  ±0   1h 27m 45s ⏱️ -49s
472 tests +12  472 ✅ +14  0 💤 ±0  0 ❌  - 2 
538 runs  +12  532 ✅ +16  6 💤 ±0  0 ❌  - 4 

Results for commit 01f4c20. ± Comparison against base commit 423edbc.

♻️ This comment has been updated with latest results.

Copy link
Copy Markdown

@mondoo-code-review mondoo-code-review Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test refactor to use dynamic cron job names via shared helper functions instead of hardcoded strings.

@github-actions

This comment has been minimized.

mondoo-code-review[bot]

This comment was marked as outdated.

@github-actions

This comment has been minimized.

@mondoo-code-review mondoo-code-review Bot dismissed their stale review May 8, 2026 17:22

Superseded by new review

mondoo-code-review[bot]

This comment was marked as outdated.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

mondoo-code-review[bot]

This comment was marked as outdated.

…8s scans

✨ Implement cleanup of stale CronJobs in container and k8s scan handlers
✨ Add Workload Identity Federation support for container registry authentication and refactor related constants
✨ Update user manual with Workload Identity Federation setup instructions for GKE, EKS, and AKS
✨ Update wifInitContainer to generate kubeconfig with bearer token for GKE clusters
🧹 Refactor audit config tests to use dynamic cron job names for Kubernetes and container scans
✨ Enhance cron job name generation to handle long integration and cluster names
🧹 Fix cron job name validation to check for cluster name inclusion when not truncated
@slntopp slntopp force-pushed the mik/follow-up-integration-v13 branch from 8f9c781 to 768639a Compare May 8, 2026 17:54
mondoo-code-review[bot]

This comment was marked as outdated.

@mondoohq mondoohq deleted a comment from mondoo-code-review Bot May 8, 2026
Copy link
Copy Markdown

@mondoo-code-review mondoo-code-review Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CronJob naming scheme changes for multi-integration support with migration cleanup.

Comment thread controllers/container_image/resources.go Outdated
Comment thread pkg/utils/k8s/naming.go
Comment thread controllers/k8s_scan/deployment_handler.go Outdated
@slntopp slntopp force-pushed the mik/follow-up-integration-v13 branch from 03ffe30 to b97450e Compare May 8, 2026 19:27
Copy link
Copy Markdown

@mondoo-code-review mondoo-code-review Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

External cluster WIF registry scanning will fail at pod creation due to missing volume

Comment thread controllers/k8s_scan/resources.go
Comment thread controllers/k8s_scan/resources.go Outdated
@mondoo-code-review mondoo-code-review Bot dismissed their stale review May 8, 2026 19:33

Superseded by new review

Copy link
Copy Markdown

@mondoo-code-review mondoo-code-review Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correctly skips WIF registry credentials when static pull secrets are configured, preventing credential conflicts.

@slntopp slntopp merged commit 8dabec5 into main May 8, 2026
30 checks passed
@slntopp slntopp deleted the mik/follow-up-integration-v13 branch May 8, 2026 19:56
@github-actions github-actions Bot locked and limited conversation to collaborators May 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant