mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
Under IAM enforcement, Redshift requests were checked on `*`, so a grant scoped to a cluster, a snapshot or a database user was refused, and a deny scoped to one never applied. The redshift namespace moves from NOT_COVERED to NAMESPACES in the request resources generator, with corrections where the generated rule checks the wrong resource. GetClusterCredentials now also gives the redshift:DbUser condition key, from a new generated table, to its own check and to the CreateClusterUser check that AutoCreate adds. Refs #5907 fix(redshift): act only on a snapshot of the cluster the request names A snapshot request is checked on snapshot:<cluster>/<name> for the cluster it names, but DeleteClusterSnapshot, RestoreFromClusterSnapshot and DescribeClusterSnapshots found the snapshot by its name alone. A caller allowed on one cluster's snapshots could act on a snapshot of another cluster by naming the allowed one. A snapshot taken from another cluster than the one the request names, in SnapshotClusterIdentifier, the cluster of a SnapshotArn, or DescribeClusterSnapshots' ClusterIdentifier, is now not found. Refs #5907 chore(iam): generate the Lambda Web and Redshift condition keys into one table chore(redshift): read a restore's snapshot ARN once