Skip to content

Commit

Permalink
more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
rcgottlieb committed Dec 3, 2024
1 parent 6dd730f commit 81732a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
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

0 comments on commit 81732a2

Please sign in to comment.