Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/alert notify leaked key #299

Merged
merged 3 commits into from
Oct 25, 2023
Merged

Conversation

sylviamclaughlin
Copy link
Contributor

@sylviamclaughlin sylviamclaughlin commented Oct 20, 2023

Summary | Résumé

Handles the Slack bot logic when an API key has been leaked. The steps are as follows:

  1. A message is sent to the internal-sre-alerts channel where an incident can be started.
  2. The people on call are tagged in the message.
  3. The SRE app also sends a direct message to the people on call. A sample message of the people on call is below:

Screenshot 2023-10-20 at 3 18 50 PM

@github-actions
Copy link

github-actions bot commented Oct 20, 2023

GitHub Action status on 403a0b8 generated by comment-failure-action

Lint, format and test code

job url
null https://github.com/cds-snc/sre-bot/actions/runs/6593136905/job/17915121595

Build containers CI

No jobs failed 👍

@github-actions
Copy link

Dive image results for sre-bot:latest

Image sre-bot:latest
Total Size 1.70GiB
Inefficient Bytes 86.67MiB
Efficiency Percentage 96.49%
Total Layers 21

See the PR run for more details

1 similar comment
@github-actions
Copy link

Dive image results for sre-bot:latest

Image sre-bot:latest
Total Size 1.70GiB
Inefficient Bytes 86.67MiB
Efficiency Percentage 96.49%
Total Layers 21

See the PR run for more details

folder = folder["id"]
break
# Get folder metadata
folder_metadata = google_drive.list_metadata(folder).get("appProperties", {})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah this is interesting - I didn't know you could do this for Google Drive

@sylviamclaughlin sylviamclaughlin merged commit 4c5a54d into main Oct 25, 2023
4 checks passed
@sylviamclaughlin sylviamclaughlin deleted the feat/alert_notify_leaked_key branch October 25, 2023 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants