Skip to content

Commit

Permalink
fix: allow anonymous user to get AI analyze (#713)
Browse files Browse the repository at this point in the history
## What type of PR is this?
/kind bug

## What this PR does / why we need it:

add ai analyze apis to clusterrole anonymous

## Which issue(s) this PR fixes:

<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
_If PR is about `failing-tests or flakes`, please post the related
issues/tests in a comment and do not use `Fixes`_*
-->

Fixes #
  • Loading branch information
ruquanzhao authored Jan 10, 2025
1 parent 1e85372 commit c643743
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/default-anonymous-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ rules:
- /readyz
verbs:
- get
- nonResourceURLs:
- /rest-api/v1/insight/aggregator/*
- /rest-api/v1/insight/issue/*
- /rest-api/v1/insight/yaml/*
verbs:
- "*"
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand Down

0 comments on commit c643743

Please sign in to comment.