mirror of
https://github.com/docling-project/docling-serve.git
synced 2025-11-29 08:33:50 +00:00
docs: fix required permissions for oauth2-proxy requests (#141)
Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
@@ -9,41 +9,18 @@ metadata:
|
|||||||
annotations:
|
annotations:
|
||||||
serviceaccounts.openshift.io/oauth-redirectreference.primary: '{"kind":"OAuthRedirectReference","apiVersion":"v1","reference":{"kind":"Route","name":"docling-serve"}}'
|
serviceaccounts.openshift.io/oauth-redirectreference.primary: '{"kind":"OAuthRedirectReference","apiVersion":"v1","reference":{"kind":"Route","name":"docling-serve"}}'
|
||||||
---
|
---
|
||||||
kind: Role
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRoleBinding
|
||||||
metadata:
|
metadata:
|
||||||
name: docling-serve-oauth
|
name: docling-serve-oauth
|
||||||
labels:
|
|
||||||
app: docling-serve
|
|
||||||
component: docling-serve-api
|
|
||||||
rules:
|
|
||||||
- verbs:
|
|
||||||
- create
|
|
||||||
apiGroups:
|
|
||||||
- authorization.k8s.io
|
|
||||||
resources:
|
|
||||||
- subjectaccessreviews
|
|
||||||
- verbs:
|
|
||||||
- create
|
|
||||||
apiGroups:
|
|
||||||
- authentication.k8s.io
|
|
||||||
resources:
|
|
||||||
- tokenreviews
|
|
||||||
---
|
|
||||||
kind: RoleBinding
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
metadata:
|
|
||||||
name: docling-serve-oauth
|
|
||||||
labels:
|
|
||||||
app: docling-serve
|
|
||||||
component: docling-serve-api
|
|
||||||
subjects:
|
|
||||||
- kind: ServiceAccount
|
|
||||||
name: docling-serve
|
|
||||||
roleRef:
|
roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
kind: Role
|
kind: ClusterRole
|
||||||
name: docling-serve-oauth
|
name: system:auth-delegator
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: docling-serve
|
||||||
|
namespace: docling
|
||||||
---
|
---
|
||||||
apiVersion: route.openshift.io/v1
|
apiVersion: route.openshift.io/v1
|
||||||
kind: Route
|
kind: Route
|
||||||
@@ -153,7 +130,7 @@ spec:
|
|||||||
- name: proxy-tls
|
- name: proxy-tls
|
||||||
mountPath: /etc/tls/private
|
mountPath: /etc/tls/private
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
image: 'ghcr.io/docling-project/docling-serve'
|
image: 'ghcr.io/docling-project/docling-serve-cpu:fix-ui-with-https'
|
||||||
- name: oauth-proxy
|
- name: oauth-proxy
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
|
|||||||
Reference in New Issue
Block a user