fix: Add get permission, required by create actions.#55
Closed
JoseSzycho wants to merge 1 commit intomainfrom
Closed
fix: Add get permission, required by create actions.#55JoseSzycho wants to merge 1 commit intomainfrom
get permission, required by create actions.#55JoseSzycho wants to merge 1 commit intomainfrom
Conversation
Contributor
|
@JoseSzycho this is kinda surprising, do you have more information? I would expect only create be needed since this is done as a creation request. |
Contributor
Author
|
This is the command I'm using. ✗ kubectl --kubeconfig staffuser apply -f search_v1alpha1_searchquery.yaml --validate=fa
lse
Error from server (Forbidden): error when retrieving current configuration of:
Resource: "search.miloapis.com/v1alpha1, Resource=resourcesearchqueries", GroupVersionKind: "search.miloapis.com/v1alpha1, Kind=ResourceSearchQuery"
Name: "configmap-search-sample", Namespace: ""
from server for: "search_v1alpha1_searchquery.yaml": resourcesearchqueries.search.miloapis.com "configmap-search-sample" is forbidden: User "jszychowski+staf@datum.net" cannot get resource "resourcesearchqueries" in API group "search.miloapis.com" at the cluster scopeSeems that the APIServer is performing a As I've read, seems that kubectl performs that |
Contributor
|
@JoseSzycho the apply command will do a Something we should track in the backlog is exporting a CLI like we have in the activity repo so the user can do |
Contributor
Author
|
Nice, it works. ✗ kubectl --kubeconfig staffuser create -f search_v1alpha1_searchquery.yaml -o yaml --validate=false
apiVersion: search.miloapis.com/v1alpha1
kind: ResourceSearchQuery
metadata:
name: configmap-search-sample
spec:
limit: 20
query: jose
targetResources:
- group: iam.miloapis.com
kind: User
version: v1alpha1
status:
results:
- relevanceScore: 0.8924
resource:
apiVersion: iam.miloapis.com/v1alpha1
kind: User
metadata:
name: "362318285452092787"
spec:
email: joseszychowski@gmail.com
uid: 14ae07bd-7652-4e25-a306-37c0cd4c2cabThanks! |
auto-merge was automatically disabled
March 4, 2026 21:06
Pull request was closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR solves an authorization issues, in which users cannot perform ResourceSearchQueries, as the k8s apiserver requires the user to also have get permission for the resource.