mirror of
https://github.com/dsx-ai-factory/nvke.git
synced 2026-12-07 04:35:58 +08:00
* feat(management-engine): authorize public API requests Check each mounted route against the caller's Cedar role before the handler runs. Tenant cluster operations and catalog reads, and operator catalog writes, map to actions such as listClusters and createCluster. Requests the surface does not authorize, including health probes, still reach the mux. Role checks use a global resource scope until the request carries the caller's tenant. Signed-off-by: Vignesh Goutham Ganesh <viganesh@nvidia.com> * refactor(management-engine): pass an explicit authz kind Stop deriving the authorization kind by reflecting the Go type and stripping a Public prefix. public-gen writes it from the public name, and Mount rejects an empty kind. Signed-off-by: Vignesh Goutham Ganesh <viganesh@nvidia.com> * feat(management-engine): require an operator on the operator API Refuse a caller the bundle did not mark as the operator tenant before Cedar runs. The public API audiences are nvke.nvidia.com and operator.nvke.nvidia.com. The authorization resource ID is the matched route pattern, so a caller-controlled path cannot fail query validation. Signed-off-by: Vignesh Goutham Ganesh <viganesh@nvidia.com> --------- Signed-off-by: Vignesh Goutham Ganesh <viganesh@nvidia.com>