Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

subjectreviewaccess call as a namespaced resource #1

Open
wants to merge 1 commit into
base: v0.11.0-tilda
Choose a base branch
from

Conversation

sdeoras
Copy link

@sdeoras sdeoras commented Oct 24, 2021

The objective of this PR is to provide a way to perform namespaced scoped resource based subject access review request based on content of the http request. For instance, an http request may be as follows:

GET: /apis/health.tilda.bio/v1beta1/namespaces/mynamespace1/patients/mypatient33

While this http request is directed towards a service, we need to be able to perform authorization over it using k8s RBAC. Thus the objective boils down to filling out subjectaccessreview object using the information in the URL. For instance, we may derive these key value pairs: namespace: mynamespace1, apiGroup: health.tilda.bio, apiVersion: v1beta1, resource: patients and name: mypatient33 and so on.

We will also need to fill in user information, which is already being done, so no change is required there.

In summary, this PR assumes that the service will honor canonical k8s URL formats and performs subject access review request based on the information in the request.

Signed-off-by: Saurabh Deoras [email protected]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant