You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "HansMarcus01 (via GitHub)" <gi...@apache.org> on 2026/06/25 20:41:40 UTC
[PR] including GitHub Actions to schedule daily audits and Add documentati… [beam]
HansMarcus01 opened a new pull request, #39116:
URL: https://github.com/apache/beam/pull/39116
This pull request introduces automation for auditing and verifying Google Cloud service accounts that haven't been rotated using GitHub Actions.
It adds a new workflow that detects keys generated outside the rotation system, updates the documentation to reflect this automation, and manages it through a GitHub Action to reflect the current status of the keys.
These changes help ensure the rotation system is being used, which helps maintain a clean and secure environment.
## Automation and Workflow Integration:
- **Daily Scheduled Audit**: Added (`.github/workflows/beam_Infraestructure_AuditUnmanagedKeys.yml`), a new GitHub Action workflow scheduled to run daily to continuously monitor GCP service account keys.
## Documentation Updates:
- **GitHub Actions Integration**: Updated the README.md to document the new Unmanaged Keys Audit workflow and its daily scheduling.
- **Account Keys Features**: Added detailed descriptions of the new capabilities, including Unmanaged Key Detection, Stateful Security Alerts, and Self-Healing Resolution.
- **Announce Action Behavior**: Clarified how the `--action announce` flag handles general configuration errors versus critical security alerts (rogue keys).
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] including GitHub Actions to schedule daily audits and Add documentati… [beam]
Posted by "damccorm (via GitHub)" <gi...@apache.org>.
damccorm commented on PR #39116:
URL: https://github.com/apache/beam/pull/39116#issuecomment-4810159981
R: @pabloem
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] including GitHub Actions to schedule daily audits and Add documentati… [beam]
Posted by "pabloem (via GitHub)" <gi...@apache.org>.
pabloem merged PR #39116:
URL: https://github.com/apache/beam/pull/39116
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] including GitHub Actions to schedule daily audits and Add documentati… [beam]
Posted by "gemini-code-assist[bot] (via GitHub)" <gi...@apache.org>.
gemini-code-assist[bot] commented on PR #39116:
URL: https://github.com/apache/beam/pull/39116#issuecomment-4804003807
## Summary of Changes
Hello, I'm Gemini Code Assist[^1]! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!
This pull request enhances the infrastructure security posture by automating the detection of unmanaged service account keys. By integrating a daily audit workflow and improving the reporting logic for security alerts, the system now provides better visibility into rogue keys and streamlines the remediation process through self-healing GitHub issues.
### Highlights
* **Automated Security Auditing**: Introduced a new daily GitHub Actions workflow to detect and report rogue GCP service account keys created outside the official rotation system.
* **Enhanced Documentation**: Updated the README to include details on the new Unmanaged Keys Audit workflow, clarified the behavior of the 'announce' action, and added descriptions for new security features.
* **Stateful Security Reporting**: Implemented a new reporting mechanism that consolidates security alerts into a single, self-healing GitHub issue with historical tracking.
<details>
<summary><b>New Features</b></summary>
🧠 You can now enable **Memory** (public preview) to help **Gemini Code Assist** learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. **Click [here](https://codeassist.google/code-review/login) to enable Memory in your admin console.**
</details>
<details>
<summary><b>Ignored Files</b></summary>
* **Ignored by pattern:** `.github/workflows/**` (1)
* .github/workflows/beam_Infraestructure_AuditUnmanagedKeys.yml
</details>
<details>
<summary><b>Using Gemini Code Assist</b></summary>
<br>
The full guide for Gemini Code Assist can be found on our [documentation page](https://developers.google.com/gemini-code-assist/docs/review-github-code), here are some quick tips.
<b>Invoking Gemini</b>
You can request assistance from Gemini at any point by creating a comment using either `/gemini <command>` or `@gemini-code-assist <command>`. Below is a summary of the supported commands on the current page.
Feature | Command | Description
--- | --- | ---
Code Review | `/gemini review` | Performs a code review for the current pull request in its current state.
Pull Request Summary | `/gemini summary` | Provides a summary of the current pull request in its current state.
Comment | @gemini-code-assist | Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help | `/gemini help` | Displays a list of available commands.
<b>Customization</b>
To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a `.gemini/` folder in the base of the repository. Detailed instructions can be found [here](https://developers.google.com/gemini-code-assist/docs/customize-gemini-behavior-github).
<b>Limitations & Feedback</b>
Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with :thumbsup: and :thumbsdown: on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up [here](https://google.qualtrics.com/jfe/form/SV_2cyuGuTWsEw84yG).
</details>
[^1]: Review the [Privacy Notices](https://policies.google.com/privacy), [Generative AI Prohibited Use Policy](https://policies.google.com/terms/generative-ai/use-policy), [Terms of Service](https://policies.google.com/terms), and learn how to configure Gemini Code Assist in GitHub [here](https://developers.google.com/gemini-code-assist/docs/customize-gemini-behavior-github). Gemini can make mistakes, so double check it and [use code with caution](https://support.google.com/legal/answer/13505487).
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] including GitHub Actions to schedule daily audits and Add documentati… [beam]
Posted by "gemini-code-assist[bot] (via GitHub)" <gi...@apache.org>.
gemini-code-assist[bot] commented on code in PR #39116:
URL: https://github.com/apache/beam/pull/39116#discussion_r3477548517
##########
infra/enforcement/README.md:
##########
@@ -134,8 +134,9 @@ The enforcement tools are integrated with GitHub Actions to provide automated co
### Workflow Configuration
-The GitHub Actions workflow (`.github/workflows/beam_Infrastructure_PolicyEnforcer.yml`) runs:
-- **Schedule**: Weekly on Mondays at 9:00 AM UTC
+The repository includes workflows for different security domains:
+- **IAM Policy Enforcer** (`.github/workflows/beam_Infrastructure_PolicyEnforcer.yml`): Runs weekly on Mondays at 9:00 AM UTC.
+- **Unmanaged Keys Audit** (`.github/workflows/beam_Infraestructure_AuditUnmanagedKeys.yml`): Runs daily at 00:00 UTC. It manages the continuous execution of the `account_keys.py` script to swiftly detect rogue service account keys generated outside the official rotation system.
Review Comment:

There is a typo in the workflow filename: `beam_Infraestructure_AuditUnmanagedKeys.yml` should be `beam_Infrastructure_AuditUnmanagedKeys.yml` (correcting 'Infraestructure' to 'Infrastructure'). Please ensure the actual workflow file in `.github/workflows/` is also renamed accordingly.
```suggestion
- **Unmanaged Keys Audit** (`.github/workflows/beam_Infrastructure_AuditUnmanagedKeys.yml`): Runs daily at 00:00 UTC. It manages the continuous execution of the `account_keys.py` script to swiftly detect rogue service account keys generated outside the official rotation system.
```
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] including GitHub Actions to schedule daily audits and Add documentati… [beam]
Posted by "pabloem (via GitHub)" <gi...@apache.org>.
pabloem commented on PR #39116:
URL: https://github.com/apache/beam/pull/39116#issuecomment-4805026057
LGTM
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] including GitHub Actions to schedule daily audits and Add documentati… [beam]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #39116:
URL: https://github.com/apache/beam/pull/39116#issuecomment-4810168676
Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control. If you'd like to restart, comment `assign set of reviewers`
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] including GitHub Actions to schedule daily audits and Add documentati… [beam]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #39116:
URL: https://github.com/apache/beam/pull/39116#issuecomment-4805085916
Assigning reviewers:
R: @damccorm for label build.
Note: If you would like to opt out of this review, comment `assign to next reviewer`.
Available commands:
- `stop reviewer notifications` - opt out of the automated review tooling
- `remind me after tests pass` - tag the comment author after tests pass
- `waiting on author` - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)
The PR bot will only process comments in the main thread (not review comments).
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org