pulumi/pkg
Justin Van Patten 7ebcc42455
Downgrade remediate policy violations to mandatory (#15618)
Policy violations should not have a remediate enforcement level. The
Policy SDK currently downgrades the level from remediate to mandatory
for resource policy violations, but isn't currently doing that for stack
policies. A change to the Policy SDK is in-progress to do that.

This change applies the same behavior to the engine. If a resource
policy still has a violation after running remediations and the level is
remediate, "downgrade" the level to mandatory. Similarly, if a stack
policy has a violation with a remediate level, downgrade it to
mandatory.

This avoids a panic when getting a policy violation from a stack policy
and the enforcement level is remediate.

Related: https://github.com/pulumi/pulumi-policy/pull/339

Fixes https://github.com/pulumi/pulumi-policy/issues/332
2024-03-07 15:10:36 +00:00
..
asset Move some asset code to pkg (#15162) 2024-01-17 11:30:37 +00:00
authhelpers Add tests for gcpauth pkg (#13926) 2023-09-13 11:27:03 +00:00
backend allow retries for encrypt/decrypt API calls (#15600) 2024-03-06 08:35:36 +00:00
cmd/pulumi [cli/new] Strip sensitive data from template URLs (#15586) 2024-03-04 23:09:42 +00:00
codegen Move codegen testdata (#15549) 2024-03-06 20:36:50 +00:00
display Move sdk/go/common/display to /pkg/display (#13954) 2023-09-18 11:01:28 +00:00
engine Downgrade remediate policy violations to mandatory (#15618) 2024-03-07 15:10:36 +00:00
graph Adds a flag to graph command to insert fragment (#14858) 2024-01-08 22:03:08 +00:00
importer Enable perfsprint linter (#14813) 2023-12-12 12:19:42 +00:00
operations Add Base64SecretsProvider for testing (#15017) 2024-01-05 08:32:56 +00:00
resource Downgrade remediate policy violations to mandatory (#15618) 2024-03-07 15:10:36 +00:00
secrets Fix azure secret manager tests (#15425) 2024-02-14 08:14:58 +00:00
testing/integration set PULUMI_HOME in ProgramTests (#15568) 2024-03-04 09:06:56 +00:00
util Remove deprecated Protobufs imports (#15158) 2024-01-17 09:35:20 +00:00
version duplicate version to ensure linking is properly handled 2020-03-19 12:49:34 -07:00
workspace Clean up uses of .Error() (#14965) 2023-12-20 15:54:06 +00:00
README.md export codegen tests for internal use (#8928) 2022-02-07 12:10:04 +01:00
go.mod Changelog and go.mod updates for v3.108.1 (#15571) 2024-03-01 22:33:54 +00:00
go.sum Add InstrumentationScope to otelSpan (#15451) 2024-02-20 12:09:14 +00:00

README.md

pulumi/pkg

While pulumi/sdk maintains strict backwards compatibility guarantees, code under pkg/ is handled more informally: while breaking changes are still discouraged they may happen when they make sense.