You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[GSOC 2026] Adding logic to validate and generate an error if there are key… (#38992)
* Feat: Adding logic to validate and generate an error if there are keys linked to a service account that was not rotated by our system
* Fixing a critical bug to correctly identify obtained secrets
* Feat: Add the notification system via Github/Issue for keys not managed by Beam's rotation system
* Remove the unused Torch library and add a history for old reports to the problem body.
msg=f"SECURITY ALERT: Unmanaged key '{unmanaged_key}' detected on account '{service_account}'. This key was created outside of Beam's service account management system. "
announcement=f"Dear team,\n\nThis is an automated notification about compliance issues detected in the Account Keys policy for project {self.project_id}.\n\n"
323
-
announcement+=f"We found {len(diff)} compliance issue(s) that need your attention.\n"
324
-
announcement+=f"\nPlease check the GitHub issue for detailed information and take appropriate action to resolve these compliance violations."
381
+
ifgeneral_issues:
382
+
self.logger.info(f"Found {len(general_issues)} general compliance issues. Triggering announcement...")
383
+
title=f"Account Keys Compliance Issue Detected"
384
+
body=f"Account keys for project {self.project_id} are not compliant with the defined policies on {self.service_account_keys_file}\n\n"
announcement=f"Dear team,\n\nThis is an automated notification about compliance issues detected in the Account Keys policy for project {self.project_id}.\n\n"
389
+
announcement+=f"We found {len(general_issues)} compliance issue(s) that need your attention.\n"
390
+
announcement+=f"\nPlease check the GitHub issue for detailed information and take appropriate action to resolve these compliance violations."
0 commit comments