Skip to content

kmesh: components: Implement Authorization Policy viewer#907

Open
itvi-1234 wants to merge 1 commit into
headlamp-k8s:mainfrom
itvi-1234:feat/kmesh-authz-policy
Open

kmesh: components: Implement Authorization Policy viewer#907
itvi-1234 wants to merge 1 commit into
headlamp-k8s:mainfrom
itvi-1234:feat/kmesh-authz-policy

Conversation

@itvi-1234

Copy link
Copy Markdown

Description

This PR implements the Authorization Policy Viewer (Section 11.7) for the Kmesh Headlamp plugin. It introduces a new read-only dashboard to view security policies active in the daemon when running in workload / dual-engine mode.

Changes Included

  • New API Hook (useAuthzPolicies): Extracts the policies[] array directly from the /debug/config_dump/dual-engine config dump endpoint.
  • AuthzPolicies Component: Renders a SimpleTable detailing active policies, including their Name, Namespace, Scope, and Action (e.g., ALLOW/DENY).
  • Rules Inspector (Dialog): Replaced a bulky inline JSON view with a clean "View Rules" button. Clicking this opens a Material-UI Dialog displaying the raw evaluated rules (from security.proto) in a formatted JSON block.
  • Routing: Registered a new sidebar entry under Kmesh (Auth Policies) and mapped it to the /kmesh/authz-policies route.

@itvi-1234 itvi-1234 force-pushed the feat/kmesh-authz-policy branch from ffa0297 to 8e62950 Compare July 15, 2026 14:03
Signed-off-by: Sumit Goyal <rjsumit72@gmail.com>
@itvi-1234 itvi-1234 force-pushed the feat/kmesh-authz-policy branch from 8e62950 to 72be0f6 Compare July 15, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant