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

more debugging #253

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion ci/aws-iam-check-keys/find_stale_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,10 @@ def send_key(key_dict: dict, severity: str):
Send the key(s) to the pushgateway client to let it determine if they
are stale
"""
gateway = f'{env.str("GATEWAY_HOST")}:{env.str("GATEWAY_PORT", "9091")}'
gateway_test = f"{env.str('GATEWAY_HOST')}:9091"
print(gateway_test)
gateway = f"{env.str('GATEWAY_HOST')}:{env.int('GATEWAY_PORT', 9091)}"
print(gateway)
registry = CollectorRegistry()
days_since_rotation = key_dict["days_since_rotation"]
# user_type = key_dict["user_type"]
Expand Down
10 changes: 3 additions & 7 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,20 +134,16 @@ jobs:
PREFIX_DELIMITER: ((aws-iam-prefix-delimiter))
WARN_DAYS: ((aws-iam-warn-days))
VIOLATION_DAYS: ((aws-iam-violation-days))
on_success:
put: slack
params:
<<: *slack-success-params
text: |
:white_check_mark: Successfully ran IAM Check Keys in production
<$ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME|View build details>
on_failure:
put: slack
params:
<<: *slack-failure-params
text: |
:x: FAILED to deploy IAM Check Keys on production
<$ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME|View build details>
channel: "#cg-platform-news"
username: ((slack-username))
icon_url: ((slack-icon-url))

- name: aws-mfa-check
serial_groups: [production]
Expand Down
Loading