Skip to content

feat(webhook): implement audit mode for dry-run policy enforcement #3

@AKonnyaku

Description

@AKonnyaku

Now policywall strictly enforces policies by denying non-compliant requests. It is suggested that:

  • add a dryrun field to the admissionpolicy CRD definition;
  • update the webhook logic to log violations instead of rejecting requests when enabled;
  • ensure admissionresponse returns allowed: true while recording violation details in warnings;
  • modify the controller to propagate the dry-run configuration to the enforcer;
  • this feature will enables safe policy testing in production environments without disruption.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions