Skip to content

Commit

Permalink
Merge pull request #63 from moj-analytical-services/add-CaDeT-require…
Browse files Browse the repository at this point in the history
…d-permissions

Very slightly expand standard athena permissions
  • Loading branch information
jhpyke authored Jul 1, 2024
2 parents d4a3684 + 576dfde commit c7135ce
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## v4.8.0

- Updates standard athena policy to add 'glue:GetTableVersions'

## v4.7.0

- Add London region for Amazon Bedrock
Expand Down
1 change: 1 addition & 0 deletions examples/iam_policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
"glue:GetDatabase",
"glue:GetDatabases",
"glue:GetTable",
"glue:GetTableVersions",
"glue:GetTables",
"glue:GetPartition",
"glue:GetPartitions",
Expand Down
1 change: 1 addition & 0 deletions iam_builder/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ def get_athena_read_access(dump_bucket: list) -> dict:
"glue:GetDatabase",
"glue:GetDatabases",
"glue:GetTable",
"glue:GetTableVersions",
"glue:GetTables",
"glue:GetPartition",
"glue:GetPartitions",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "iam_builder"
version = "4.7.0"
version = "4.8.0"
description = "A lil python package to generate iam policies"
authors = ["Karik Isichei <[email protected]>"]
license = "MIT"
Expand Down
1 change: 1 addition & 0 deletions tests/expected_policy/all_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
"glue:GetDatabase",
"glue:GetDatabases",
"glue:GetTable",
"glue:GetTableVersions",
"glue:GetTables",
"glue:GetPartition",
"glue:GetPartitions",
Expand Down
1 change: 1 addition & 0 deletions tests/expected_policy/athena_full_access.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
"glue:GetDatabase",
"glue:GetDatabases",
"glue:GetTable",
"glue:GetTableVersions",
"glue:GetTables",
"glue:GetPartition",
"glue:GetPartitions",
Expand Down
1 change: 1 addition & 0 deletions tests/expected_policy/athena_read_only.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
"glue:GetDatabase",
"glue:GetDatabases",
"glue:GetTable",
"glue:GetTableVersions",
"glue:GetTables",
"glue:GetPartition",
"glue:GetPartitions",
Expand Down
1 change: 1 addition & 0 deletions tests/expected_policy/athena_two_dumps.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
"glue:GetDatabase",
"glue:GetDatabases",
"glue:GetTable",
"glue:GetTableVersions",
"glue:GetTables",
"glue:GetPartition",
"glue:GetPartitions",
Expand Down

0 comments on commit c7135ce

Please sign in to comment.