Skip to content

chart: the OPA authz sidecar does not watch its policy, so a policy change needs a proxy roll #1383

Closed

Description

@bpalermo

opa run is started without --watch, so the sidecar reads its policy once. Since #1367 a policy change rolls the proxy pod through a checksum/opa-policy annotation (before that it was applied only by the accident of every release rolling everything). A proxy roll is a hot restart on every node.

Fix: run OPA with --watch on the mounted policy (ConfigMap updates arrive through the symlink swap) and drop the checksum annotation; check the reload is atomic and what a bad policy does (keep the last good one, with a metric).

Reported by the chart work for #1363/#1364 (PRs #1367, #1368), not changed there.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Metadata

Metadata

Assignees

No one assigned

    Labels

    chartenhancementminorproxy

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions