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

   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 **6** open `CodeQL` `py/clear-text-logging-sensitive-data` 
(`High / error`, alerts `#1835`–`#1840`) findings in 
`infra/enforcement/account_keys.py`:
   
   - Log only non-sensitive service `account_id` values and IAM binding counts 
(`len(policy.bindings)`) in `_get_all_secret_authorized_users` and 
`_get_verified_keys_from_secret_manager` instead of interpolating `secret_id`, 
`secret_name`, or full IAM `policy` objects.
   - Report summary counts for undeclared managed Secret Manager entries and 
duplicate entries in `check_compliance()` and `generate_compliance()`, avoiding 
logging `list_secrets`-derived names (and replacing character-set 
`secret.strip("-key")` with suffix-accurate `secret.removesuffix("-key")` when 
deriving `account_id`).
   
   ### Verification
   - `python3 -m py_compile infra/enforcement/account_keys.py`
   - Verified `check_compliance()` and `generate_compliance()` behavior with 
mocked Secret Manager and IAM 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