Skip to content

Releases: thinkinglabs/aws-iam-policy

v3.1.0

20 Oct 12:47
Compare
Choose a tag to compare

Changelog

  • Add support for Policy Id to the PolicyDocument (#29).

  • Move the policy Version at the top of the serialised JSON policy document.

  • Drop the minimal Node.js version requirement

  • Replace npm by volta as Node.js version manager.

  • Introduce a matrix build on Node.js v18, v20, v22 (#30)

Full Changelog: v3.0.0...v3.1.0

Node.js Package

npm install --save-dev @thinkinglabs/aws-iam-policy@3.1.0

v3.0.0

07 Sep 20:44
Compare
Choose a tag to compare

Changelog

  • Extend the validation with policy document size quota (#6).

  • Extend the validation with the valid Sid values for IAM policy, KMS key policy, S3 bucket policy and SecretsManager secret policy (#5).

  • Fix a bug where the root account principal was deserialised as an ArnPrincipal (#26).

🚨 BREAKING CHANGE

  • Consolidate PolicyDocument.validateForAnyPolicy, PolicyDocument.validateForIndentityPolicy and PolicyDocument.validateForResourcePolicy into PolicyDocument.validate(PolicyType) where PolicyType accepts IAM, KMS, S3 and SecretsManager (#6).

  • Add support for the role principal #16

    Replaces ArnPrincipal used for an IAM Role with ARN arn:aws:iam::123456789000:role/a/path/a_role.

    Serialising ArnPrincipal will still produce a valid IAM Policy Statement AWS Principal JSON fragment {"AWS": "arn:aws:iam::123456789000:role/a/path/a_role"}.

    Deserialising an AWS Principal JSON fragment { "AWS": "arn:aws:iam::123456789000:role/a/path/a_role" } will now produce a RolePrincipal instead of an ArnPrincipal.

  • Add support for the user principal #16

    Replaces ArnPrincipal used for an IAM User with ARN arn:aws:iam::123456789000:user/a/path/a_user.

    Serialising ArnPrincipal will still produce a valid IAM Policy Statement AWS Principal JSON fragment {"AWS": "arn:aws:iam::123456789000:user/a/path/a_user"}.

    Deserialising an AWS Principal JSON fragment { "AWS": "arn:aws:iam::123456789000:user/a/path/a_user" } will now produce a UserPrincipal instead of an ArnPrincipal.
    Full Changelog: v2.7.0...v3.0.0

Node.js Package

npm install --save-dev @thinkinglabs/aws-iam-policy@3.0.0

v2.7.0

11 Aug 21:57
Compare
Choose a tag to compare

Changelog

Full Changelog: v2.6.1...v2.7.0

Node.js Package

npm install --save-dev @thinkinglabs/aws-iam-policy@2.7.0

v2.6.1

30 Jun 19:21
Compare
Choose a tag to compare

Changelog

Full Changelog: v2.6.0...v2.6.1

Node.js Package

npm install --save-dev @thinkinglabs/aws-iam-policy@2.6.1

v2.6.0

26 Nov 22:01
Compare
Choose a tag to compare

Changelog

Full Changelog: v2.5.1...v2.6.0

Node.js Package

npm install --save-dev @thinkinglabs/aws-iam-policy@2.6.0

v2.5.1

19 May 21:38
Compare
Choose a tag to compare

Changelog

  • Add support for Federated principals (#14) by @ringods

Full Changelog: v2.4.0...v2.5.1

Node.js Package

npm install --save-dev @thinkinglabs/aws-iam-policy@2.5.1

v2.4.0

19 May 21:02
Compare
Choose a tag to compare

Changelog

  • Add support for NotAction (#2), NotPrincipal (#3), NotResource (#4) by @ringods

Full Changelog: v2.3.0...v2.4.0

Node.js Package

npm install --save-dev @thinkinglabs/aws-iam-policy@2.4.0

v2.3.0

12 Apr 08:58
Compare
Choose a tag to compare

Changelog

  • Add support for string value for Condition key values (#9)
  • Add support for string value for Principal type values (#10)

Full Changelog: v2.2.0...v2.3.0

Node.js Package

npm install --save-dev @thinkinglabs/aws-iam-policy@2.3.0

v2.2.0

12 Apr 09:00
Compare
Choose a tag to compare

Changelog

  • Add support for string value for Action and Resource (#7) by @danopia

Full Changelog: v2.1.0...v2.2.0

Node.js Package

npm install --save-dev @thinkinglabs/aws-iam-policy@2.2.0

v2.1.0

12 Apr 09:01
Compare
Choose a tag to compare

Changelog

  • Make PolicyDocument.addStatement(Statement) public

Full Changelog: v2.0.0...v2.1.0

Node.js Package

npm install --save-dev @thinkinglabs/aws-iam-policy@2.1.0