Compare commits

...
2 Commits
Author SHA1 Message Date
claudeandClaude Opus 5.5 284ecc4581 Remove unused gitea MCP deployment
Demo / hello (push) Successful in 13s
It was never included from main.yml, used an invalid apiVersion for the
Deployment and exposed mcp.gitea.eom.dev publicly. The MCP servers now
live in ansible-role-mcp-servers, cluster-internal only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 14:12:26 -05:00
ClaudeandClaude Opus 5.5 6144791cb9 Gitea: declare the Dex login source in Helm values
Demo / hello (push) Successful in 12s
Records the source that was configured live with gitea admin auth:
OIDC discovery from Dex, groups scope, and login restricted to members
of Gitea Users via the groups claim. Needs gitea_dex_client_secret in
Vault (the same secret as Dex's gitea client).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 19:12:03 -05:00
2 changed files with 13 additions and 78 deletions
+13
View File
@@ -74,6 +74,19 @@
bindPassword: "{{ openldap_readonly_password }}" bindPassword: "{{ openldap_readonly_password }}"
usernameAttribute: uid usernameAttribute: uid
publicSSHKeyAttribute: sshPublicKey publicSSHKeyAttribute: sshPublicKey
# Sign-in through Dex; only members of Gitea Users (sent in the groups
# claim) may log in. The name "Dex" fixes the callback URL
# /user/oauth2/Dex/callback registered in Dex.
oauth:
- name: Dex
provider: openidConnect
key: gitea
secret: "{{ gitea_dex_client_secret }}"
autoDiscoverUrl: https://dex.eom.dev/.well-known/openid-configuration
scopes: "openid profile email groups"
requiredClaimName: groups
requiredClaimValue: Gitea Users
groupClaimName: groups
config: config:
APP_NAME: "Gitea" APP_NAME: "Gitea"
service: service:
-78
View File
@@ -1,78 +0,0 @@
- name: deploy mcp
k8s:
definition:
apiVersion: v1
kind: Deployment
metadata:
name: mcp
namespace: gitea
spec:
replicas: 1
selector:
matchLabels:
app: mcp
template:
metadata:
labels:
app: mcp
spec:
containers:
- name: mcp
image: gitea/gitea-mcp-server
env:
- name: GITEA_HOST
value: https://gitea.eom.dev
- name: GITEA_INSECURE
value: "false"
- name: GITEA_ACCESS_TOKEN
value: "{{ localai_gitea_access_token }}"
- name: MCP_MODE
value: http
ports:
- containerPort: 8080
- name: service for mcp
k8s:
definition:
apiVersion: v1
kind: Service
metadata:
name: mcp
namespace: gitea
spec:
selector:
app: mcp
ports:
- port: 80
name: http
targetPort: 8080
type: ClusterIP
- name: ingress
k8s:
state: present
definition:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
cert-manager.io/cluster-issuer: ca-issuer
name: mcp
namespace: gitea
spec:
ingressClassName: nginx
rules:
- host: mcp.gitea.eom.dev
http:
paths:
- pathType: Prefix
path: /
backend:
service:
name: mcp
port:
number: 80
tls:
- hosts:
- mcp.gitea.eom.dev
secretName: mcp