github-actions[bot] commented on issue #14917: URL: https://github.com/apache/cloudstack/issues/14917#issuecomment-7380584177
> [!WARNING] > threat detection engine error > The threat detection engine encountered an error and could not complete analysis. This is a tooling failure, not a security finding. > > <!-- gh-aw-threat-engine-error --> > > <details> > <summary>What happened</summary> > > The threat detection engine failed to produce results. > > Review the [workflow run logs](https://github.com/apache/cloudstack/actions/runs/47117162082) for details. > > </details> ## ๐ฏ Triage report When a CKS cluster is created with a private registry, the node setup script runs under `bash -x`, so the registry user name, password and base64 auth string are written to `/var/log/cloud-init-output.log` on every node. The same values are substituted as plain text into cloud-config, so quotes, backslashes, `$`, newlines or Jinja markers in them break node setup. The containerd config that holds the credentials is also world-readable. Open PR #14918 is linked. **Security handling:** this report describes credential exposure in node logs and file permissions. `SECURITY.md` asks that suspected vulnerabilities be reported privately to [email protected] and not in public issues. Maintainers should decide whether this report stays public and whether `type:security` applies. ### ๐ Assessment | Dimension | Value | Reasoning | | --- | --- | --- | | **Type** | type:security | Registry credentials are logged and stored with loose permissions | | **Component** | component:cks | Node bootstrap and cloud-config rendering | | **Severity** | n/a | Not assessed here; depends on the security review above | | **Labels** | type:security, component:cks | Based on the issue text | | **Coding agent** | Needs more info | Fix touches credential handling and templating; a security review should confirm the change before it is written | ### ๐ Similar issues - #14896 (related) โ CKS node bootstrap drops the private registry on containerd 2.x; same bootstrap code - #14768 (related) โ join token that never expires and skips CA verification - #14907 (related) โ every user who may operate a cluster gets its cluster-admin kubeconfig <details> <summary>๐ก Notes and suggestions</summary> - Reproduction: create a CKS cluster with a private registry, then search `/var/log/cloud-init-output.log` on a node for the registry's auth string. - Any fix should also cover logs that already exist on nodes. The reporter does not say whether they plan to rotate the registry credential. - The reporter's test with `{{` in the password shows the cloud-config is dropped. Test this case in the fix. </details> > Generated by [Daily Issue Triage](https://github.com/apache/cloudstack/actions/runs/47117162082) ยท copilot ยท haiku55 ยท \~11 AIC ยท โ 3.8K ยท [โท](https://github.com/search?q=repo%3Aapache%2Fcloudstack+%22gh-aw-workflow-call-id%3A+apache%2Fcloudstack%2Fdaily-issue-triage%22&type=issues) <details> <summary><sub>Add this agentic workflow to your repo</sub></summary> To install this agentic workflow, run ``` gh aw add githubnext/agentics/workflows/daily-issue-triage.md@139fa09ef17cde4135e696ff8e7af09bc5ddfa6e ``` </details> <!-- gh-aw-workflow-call-id: apache/cloudstack/daily-issue-triage --> <!-- gh-aw-agentic-workflow: Daily Issue Triage, engine: copilot, model: claude-haiku-5.5, id: 47117162082, workflow_id: daily-issue-triage, run: https://github.com/apache/cloudstack/actions/runs/47117162082 --> <!-- gh-aw-execution: {"version":1,"repo_id":"9759448","repository":"apache/cloudstack","aw_workflow_id":"daily-issue-triage","run_id":"47117162082","run_attempt":"1","run_url":"https://github.com/apache/cloudstack/actions/runs/47117162082","publishing_job":{"key":"safe_outputs","check_run_id":"144301762793"}} --> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
