mirror of
https://github.com/wahyd4/home-docker.git
synced 2026-08-08 20:15:03 +10:00
Updates 7 Docker images across the infrastructure manifests (PG14 kept as-is):
media/jackett.yaml
linuxserver/jackett: 0.24.1124 → 0.24.1985 (patch)
media/media.yaml
linuxserver/qbittorrent: version-5.1.2-r4 → version-5.2.1_v2.0.12 (major 5.1→5.2)
home-apps/n8n.yaml
n8nio/n8n: 2.15.0 → 2.23.1 (minor)
db/qdrant.yaml
qdrant/qdrant: v1.16-unprivileged → v1.18.1-unprivileged (minor)
kube-vip/daemonset.yaml
kube-vip/kube-vip: v0.4.4 → v0.9.2 (conservative, stayed within v0.x)
on-demand/once-etcd-job.yaml
etcd: 3.5.1-0 → 3.5.30-0 (patch)
adhoc-config/oauth2-proxy.yaml
oauth2-proxy/oauth2-proxy: v7.6.0 → v7.15.2 (minor)
Note: postgres:14 kept unchanged per PR review feedback.
kube-vip kept at v0.9.2 (latest v0.x) instead of v1.2.0 to avoid
v0→v1 breaking changes.
182 lines
4.3 KiB
YAML
182 lines
4.3 KiB
YAML
---
|
|
# OAuth2 Proxy configured to use Pocket ID as OIDC provider
|
|
# This acts as the authentication middleware between NGINX Ingress and Pocket ID
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: pocket-id-oauth-proxy-secrets
|
|
namespace: nginx-ingress
|
|
type: Opaque
|
|
stringData:
|
|
# Generate with: openssl rand -base64 32 | head -c 32 | base64
|
|
cookie-secret: "TDhNb1p1ZGpYem4xL2ZiV0E2V1pacXYwTS8rbzZWazY="
|
|
# Get these from Pocket ID OIDC client configuration
|
|
client-id: "4119945b-29db-40fa-bafe-7698ae8b1342"
|
|
client-secret: "pKiKmd5v0w9h0fMNvwjS7poycSBz8c3t"
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: pocket-id-oauth-proxy-config
|
|
namespace: nginx-ingress
|
|
data:
|
|
oauth2_proxy.cfg: |
|
|
# OIDC Provider Configuration (Pocket ID)
|
|
provider = "oidc"
|
|
oidc_issuer_url = "https://pass.junv.cc"
|
|
|
|
# Client Configuration
|
|
client_id = "YOUR-POCKET-ID-CLIENT-ID"
|
|
client_secret = "YOUR-POCKET-ID-CLIENT-SECRET"
|
|
|
|
# Cookie Configuration
|
|
cookie_name = "_oauth2_proxy"
|
|
cookie_secret = "CHANGE-ME-GENERATE-NEW-SECRET"
|
|
cookie_secure = true
|
|
cookie_httponly = true
|
|
cookie_domains = [".junv.cc"]
|
|
cookie_expire = "168h"
|
|
cookie_refresh = "3h"
|
|
|
|
# Email Configuration
|
|
email_domains = ["*"]
|
|
|
|
# Whitelist domains for redirects
|
|
whitelist_domains = [".junv.cc"]
|
|
|
|
# Upstream Configuration
|
|
upstreams = ["static://200"]
|
|
|
|
# Server Configuration
|
|
http_address = "0.0.0.0:4180"
|
|
reverse_proxy = true
|
|
|
|
# Header Configuration
|
|
set_xauthrequest = true
|
|
pass_access_token = true
|
|
pass_authorization_header = true
|
|
|
|
# Redirect Configuration
|
|
redirect_url = "https://pass.junv.cc/oauth2/callback"
|
|
|
|
# Logging
|
|
request_logging = true
|
|
auth_logging = true
|
|
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: pocket-id-oauth-proxy
|
|
namespace: nginx-ingress
|
|
labels:
|
|
app: pocket-id-oauth-proxy
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: pocket-id-oauth-proxy
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: pocket-id-oauth-proxy
|
|
spec:
|
|
containers:
|
|
- name: pocket-id-oauth-proxy
|
|
# Updated: v7.6.0 -> v7.15.2 (minor bump within v7.x, low risk)
|
|
image: quay.io/oauth2-proxy/oauth2-proxy:v7.15.2
|
|
args:
|
|
- --config=/etc/oauth2-proxy/oauth2_proxy.cfg
|
|
env:
|
|
- name: OAUTH2_PROXY_CLIENT_ID
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: pocket-id-oauth-proxy-secrets
|
|
key: client-id
|
|
- name: OAUTH2_PROXY_CLIENT_SECRET
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: pocket-id-oauth-proxy-secrets
|
|
key: client-secret
|
|
- name: OAUTH2_PROXY_COOKIE_SECRET
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: pocket-id-oauth-proxy-secrets
|
|
key: cookie-secret
|
|
ports:
|
|
- containerPort: 4180
|
|
protocol: TCP
|
|
name: http
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /etc/oauth2-proxy
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /ping
|
|
port: 4180
|
|
initialDelaySeconds: 10
|
|
timeoutSeconds: 1
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /ping
|
|
port: 4180
|
|
initialDelaySeconds: 10
|
|
timeoutSeconds: 1
|
|
resources:
|
|
limits:
|
|
cpu: "500m"
|
|
memory: "256Mi"
|
|
requests:
|
|
cpu: "100m"
|
|
memory: "128Mi"
|
|
volumes:
|
|
- name: config
|
|
configMap:
|
|
name: pocket-id-oauth-proxy-config
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: pocket-id-oauth-proxy
|
|
namespace: nginx-ingress
|
|
labels:
|
|
app: pocket-id-oauth-proxy
|
|
spec:
|
|
type: ClusterIP
|
|
ports:
|
|
- port: 4180
|
|
targetPort: 4180
|
|
protocol: TCP
|
|
name: http
|
|
selector:
|
|
app: pocket-id-oauth-proxy
|
|
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: pocket-id-oauth-proxy-ingress
|
|
namespace: nginx-ingress
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
|
nginx.ingress.kubernetes.io/proxy-buffer-size: "8k"
|
|
spec:
|
|
ingressClassName: nginx
|
|
tls:
|
|
- hosts:
|
|
- pass.junv.cc
|
|
secretName: pocket-id-oauth-proxy-tls
|
|
rules:
|
|
- host: pass.junv.cc
|
|
http:
|
|
paths:
|
|
- path: /oauth2
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: pocket-id-oauth-proxy
|
|
port:
|
|
number: 4180
|