derrickaw opened a new pull request, #41590:
URL: https://github.com/apache/beam/pull/41590

   Note: this PR was auto-generated by tooling. Before moving it out of draft, 
the author has done a full review of the PR, specifically evaluating it on the 
following criteria:
   
   - The PR remediates confirmed, live Code Scanning finding(s) (`CodeQL` / 
`zizmor`) on `master` without altering intended public API or workflow semantics
   - The fix is minimal, idiomatic, and avoids suppressing alerts or masking 
underlying defects
   - Relevant unit tests, linters, and CI checks have been verified
   
   If you have concerns with the PR or with the underlying methodology used to 
generate this, please comment below - they will be addressed by the author not 
the tooling :)
   
   ### Summary
   Resolves all **7** open `CodeQL` `py/clear-text-logging-sensitive-data` 
(`High / error`, alerts `#1841`–`#1847`) findings in `infra/keys/keys.py`:
   
   - Log only the configured non-sensitive service `account_id` in 
`_start_all_service_accounts` instead of interpolating `secret_name`.
   - Map expired Secret Manager maintenance entries in `cron()` back to 
configured `account_id` values (`configured_accounts.get(resource_id)`, while 
also normalizing `dict` returns via `.items()`) so neither Secret Manager 
secret identifiers nor service account key identifiers returned by 
`secret_manager_client.cron()` are emitted to `self.logger`.
   
   ### Verification
   - `python3 -m py_compile infra/keys/keys.py`
   - Verified `KeyService._start_all_service_accounts()` and 
`KeyService.cron(dry_run=True/False)` behavior with mocked `SecretManager` and 
`ServiceAccountManager` clients
   


-- 
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]

Reply via email to