Skip to content

Commit c03a75b

Browse files
refeedarunim2405
authored andcommitted
Bump version to 1.0.0-beta.4
1 parent 5ab7aed commit c03a75b

File tree

5 files changed

+41
-8
lines changed

5 files changed

+41
-8
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.0.0-beta.4] - 2023-10-26
9+
10+
### Added
11+
- `terraform_plan/direct_dependencies`: Added option `references_to` and `referenced_by` to make sure whether the resource is referenced by or references to the given resource (e.g. `references_to: "aws_security_group"`)
12+
813
## [1.0.0-beta.3] - 2023-07-20
914

1015
### Fixed

README.md

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ optional arguments:
151151
}
152152
```
153153

154-
4. Make sure that AWS ELBs are attached to security group (using Terraform plan provider)
154+
4. Make sure that all AWS ELBs are attached to security group (using Terraform plan provider)
155155
```json
156156
{
157157
"meta": {
@@ -164,19 +164,47 @@ optional arguments:
164164
"provider_args": {
165165
"operation_type": "direct_references",
166166
"terraform_resource_type": "aws_elb"
167+
"references_to": "aws_security_group"
167168
},
168169
"condition": {
169-
"type": "Contains",
170-
"value": "aws_security_group",
171-
"error_tolerance": 2
170+
"type": "Equals",
171+
"value": true,
172+
"error_tolerance": 0
172173
}
173174
}
174175
],
175176
"eval_expression": "aws_elbs_have_direct_references_to_security_group"
176177
}
177178
```
178179

179-
5. Kubernetes (using Kubernetes provider)
180+
5. Make sure that all `aws_s3_bucket` are referenced by `aws_s3_bucket_intelligent_tiering_configuration` (using Terraform plan provider)
181+
```json
182+
{
183+
"meta": {
184+
"required_provider": "stackguardian/terraform_plan",
185+
"version": "v1"
186+
},
187+
"evaluators": [
188+
{
189+
"id": "s3HasLifeCycleIntelligentTiering",
190+
"description": "Make sure all aws_s3_bucket are referenced by aws_s3_bucket_intelligent_tiering_configuration",
191+
"provider_args": {
192+
"operation_type": "direct_references",
193+
"terraform_resource_type": "aws_s3_bucket",
194+
"referenced_by": "aws_s3_bucket_intelligent_tiering_configuration"
195+
},
196+
"condition": {
197+
"type": "Equals",
198+
"value": true,
199+
"error_tolerance": 0
200+
}
201+
}
202+
],
203+
"eval_expression": "s3HasLifeCycleIntelligentTiering"
204+
}
205+
```
206+
207+
6. Kubernetes (using Kubernetes provider)
180208
- Make sure that all pods have a liveness probe defined
181209

182210
```json

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def read(*names, **kwargs):
2222

2323
setup(
2424
name="py-tirith",
25-
version="1.0.0-beta.3",
25+
version="1.0.0-beta.4",
2626
license="Apache",
2727
description="Tirith simplifies defining Policy as Code.",
2828
long_description_content_type="text/markdown",

src/tirith/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
tirith: Execute policies defined using Tirith (StackGuardian Policy Framework)
33
"""
44

5-
__version__ = "1.0.0-beta.3"
5+
__version__ = "1.0.0-beta.4"
66
__author__ = "StackGuardian"
77
__license__ = "Apache"

src/tirith/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def __init__(self, prog="PROG") -> None:
8484
action="store_true",
8585
help="Show detailed logs of from the run",
8686
)
87-
parser.add_argument("--version", action="version", version="1.0.0-beta.3")
87+
parser.add_argument("--version", action="version", version="1.0.0-beta.4")
8888

8989
args = parser.parse_args()
9090

0 commit comments

Comments
 (0)