No description
Find a file
Simon Davis d596985365
Merge pull request #47 from hashicorp/compliance/update-headers-batch-1
[IND-4227] [COMPLIANCE] Update Copyright Headers (Batch 1 of 1)
2026-01-05 10:46:27 -08:00
.github add pull request template 2025-05-13 09:17:30 -07:00
META.d [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 1) 2025-12-08 18:39:29 +00:00
tools Merge pull request #33 from hashicorp/dependabot/go_modules/tools/google.golang.org/protobuf-1.33.0 2024-10-15 16:03:38 -04:00
.gitignore Initial Commit 2016-09-01 13:19:24 -05:00
.go-version deps: build with Go 1.23.6 (#43) 2025-02-24 12:29:32 -05:00
.golangci.yml Some simple CI 2021-12-03 14:56:49 -05:00
aws_policy_equivalence.go Use 'github.com/aws/aws-sdk-go-v2'. 2024-12-30 12:00:07 -05:00
aws_policy_equivalence_test.go update policy document creation when Statement is nil 2022-07-08 11:54:04 -04:00
CODEOWNERS fix space 2024-10-25 08:57:59 -07:00
go.mod deps: build with Go 1.23.6 (#43) 2025-02-24 12:29:32 -05:00
go.sum Merge pull request #42 from hashicorp/dependabot/go_modules/github.com/aws/aws-sdk-go-v2-1.36.1 2025-02-24 11:33:29 -05:00
LICENSE Add license as requested by @HashiCorp 2017-08-31 15:14:18 -05:00
README.md Add link to README 2022-07-08 11:05:53 -04:00

AWS Policy Equivalence Package

This package checks for structural equivalence of two AWS policy documents. See Godoc for more information on usage.

Post v1.5 Validation vs. Equivalence

In versions 1.5 and earlier, this package has had a validation role. For example, {} is a valid JSON but an invalid AWS policy. But, AWS emits this empty JSON in some cases. Should this package determine {} is equivalent to itself or throw an error and say it's not equivalent to itself? Since the purpose of this package is primarily equivalence and not validation, we are removing some of the validation role.

In other words, for v1.5 and earlier, {} is not equivalent to itself and returns an error. Post v1.5, {} is equivalent to itself and does not return an error. This may impact you if you have relied on this package for validation!

CI

Go Build/Test