Skip to content

Commit df99d07

Browse files
authored
Merge pull request #47 from dwc0011/add-key-threshold-to-template-data
Add key threshold to template data
2 parents 5c46d8d + 02e61bd commit df99d07

6 files changed

Lines changed: 30 additions & 10 deletions

File tree

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 1.0.0
2+
current_version = 1.0.1
33
commit = True
44
message = Bumps version to {new_version}
55
tag = False

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
### [1.0.1](https://github.com/plus3it/terraform-aws-tardigrade-iam-key-enforcer/releases/tag/1.0.1)
8+
9+
**Released**: 2025.12.23
10+
11+
**Summary**:
12+
13+
* Add key_use_threshold to the admin template data for use in admin email templates
14+
* Updates default python lambda runtime from `3.11 to 3.12`
15+
* Tools
16+
* tardigrade-ci `0.24.15` -> `0.28.5`
17+
* terraform-aws-lambda `7.2.3` -> `8.1.2`
18+
19+
720
### [1.0.0](https://github.com/plus3it/terraform-aws-tardigrade-iam-key-enforcer/releases/tag/1.0.0)
821

922
**Released**: 2024.03.08

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM plus3it/tardigrade-ci:0.28.4
1+
FROM plus3it/tardigrade-ci:0.28.5
22

33
COPY ./src/python/requirements.txt /app/requirements/lambda.txt
44

email_templates/admin_email.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ <h3 style="color:red">
1414
{{/if}}
1515

1616
<p>
17-
Access Keys over {{key_age_inactive}} days old have been DEACTIVATED, keys older than {{key_age_delete}} days have
18-
been DELETED.
19-
Access keys over {{key_age_warning}} days old are DEACTIVATED at {{key_age_inactive}} days old and DELETED after
20-
{{key_age_delete}} days old.
21-
Rotate any keys as necessary to prevent disruption to your applications.
17+
Warnings begin for Access Keys at {{key_age_warning}} days.
18+
19+
Access Keys are DISABLED at {{key_age_inactive}} days and are DELETED at {{key_age_delete}} days.
20+
21+
Access Keys that have never been used are deleted at {{key_use_threshold}} days.
22+
23+
Rotate Access Keys as necessary to prevent disruption to your applications or services.
2224
</p>
2325

2426
{{#if exempt_groups}}

email_templates/admin_email.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@
1010
The information below is for informational purposes and represents the results if the IAM Key Enforcer were active.
1111
{{/if}}
1212

13-
Access Keys over {{key_age_inactive}} days old have been DEACTIVATED, keys older than {{key_age_delete}} days have been DELETED.
14-
Access keys over {{key_age_warning}} days old are DEACTIVATED at {{key_age_inactive}} days old and DELETED after {{key_age_delete}} days old.
15-
Rotate any keys as necessary to prevent disruption to your applications.
13+
Warnings begin for Access Keys at {{key_age_warning}} days.
14+
15+
Access Keys are DISABLED at {{key_age_inactive}} days and DELETED at {{key_age_delete}} days.
16+
17+
Access Keys that have never been used are deleted at {{key_use_threshold}} days.
18+
19+
Rotate Access Keys as necessary to prevent disruption to your applications or services.
1620

1721

1822
{{#if exempt_groups}}

src/python/iam_key_enforcer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,7 @@ def admin_email_template_data(key_report_contents, event, exempt_groups):
452452
"key_age_inactive": KEY_AGE_INACTIVE,
453453
"key_age_delete": KEY_AGE_DELETE,
454454
"key_age_warning": KEY_AGE_WARNING,
455+
"key_use_threshold": KEY_USE_THRESHOLD,
455456
}
456457

457458
template_data.update(optional_email_template_data(event, exempt_groups))

0 commit comments

Comments
 (0)