docs: fix required permissions for oauth2-proxy requests (#141)

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
Michele Dolfi
2025-04-19 18:46:28 +02:00
committed by GitHub
parent 57f9073bc0
commit 087417e5c2

View File

@@ -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: