Compare commits

..
21 Commits
Author SHA1 Message Date
danijel.simeunovic 2a50028e51 merge
AI Code Review / ai-review (pull_request) Successful in 10s
2026-06-04 15:26:20 +02:00
e5da47efb3 refactor(apps): move forte-drop apps from base to upc-dev overlay
forte-drop, forte-drop-mcp and forte-drop-postgresql lived under apps/base/
but were only ever wired into the upc-dev overlay (never listed in
apps/base/kustomization.yaml). They carry hackathon-domain hardcoded values
and must not sync to upc-prod, so they belong in the overlay alongside
dbunk-demo — per danijel.simeunovic's review on PR #18.

- git mv the three dirs into apps/overlays/upc-dev/ (history preserved)
- rewrite overlay kustomization refs from ../../base/forte-drop* to local
- repoint forte-drop-postgresql Application path
  apps/base/... -> apps/overlays/upc-dev/forte-drop-postgresql/resources

Render-verified: kubectl kustomize apps/overlays/upc-dev differs only by the
postgres path line; apps/overlays/upc-prod render byte-identical (forte-drop
never reaches prod).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-04 15:22:34 +02:00
Stenanddanijel.simeunovic e49c0928d2 refactor(apps): registrar-managed oidc creds, drop mcp client, DRY secret
Per platform review (danijel):
- keycloak-client-forte-drop: add the secret{} block telling the
  registrar where to write the credential Secret + key names
  (forte-drop-oidc-credentials, client-id/client-secret). The
  forte-helm oidc sidecar consumes that registrar-created Secret —
  no manual auth-oidc SealedSecret step (removed that NOTE).
- Delete keycloak-client-forte-drop-mcp: auth.type: mcp auto-registers
  the MCP client; no manual config needed.
- Re-seal forte-drop-secrets with all shared env (BASE_DOMAIN, PG*,
  S3_*, PASSWORD_GATE_SECRET) so both deployments get identical values
  via envSecretName (values extraEnv now carries only APP_MODE).
2026-06-04 15:22:05 +02:00
Stenanddanijel.simeunovic d83cbdc7ca chore(apps): clarify auth-oidc follow-up (drop commented-out resource line)
ai-review: a commented-out resource line reads as GitOps debt. Replace
the '# - auth-oidc-sealed.yaml' line with an explicit NOTE explaining
it's a deliberate post-deploy step (needs the registrar-generated
client-secret), not a disabled resource.
2026-06-04 15:22:05 +02:00
Stenanddanijel.simeunovic 5913e0c4c0 refactor(apps): move forte-drop postgres from infra to apps
Per reviewer (danijel): forte-drop's DB deployment belongs in apps/,
not infra/. Straight relocation — same structure (Application +
resources/ subdir), source.path updated to apps/base/forte-drop-postgresql/resources,
wired into apps/overlays/upc-dev. Backup CronJob + RESTORE.md + sealed
pg creds move with it.

Consolidates the whole forte-drop deployment (postgres + web + mcp)
under apps/. The infra PR (#17) is now superseded by this.
2026-06-04 15:22:05 +02:00
Stenanddanijel.simeunovic 6f6f8c1c55 fix(apps): explicit forte-drop namespace (sync-wave -1, Prune=false)
Codex review: the apps overlay applies namespaced resources
(keycloak-client Secrets, forte-drop-secrets, PDB) to forte-drop, but
no base created the namespace — first sync on a fresh cluster raced
ahead of the Applications' CreateNamespace and failed with
'namespaces forte-drop not found' until a retry.

Add an explicit Namespace at sync-wave -1 so it exists before the
wave-0 namespaced resources (covers both web + mcp bases via the
shared parent). Prune=false keeps removing a base from cascade-
deleting the namespace + postgres data + the other deployment.
2026-06-04 15:22:04 +02:00
Stenanddanijel.simeunovic 6d25437e98 feat(apps): add forte-drop-secrets sealed secret
Sealed forte-drop-secrets with the real UpCloud Managed Object Storage
creds (existing drops bucket), PG creds matching the deployed
forte-drop-pg-creds, and PASSWORD_GATE_SECRET. Consumed by both web +
mcp deployments (envSecretName) and the pg-backup CronJob (S3 creds).
2026-06-04 15:22:04 +02:00
Stenanddanijel.simeunovic 46f2d2d661 feat(apps): PodDisruptionBudget for forte-drop web (minAvailable 1) 2026-06-04 15:22:04 +02:00
danijel.simeunovic c840dbb4b5 merge 2026-06-04 15:21:35 +02:00
Stenanddanijel.simeunovic a1a7c048c1 docs(apps): clarify mcp deployment needs no auth-oidc secret 2026-06-04 14:53:18 +02:00
Stenanddanijel.simeunovic d6e61c5663 feat(apps): forte-drop web + mcp ArgoCD applications
Two ArgoCD apps from the same forte-drop image:
- forte-drop (web): admin + public drops, sidecar in oidc mode,
  ingress drop-k8s.hackathon.forteapps.net.
- forte-drop-mcp (mcp): MCP-over-HTTP, sidecar in mcp mode,
  ingress mcp.drop-k8s.hackathon.forteapps.net.

Plus two labeled Keycloak client config Secrets — the registrar
creates the OIDC clients in the forte realm within ~2 min.

Sealed secrets (forte-drop-secrets + auth-oidc) added in a
follow-up commit by the maintainer:
  cd /Users/sten/dev/work/forte_k8/launchpad
  kubeseal --format=yaml \
    --controller-name=sealed-secrets-controller \
    --controller-namespace=kube-system \
    < private/forte-drop-secrets.yaml \
    > apps/base/forte-drop/forte-drop-secrets-sealed.yaml
  # auth-oidc: wait for registrar, copy client-secret into private/,
  # then seal as apps/base/forte-drop/auth-oidc-sealed.yaml.
  # (mcp deployment is sidecar type=mcp — no auth-oidc Secret needed;
  # only the web deployment requires it.)
2026-06-04 14:53:18 +02:00
StenandClaude Opus 4.8 335dd1366d refactor(apps): move forte-drop apps from base to upc-dev overlay
AI Code Review / ai-review (pull_request) Successful in 6s
forte-drop, forte-drop-mcp and forte-drop-postgresql lived under apps/base/
but were only ever wired into the upc-dev overlay (never listed in
apps/base/kustomization.yaml). They carry hackathon-domain hardcoded values
and must not sync to upc-prod, so they belong in the overlay alongside
dbunk-demo — per danijel.simeunovic's review on PR #18.

- git mv the three dirs into apps/overlays/upc-dev/ (history preserved)
- rewrite overlay kustomization refs from ../../base/forte-drop* to local
- repoint forte-drop-postgresql Application path
  apps/base/... -> apps/overlays/upc-dev/forte-drop-postgresql/resources

Render-verified: kubectl kustomize apps/overlays/upc-dev differs only by the
postgres path line; apps/overlays/upc-prod render byte-identical (forte-drop
never reaches prod).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-01 12:26:07 +02:00
Sten 338b4de3ba refactor(apps): registrar-managed oidc creds, drop mcp client, DRY secret
AI Code Review / ai-review (pull_request) Successful in 5s
Per platform review (danijel):
- keycloak-client-forte-drop: add the secret{} block telling the
  registrar where to write the credential Secret + key names
  (forte-drop-oidc-credentials, client-id/client-secret). The
  forte-helm oidc sidecar consumes that registrar-created Secret —
  no manual auth-oidc SealedSecret step (removed that NOTE).
- Delete keycloak-client-forte-drop-mcp: auth.type: mcp auto-registers
  the MCP client; no manual config needed.
- Re-seal forte-drop-secrets with all shared env (BASE_DOMAIN, PG*,
  S3_*, PASSWORD_GATE_SECRET) so both deployments get identical values
  via envSecretName (values extraEnv now carries only APP_MODE).
2026-05-29 14:05:29 +02:00
Sten 61a8a2b4ac chore(apps): clarify auth-oidc follow-up (drop commented-out resource line)
AI Code Review / ai-review (pull_request) Successful in 6s
ai-review: a commented-out resource line reads as GitOps debt. Replace
the '# - auth-oidc-sealed.yaml' line with an explicit NOTE explaining
it's a deliberate post-deploy step (needs the registrar-generated
client-secret), not a disabled resource.
2026-05-29 12:14:09 +02:00
Sten 96db244e03 refactor(apps): move forte-drop postgres from infra to apps
AI Code Review / ai-review (pull_request) Successful in 6s
Per reviewer (danijel): forte-drop's DB deployment belongs in apps/,
not infra/. Straight relocation — same structure (Application +
resources/ subdir), source.path updated to apps/base/forte-drop-postgresql/resources,
wired into apps/overlays/upc-dev. Backup CronJob + RESTORE.md + sealed
pg creds move with it.

Consolidates the whole forte-drop deployment (postgres + web + mcp)
under apps/. The infra PR (#17) is now superseded by this.
2026-05-29 10:38:51 +02:00
Sten d6a97a22df fix(apps): explicit forte-drop namespace (sync-wave -1, Prune=false)
AI Code Review / ai-review (pull_request) Successful in 1m40s
Codex review: the apps overlay applies namespaced resources
(keycloak-client Secrets, forte-drop-secrets, PDB) to forte-drop, but
no base created the namespace — first sync on a fresh cluster raced
ahead of the Applications' CreateNamespace and failed with
'namespaces forte-drop not found' until a retry.

Add an explicit Namespace at sync-wave -1 so it exists before the
wave-0 namespaced resources (covers both web + mcp bases via the
shared parent). Prune=false keeps removing a base from cascade-
deleting the namespace + postgres data + the other deployment.
2026-05-29 10:25:37 +02:00
Sten c4b7167f9e feat(apps): add forte-drop-secrets sealed secret
Sealed forte-drop-secrets with the real UpCloud Managed Object Storage
creds (existing drops bucket), PG creds matching the deployed
forte-drop-pg-creds, and PASSWORD_GATE_SECRET. Consumed by both web +
mcp deployments (envSecretName) and the pg-backup CronJob (S3 creds).
2026-05-29 10:03:57 +02:00
Sten 6bc5bd29b3 feat(apps): PodDisruptionBudget for forte-drop web (minAvailable 1) 2026-05-29 09:31:16 +02:00
StenandClaude Opus 4.7 5f6fb9b152 fix(apps): scope forte-drop to upc-dev only, not via base
forte-drop and forte-drop-mcp have hackathon-domain values hardcoded
(drop-k8s.hackathon.forteapps.net). Listing them in apps/base/
syncs them to both upc-dev and upc-prod overlays — prod sync would
create broken Applications pointing at non-existent prod ingress.

Move references to apps/overlays/upc-dev/ only.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-28 18:28:51 +02:00
Sten dbe67a4d56 docs(apps): clarify mcp deployment needs no auth-oidc secret 2026-05-28 16:51:04 +02:00
Sten a2fae9dd0c feat(apps): forte-drop web + mcp ArgoCD applications
Two ArgoCD apps from the same forte-drop image:
- forte-drop (web): admin + public drops, sidecar in oidc mode,
  ingress drop-k8s.hackathon.forteapps.net.
- forte-drop-mcp (mcp): MCP-over-HTTP, sidecar in mcp mode,
  ingress mcp.drop-k8s.hackathon.forteapps.net.

Plus two labeled Keycloak client config Secrets — the registrar
creates the OIDC clients in the forte realm within ~2 min.

Sealed secrets (forte-drop-secrets + auth-oidc) added in a
follow-up commit by the maintainer:
  cd /Users/sten/dev/work/forte_k8/launchpad
  kubeseal --format=yaml \
    --controller-name=sealed-secrets-controller \
    --controller-namespace=kube-system \
    < private/forte-drop-secrets.yaml \
    > apps/base/forte-drop/forte-drop-secrets-sealed.yaml
  # auth-oidc: wait for registrar, copy client-secret into private/,
  # then seal as apps/base/forte-drop/auth-oidc-sealed.yaml.
  # (mcp deployment is sidecar type=mcp — no auth-oidc Secret needed;
  # only the web deployment requires it.)
2026-05-28 16:47:38 +02:00
70 changed files with 202 additions and 755 deletions
-1
View File
@@ -1 +0,0 @@
.* @Forte/k8s
+47
View File
@@ -0,0 +1,47 @@
name: AI Code Review
on:
pull_request:
types: [ labeled, synchronize ]
jobs:
ai-review:
if: >-
(github.event.action == 'synchronized' && contains(toJSON(github.event.pull_request.labels), 'ai-review')) || contains(toJSON(gitea.event.changes.added_labels), 'ai-review')
runs-on: ubuntu-latest
env:
AI_REVIEW_CONFIG_FILE_YAML: ./shared-prompts/iac/.ai-review.yaml
# VCS configuration
VCS__PROVIDER: GITEA
VCS__PIPELINE__OWNER: ${{ github.repository_owner }}
VCS__PIPELINE__REPO: ${{ github.event.repository.name }}
VCS__PIPELINE__PULL_NUMBER: ${{ github.event.pull_request.number }}
VCS__HTTP_CLIENT__API_URL: https://git.forteapps.net/api/v1
VCS__HTTP_CLIENT__API_TOKEN: ${{ secrets.AI_REVIEW_TOKEN }}
# Review — disable fallback to see real Gitea API errors
REVIEW__INLINE_COMMENT_FALLBACK: "false"
# LLM configuration
LLM__PROVIDER: CLAUDE
LLM__META__MODEL: claude-sonnet-4-20250514
LLM__META__MAX_TOKENS: "4096"
LLM__HTTP_CLIENT__API_URL: https://api.anthropic.com
LLM__HTTP_CLIENT__API_TOKEN: ${{ secrets.ANTHROPIC_API_KEY }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
token: ${{ secrets.AI_REVIEW_TOKEN }}
- name: Run inline review
uses: docker://nikitafilonov/ai-review:v0.64.0
with:
args: ai-review run-inline
- name: Run summary review
uses: docker://nikitafilonov/ai-review:v0.64.0
with:
args: ai-review run-summary
-20
View File
@@ -1,20 +0,0 @@
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Install TruffleHog
run: |
curl -sSfL https://raw.githubusercontent.com/trufflesecurity/trufflehog/main/scripts/install.sh \
| sh -s -- -b /usr/local/bin
- name: Secret Scanning
run: trufflehog git file://. --fail --no-update --results=verified,unknown
+3
View File
@@ -0,0 +1,3 @@
[submodule "shared-prompts"]
path = shared-prompts
url = https://git.forteapps.net/Forte/ai-review-prompts.git
+1 -1
View File
@@ -4,7 +4,7 @@ terraform {
required_providers { required_providers {
azurerm = { azurerm = {
source = "hashicorp/azurerm" source = "hashicorp/azurerm"
version = "~> 5.0" version = "~> 4.0"
} }
} }
} }
@@ -4,7 +4,7 @@ terraform {
required_providers { required_providers {
azurerm = { azurerm = {
source = "hashicorp/azurerm" source = "hashicorp/azurerm"
version = "~> 5.0" version = "~> 4.0"
} }
azuread = { azuread = {
source = "hashicorp/azuread" source = "hashicorp/azuread"
+1 -1
View File
@@ -4,7 +4,7 @@ terraform {
required_providers { required_providers {
azurerm = { azurerm = {
source = "hashicorp/azurerm" source = "hashicorp/azurerm"
version = "~> 5.0" version = "~> 4.0"
} }
} }
} }
+1 -1
View File
@@ -4,7 +4,7 @@ terraform {
required_providers { required_providers {
azurerm = { azurerm = {
source = "hashicorp/azurerm" source = "hashicorp/azurerm"
version = "~> 5.0" version = "~> 4.0"
} }
random = { random = {
source = "hashicorp/random" source = "hashicorp/random"
+1 -1
View File
@@ -2,7 +2,7 @@ terraform {
required_providers { required_providers {
aws = { aws = {
source = "hashicorp/aws" source = "hashicorp/aws"
version = "~> 6.0" version = "~> 5.0"
} }
tls = { tls = {
source = "hashicorp/tls" source = "hashicorp/tls"
@@ -2,7 +2,7 @@ terraform {
required_providers { required_providers {
aws = { aws = {
source = "hashicorp/aws" source = "hashicorp/aws"
version = "~> 6.0" version = "~> 5.0"
} }
tls = { tls = {
source = "hashicorp/tls" source = "hashicorp/tls"
+1 -1
View File
@@ -2,7 +2,7 @@ terraform {
required_providers { required_providers {
aws = { aws = {
source = "hashicorp/aws" source = "hashicorp/aws"
version = "~> 6.0" version = "~> 5.0"
} }
tls = { tls = {
source = "hashicorp/tls" source = "hashicorp/tls"
+1 -1
View File
@@ -2,7 +2,7 @@ terraform {
required_providers { required_providers {
aws = { aws = {
source = "hashicorp/aws" source = "hashicorp/aws"
version = "~> 6.0" version = "~> 5.0"
} }
tls = { tls = {
source = "hashicorp/tls" source = "hashicorp/tls"
+1 -1
View File
@@ -2,7 +2,7 @@ terraform {
required_providers { required_providers {
google = { google = {
source = "hashicorp/google" source = "hashicorp/google"
version = "~> 8.0" version = "~> 6.0"
} }
} }
} }
@@ -2,7 +2,7 @@ terraform {
required_providers { required_providers {
google = { google = {
source = "hashicorp/google" source = "hashicorp/google"
version = "~> 8.0" version = "~> 6.0"
} }
} }
} }
+1 -1
View File
@@ -2,7 +2,7 @@ terraform {
required_providers { required_providers {
google = { google = {
source = "hashicorp/google" source = "hashicorp/google"
version = "~> 8.0" version = "~> 6.0"
} }
} }
} }
+1 -1
View File
@@ -2,7 +2,7 @@ terraform {
required_providers { required_providers {
google = { google = {
source = "hashicorp/google" source = "hashicorp/google"
version = "~> 8.0" version = "~> 6.0"
} }
} }
} }
+3
View File
@@ -15,6 +15,9 @@ metadata:
namespace: argocd namespace: argocd
annotations: annotations:
argocd.argoproj.io/sync-wave: "1" argocd.argoproj.io/sync-wave: "1"
notifications.argoproj.io/subscribe.on-sync-succeeded.slack: ""
notifications.argoproj.io/subscribe.on-sync-failed.slack: ""
notifications.argoproj.io/subscribe.on-degraded.slack: ""
labels: labels:
app.kubernetes.io/name: dot-ai-stack app.kubernetes.io/name: dot-ai-stack
app.kubernetes.io/part-of: apps app.kubernetes.io/part-of: apps
+2 -2
View File
@@ -1,8 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
# - dot-ai-stack - dot-ai-stack
- mcp10x - mcp10x
- musicman - musicman
- ts-mcp - ts-mcp
# - argo-mcp - argo-mcp
@@ -7,8 +7,7 @@ metadata:
namespace: mcp10x namespace: mcp10x
spec: spec:
encryptedData: encryptedData:
BENKEN_CLIENT_SECRET: AgBjps8BCn20C8upAaAdb1fG4Qh3eKBbTeFuuWhQb8WoIvHmk+v03mw8i39evkQwlUWvLBWV1mtGiKwpCNhmAAdicRFG6u0m30+21K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LA5G0lYsmiTuxYmBesUgCSVVMxflEl1GXvGpFniZKPyvxIdna9j7XEQjUZsGTiyN1w==
template: template:
metadata: metadata:
creationTimestamp: null creationTimestamp: null
@@ -1,63 +0,0 @@
# ai-git-bot (upc-dev)
[AI-Git-Bot](https://github.com/tmseidel/ai-git-bot) reviews Gitea pull requests and can
implement issues as a coding agent. It is deployed from the local Helm chart
`apps/charts/ai-git-bot` (app + bundled PostgreSQL 17) into the `ai-git-bot` namespace.
| | |
|---|---|
| URL | https://ai-git-bot.forteapps.net |
| Chart | `apps/charts/ai-git-bot` |
| Values | `apps/overlays/upc-dev/ai-git-bot/values.yaml` |
| Secret | `ai-git-bot-secrets` (SealedSecret) |
| Webhook endpoint | `https://ai-git-bot.forteapps.net/api/webhook/<per-bot-secret>` |
## 1. Seal the secret
The plaintext template (random DB password and encryption key already generated) lives in
the gitignored `private/upc-dev/ai-git-bot-secrets.yaml`.
```bash
kubeseal --format=yaml --namespace=ai-git-bot \
< private/upc-dev/ai-git-bot-secrets.yaml \
> apps/overlays/upc-dev/ai-git-bot/ai-git-bot-secrets-sealed.yaml
```
Then uncomment `ai-git-bot-secrets-sealed.yaml` in `kustomization.yaml` and commit.
| Key | Purpose |
|---|---|
| `DATABASE_USERNAME` / `DATABASE_PASSWORD` | Used by both PostgreSQL (initdb) and the app |
| `APP_ENCRYPTION_KEY` | Encrypts AI API keys / Gitea tokens / SSH keys in the DB. Back it up; changing it makes stored credentials unreadable |
| `GITEABOT_SECURITY_OAUTH_CLIENT_ID` / `_SECRET` | Optional, only with `loginMethod: oauth` |
The DB password is only applied on the first PostgreSQL init. To rotate it later, change it
inside PostgreSQL (`ALTER USER`) as well as in the secret.
## 2. First login (do this right after the first sync)
`/setup` is public until the first admin account exists — whoever opens it first becomes
admin. Open https://ai-git-bot.forteapps.net immediately after the pod is ready (or use
`kubectl -n ai-git-bot port-forward svc/ai-git-bot 8080:8080`) and create the admin.
Then in the web UI:
1. **AI Integrations** → add Anthropic (API key + model).
2. **Git Integrations** → Gitea, URL `https://git.forteapps.net`, token of the bot user
(scopes `write:issue`, `write:repository`, `write:user`).
3. **Bots** → create a bot, set **Username** to the Gitea bot user, set a
**Webhook signing secret**, copy the webhook URL.
## 3. Gitea webhook
Repo or org **Settings → Webhooks → Add Webhook → Gitea**: target = the bot's webhook URL,
`POST`, `application/json`, secret = the bot's signing secret. Custom events: Pull Request,
Pull Request Comment, Pull Request Review Requested, Pull Request Assigned, Issue Comment,
and Issue Assigned + Issues if you use the coding agent. See upstream
[GITEA_SETUP.md](https://github.com/tmseidel/ai-git-bot/blob/main/doc/GITEA_SETUP.md).
## Optional: Keycloak login
Set `loginMethod: oauth` and `oauth.issuerUri: https://id.forteapps.net/realms/forte` in
`values.yaml`, add the client id/secret keys to the secret, and register
`https://ai-git-bot.forteapps.net/login/oauth2/code/giteabot` as redirect URI.
@@ -1,16 +0,0 @@
---
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
name: ai-git-bot-secrets
namespace: ai-git-bot
spec:
encryptedData:
APP_ENCRYPTION_KEY: AgA29XsXvNJ+urtr6e491V8O2ZGESdQ3+FjjdHXtDKRhcOZLT3vX/c703uiUdU+JvWHfvn6QZKubCnx13erZTp4/nDOl3cW8BjPTRh3xYIzxs+KGFqG/jB++XCvDfXVGn/JPEvoV9V/5Y0Lpa2MDT8fjoyxjqxfp9GFlovwwozEIqqYBMseRi4711cN/aCPuZBB/PDTaOwNqlU1rRkPbGCQjTj7PVuQrELCD0suAj1h90igv6+rA0sgaNCZ+zIQkjsUkWOxZ53GllMa3agTQG4I2JwQ1UBdDSDpMQRIMpVGhRP+dKGV2KRb8jvMOZHWn13uiSHQgIY8iSc00uAoNGsqlcMEffewNTIFn6isAbEYJT3wg4sXOccIFZ3Hxjywg9R6TE99VlKC914pFk1emSlATARfUQ1uMQNrnWfqjQUt82PA3JnOooj1yGgqUyEubJaNpxTZfVf8PuhAEgg0EgG8j//Cn84HbrokDawbDI3Hnpd+UtD4DE9APlD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rsRllCNu/Fx6UdC97Dof61phn/iVjmN8O0CLElIkKAOIEVaOT4rwW2NancAJ7bUjRZpdVnE7Lv5/6+i5cvFoLdwjLiNAAP2CHhPq18//NaB8b9QzJeAo83Md6DEm2TokEYBoi8u+gBC+T0PEBijUVmvsmYlJM9wcq4LrKnNxrfBgo+VpQClxnWtHvGCN//g8H8wS5WjY/n2wFI9dY+UBmU2+EbZ267OGdctFqCkZD+6jw4AMiUONm+yXG59LRZG5eX4vY2VL4xuhuiu84NSLlcLp7gWlK2L2i6LlFFhcKw2dX7HzfMwOQdoJjtBlVtxjQJWzqm2vpCMpNs3gIspWvcEliKDkKSlS/QubT/HGgNppxFNmAv5EEz1ToXLKqY+5LEgAmqiKhVDw1nVqO4t7FvKq5K9Elf5TeyqrGKI2h8qlKHfsUMKie8ek2zQhm54RHqD20GBFhZ9BAZhllNAdKKkf1px2KPPJW4RCH7NPzf8zcw+r4hOKxZYBvIJOPpYHxFnxMquhL8k2wNabjAhOSnI+CDigAGELEMmmmBZV/uOcXxvzxN8GmP957rl+Dj9eIBTWWH+eeRiGATqRQ0AYFfWixQK1B5zBGWJJPFhkU16uuD49K2iJp8u0wCk82IulikxMk9LbLU7qZwPUqa15jJbFAXoK0w7LucuJS6KHloRrPw==
template:
metadata:
name: ai-git-bot-secrets
namespace: ai-git-bot
type: Opaque
@@ -1,50 +0,0 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: ai-git-bot
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "1"
notifications.argoproj.io/subscribe.on-sync-succeeded.slack: ""
notifications.argoproj.io/subscribe.on-sync-failed.slack: ""
notifications.argoproj.io/subscribe.on-degraded.slack: ""
labels:
app.kubernetes.io/name: ai-git-bot
app.kubernetes.io/part-of: apps
app.kubernetes.io/managed-by: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
sources:
- repoURL: ssh://git@git.forteapps.net:2222/Forte/forte-helm.git
path: ai-git-bot
targetRevision: HEAD
helm:
valueFiles:
- $values/ai-git-bot/values.yaml
- repoURL: ssh://git@git.forteapps.net:2222/Forte/helm-prod-values.git
targetRevision: HEAD
ref: values
destination:
server: https://kubernetes.default.svc
namespace: ai-git-bot
syncPolicy:
automated:
prune: true
selfHeal: true
allowEmpty: false
syncOptions:
- CreateNamespace=true
- Validate=true
- ServerSideApply=true
ignoreDifferences:
- group: apps
kind: StatefulSet
jsonPointers:
- /spec/volumeClaimTemplates
@@ -1,5 +0,0 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ai-git-bot.yaml
- ai-git-bot-secrets-sealed.yaml
@@ -77,12 +77,6 @@ spec:
mc rm --recursive --force --older-than 30d "obj/${S3_BUCKET}/_pgbackups/" || true mc rm --recursive --force --older-than 30d "obj/${S3_BUCKET}/_pgbackups/" || true
echo "backup retention pass complete" echo "backup retention pass complete"
env: env:
# mc writes its config under $MC_CONFIG_DIR; point it at the shared
# emptyDir (writable by uid 65532 via fsGroup). Without this it tries
# to mkdir /.mc on the read-only-to-nonroot root fs -> "mkdir /.mc:
# permission denied" and every run fails before uploading.
- name: MC_CONFIG_DIR
value: "/work/.mc"
- name: S3_ENDPOINT - name: S3_ENDPOINT
valueFrom: valueFrom:
secretKeyRef: { name: forte-drop-secrets, key: S3_ENDPOINT } secretKeyRef: { name: forte-drop-secrets, key: S3_ENDPOINT }
@@ -5,9 +5,9 @@ metadata:
namespace: argocd namespace: argocd
annotations: annotations:
argocd.argoproj.io/sync-wave: "1" argocd.argoproj.io/sync-wave: "1"
# notifications.argoproj.io/subscribe.on-sync-succeeded.slack: "" notifications.argoproj.io/subscribe.on-sync-succeeded.slack: ""
# notifications.argoproj.io/subscribe.on-sync-failed.slack: "" notifications.argoproj.io/subscribe.on-sync-failed.slack: ""
# notifications.argoproj.io/subscribe.on-degraded.slack: "" notifications.argoproj.io/subscribe.on-degraded.slack: ""
labels: labels:
app.kubernetes.io/name: forte-drop app.kubernetes.io/name: forte-drop
app.kubernetes.io/part-of: apps app.kubernetes.io/part-of: apps
@@ -1,3 +1,8 @@
# Labeled config Secret read by the Keycloak Client Registrar. Kyverno clones it
# to the keycloak namespace; a CronJob registers the OIDC client in the forte
# realm and writes the credentials back as forte-drop-oidc-credentials in THIS
# namespace (~2 min). The forte-helm auth sidecar (auth.type: oidc) consumes that
# registrar-created Secret automatically — no manual SealedSecret step needed.
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
@@ -19,8 +24,8 @@ stringData:
"directAccessGrantsEnabled": false, "directAccessGrantsEnabled": false,
"serviceAccountsEnabled": false, "serviceAccountsEnabled": false,
"publicClient": false, "publicClient": false,
"redirectUris": ["https://drop.forteapps.net/auth/callback"], "redirectUris": ["https://drop-k8s.hackathon.forteapps.net/auth/callback"],
"webOrigins": ["https://drop.forteapps.net"], "webOrigins": ["https://drop-k8s.hackathon.forteapps.net"],
"defaultClientScopes": ["openid","email","profile"], "defaultClientScopes": ["openid","email","profile"],
"secret": { "secret": {
"namespace": "forte-drop", "namespace": "forte-drop",
@@ -1,7 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- namespace.yaml
- forte-drop.yaml - forte-drop.yaml
# - keycloak-client-forte-drop.yaml - keycloak-client-forte-drop.yaml
- forte-drop-pdb.yaml - forte-drop-pdb.yaml
- forte-drop-secrets-sealed.yaml - forte-drop-secrets-sealed.yaml
@@ -0,0 +1,17 @@
# Owns the forte-drop namespace shared by the web + mcp deployments and the
# postgres StatefulSet (infra overlay). sync-wave -1 ensures the namespace exists
# before the namespaced Secrets/PDB in this base apply (avoids a first-sync
# "namespaces forte-drop not found" race when the business-apps parent syncs).
# Prune=false so removing this base never cascade-deletes the namespace (and with
# it postgres data + the mcp deployment) — matches the earlier decision to keep
# namespace ownership decoupled from any single workload.
apiVersion: v1
kind: Namespace
metadata:
name: forte-drop
annotations:
argocd.argoproj.io/sync-wave: "-1"
argocd.argoproj.io/sync-options: Prune=false
labels:
app.kubernetes.io/managed-by: argocd
app.kubernetes.io/part-of: apps
+3 -8
View File
@@ -5,14 +5,9 @@ resources:
- forte-drop-postgresql - forte-drop-postgresql
- forte-drop - forte-drop
- forte-drop-mcp - forte-drop-mcp
- ai-git-bot
- slack-relay
# No patches needed — base apps already default to "upc-dev" value paths # No patches needed — base apps already default to "upc-dev" value paths
# (upc-dev is the default/base cluster). # (upc-dev is the default/base cluster).
# forte-drop (postgres + web + mcp) and dbunk-demo are upc-dev-only apps — their # forte-drop (postgres + web + mcp) and dbunk-demo are upc-dev-only apps — they
# values hardcode upc-dev hosts (drop.forteapps.net etc.) and must not sync to # have hackathon-domain hardcoded values and must not sync to upc-prod, so they
# upc-prod, so they live here in the overlay rather than in apps/base/. # live here in the overlay rather than in apps/base/.
# ai-git-bot is upc-dev-only as well (chart in apps/charts/ai-git-bot).
# slack-relay serves ai-git-bot's outgoing webhooks and is scoped to this
# cluster for the same reason.
-103
View File
@@ -1,103 +0,0 @@
# slack-relay (upc-dev)
[slack-relay](https://git.forteapps.net/Forte/slack-relay) receives signed
outgoing webhooks from [ai-git-bot](../ai-git-bot/README.md) and posts them to
Slack as Block Kit messages. ai-git-bot has no templating of its own — it sends
a fixed `{schemaVersion, eventType, repository, data}` envelope — and Slack
wants `text`/`blocks`, so something has to translate between them.
Deployed from the shared `forteapp` chart in `forte-helm`; there is no chart in
this repo.
| | |
|---|---|
| Image | `git.forteapps.net/forte/slack-relay` |
| Chart | `forte-helm/forteapp` |
| Values | `helm-prod-values/slack-relay/values.yaml` |
| Secret | `slack-relay-secrets` (SealedSecret) |
| Endpoint | `http://slack-relay-app.slack-relay.svc.cluster.local:3000/hooks/ai-git-bot` |
The service is ClusterIP-only — no ingress, no certificate, nothing exposed
outside the cluster. The HMAC signature is therefore the only authentication:
any pod can reach the endpoint, but only a caller holding
`AIGITBOT_WEBHOOK_SECRET` can make it post.
## 1. Seal the secret
The plaintext template lives in the gitignored
`private/upc-dev/slack-relay-secrets.yaml`, with `AIGITBOT_WEBHOOK_SECRET`
already generated. Paste the Slack incoming webhook URL into it, then:
```bash
kubeseal --format=yaml --namespace=slack-relay \
< private/upc-dev/slack-relay-secrets.yaml \
> apps/overlays/upc-dev/slack-relay/slack-relay-secrets-sealed.yaml
```
Then add `slack-relay-secrets-sealed.yaml` to `kustomization.yaml` and commit.
`namespace.yaml` in this directory exists for ordering: the app-of-apps applies
the SealedSecret, so the namespace has to be created by the same sync rather
than by the child Application's chart (`namespace.create: false` in the values).
Without it the parent sync fails with `namespaces "slack-relay" not found`.
| Key | Purpose |
|---|---|
| `SLACK_WEBHOOK_URL` | Slack incoming webhook; fixed to one channel at install time |
| `AIGITBOT_WEBHOOK_SECRET` | Must match the endpoint secret configured in ai-git-bot |
To post via a bot token instead (multi-channel routing, threading), swap
`SLACK_WEBHOOK_URL` for `SLACK_BOT_TOKEN` + `SLACK_CHANNEL` in the secret and
add `SLACK_MODE=bot` to `app.extraEnv` in the values file.
## 2. Configure the ai-git-bot endpoint
**System settings → Outgoing webhooks → add endpoint**:
- URL: `http://slack-relay-app.slack-relay.svc.cluster.local:3000/hooks/ai-git-bot`
- Secret: the `AIGITBOT_WEBHOOK_SECRET` value
- Events: `prworkflow.completed`, `prworkflow.failed`,
`prworkflow.agentreview.finding.detected`, `issueassignment.completed`,
`issueassignment.failed` (skip the `*.started` events unless you want the noise)
- Scope: leave empty for all bots and repositories
## 3. Verify
Port-forward the service, then post a signed event. No Node needed — the
signature is an HMAC that `openssl` can compute:
```bash
kubectl -n slack-relay port-forward svc/slack-relay-app 3000:3000 &
SECRET=$(kubectl -n slack-relay get secret slack-relay-secrets \
-o jsonpath='{.data.AIGITBOT_WEBHOOK_SECRET}' | base64 -d)
BODY='{"schemaVersion":1,"id":"smoke-1","eventType":"prworkflow.completed","timestamp":"2026-10-20T12:00:00Z","integration":{"botName":"review-bot","platform":"gitea"},"repository":{"owner":"Forte","name":"launchpad","pullRequest":42},"data":{"workflowKey":"review","status":"SUCCESS","durationMs":41230}}'
curl -i -X POST http://localhost:3000/hooks/ai-git-bot \
-H 'Content-Type: application/json' \
-H "X-EventHook-Signature-256: sha256=$(printf '%s' "$BODY" | openssl dgst -sha256 -hmac "$SECRET" -r | cut -d' ' -f1)" \
--data "$BODY"
```
`200 {"status":"delivered"}` means the message reached Slack. Re-running with
the same `id` returns `{"status":"duplicate"}` — bump the id to send another.
The same request is in `scripts/send-test-event.js` in the slack-relay repo if
Node is available.
The real check afterwards is ai-git-bot's own delivery log, which shows the
response code per delivery.
## Reading the logs
The relay logs one JSON line per delivery. The status it returns is a signal to
ai-git-bot's retry loop: `502` means "Slack was down, retry me", while a
permanent Slack rejection is answered with `200` and logged at error level,
because retrying it could never succeed. So `"msg":"slack rejected the message,
dropping it"` is the line to alert on — it means messages are being lost.
## Image tag
The values file currently pins `latest` with `pullPolicy: Always`. Once the
release workflow has produced a `vX.Y.Z` tag, switch to it: Renovate will then
keep the values file current and rollbacks become possible.
@@ -1,6 +0,0 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
- slack-relay.yaml
- slack-relay-secrets-sealed.yaml
@@ -1,19 +0,0 @@
---
# Owned by the app-of-apps rather than the forteapp chart (namespace.create is
# false in values) because the SealedSecret next to this file is applied by the
# same sync and needs the namespace to exist first. ArgoCD applies Namespace
# before other kinds, so one sync is enough.
# Labels mirror what the chart would have set.
apiVersion: v1
kind: Namespace
metadata:
name: slack-relay
annotations:
argocd.argoproj.io/sync-wave: "-1"
labels:
app.kubernetes.io/name: slack-relay
app.kubernetes.io/part-of: apps
app.kubernetes.io/managed-by: argocd
pod-security.kubernetes.io/enforce: baseline
pod-security.kubernetes.io/audit: restricted
pod-security.kubernetes.io/warn: restricted
@@ -1,16 +0,0 @@
---
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
name: slack-relay-secrets
namespace: slack-relay
spec:
encryptedData:
AIGITBOT_WEBHOOK_SECRET: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X/+kHIahBXRX3S+iFYPasvs2TWqNhsIBv+yU1l2aIturSV/RzMYbCFeweG3NcaPU14D1NaQVktp2OmNWdJNXQQ4776SuYCarH4xHQlFO4xIsZr1UHuceUsDedLhiPo6xfJNMZVV7FWgoDRF2W/IlcWeBGFe84QhotiWapWC5pd4ipSFfjtqRI0ZV4=
template:
metadata:
name: slack-relay-secrets
namespace: slack-relay
type: Opaque
@@ -1,46 +0,0 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: slack-relay
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "1"
labels:
app.kubernetes.io/name: slack-relay
app.kubernetes.io/part-of: apps
app.kubernetes.io/managed-by: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
sources:
- repoURL: ssh://git@git.forteapps.net:2222/Forte/forte-helm.git
path: forteapp
targetRevision: HEAD
helm:
valueFiles:
- $values/slack-relay/values.yaml
- repoURL: ssh://git@git.forteapps.net:2222/Forte/helm-prod-values.git
targetRevision: HEAD
ref: values
destination:
server: https://kubernetes.default.svc
namespace: slack-relay
syncPolicy:
automated:
prune: true
selfHeal: true
allowEmpty: false
syncOptions:
- CreateNamespace=true
- Validate=true
- ServerSideApply=true
retry:
limit: 5
backoff:
duration: 5s
factor: 2
+5 -26
View File
@@ -29,12 +29,7 @@ spec:
topologyKey: kubernetes.io/hostname topologyKey: kubernetes.io/hostname
initContainers: initContainers:
- name: gitea-dump - name: gitea-dump
# MUST match the running server's Gitea version (chart gitea 12.7.0 -> image: gitea/gitea:1.25.4
# appVersion 1.27.0, see infra/base/gitea/gitea.yaml). `gitea dump` reads
# the schema its own binary knows about, so a newer binary dumps tables
# the server has not migrated yet and dies on the first missing one.
# Bump this only together with the chart, never on its own.
image: gitea/gitea:1.27.0
command: command:
- sh - sh
- -c - -c
@@ -54,41 +49,25 @@ spec:
mountPath: /tmp/gitea-dump mountPath: /tmp/gitea-dump
containers: containers:
- name: upload - name: upload
# Was minio/mc:latest until MinIO made the mc repository private - image: minio/mc:latest
# every tag now returns 401 on Docker Hub and quay.io, so the pod
# died in ImagePullBackOff. rclone is a public, pinned equivalent:
# `delete --min-age` replaces `mc rm --older-than`.
image: rclone/rclone:1.75.2
env: env:
- name: HOME - name: HOME
value: /tmp value: /tmp
- name: RCLONE_CONFIG_S3_TYPE
value: s3
- name: RCLONE_CONFIG_S3_PROVIDER
value: Other
# The backup credentials are scoped to this one bucket. rclone
# otherwise calls CreateBucket before its first write, which the
# policy denies with 403 AccessDenied.
- name: RCLONE_S3_NO_CHECK_BUCKET
value: "true"
command: command:
- sh - sh
- -c - -c
- | - |
set -e mc alias set s3 "${S3_ENDPOINT}" "${AWS_ACCESS_KEY_ID}" "${AWS_SECRET_ACCESS_KEY}"
export RCLONE_CONFIG_S3_ENDPOINT="${S3_ENDPOINT}"
export RCLONE_CONFIG_S3_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID}"
export RCLONE_CONFIG_S3_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY}"
TIMESTAMP=$(date +%Y%m%d-%H%M%S) TIMESTAMP=$(date +%Y%m%d-%H%M%S)
KEY="gitea-dump-${TIMESTAMP}.zip" KEY="gitea-dump-${TIMESTAMP}.zip"
echo "Uploading ${KEY}..." echo "Uploading ${KEY}..."
rclone copyto /backup/gitea-dump.zip "s3:${S3_BUCKET}/${KEY}" mc cp /backup/gitea-dump.zip "s3/${S3_BUCKET}/${KEY}" && \
echo "Upload complete." echo "Upload complete."
# Prune backups older than 7 days # Prune backups older than 7 days
echo "Pruning backups older than 7 days..." echo "Pruning backups older than 7 days..."
rclone delete --min-age 7d "s3:${S3_BUCKET}/" || true mc rm --older-than 7d --force "s3/${S3_BUCKET}/" 2>&1 || true
echo "Pruning complete." echo "Pruning complete."
envFrom: envFrom:
- secretRef: - secretRef:
+4 -18
View File
@@ -24,15 +24,8 @@ spec:
name: azuredns-config name: azuredns-config
key: client-secret key: client-secret
selector: selector:
# NOTE: cert-manager solver selectors are NOT TLS-style wildcards. selector.dnsNames dnsNames:
# matches by exact FQDN, so '*.forteapps.net' here would match only a cert literally - '*.forteapps.net'
# named '*.forteapps.net' — it would NOT cover 'drop.forteapps.net'. selector.dnsZones
# instead suffix-matches the zone apex AND every subdomain at any depth, so this single
# entry routes all forteapps.net ACME challenges (forteapps.net, *.forteapps.net,
# drop.forteapps.net, *.drop.forteapps.net, mcp.drop.forteapps.net, ...) through this
# Azure dns01 solver. Wildcard names require dns01; non-wildcard names that ever fail
# to match fall through to the http01 solver below.
dnsZones:
- 'forteapps.net' - 'forteapps.net'
# HTTP-01 fallback for non-wildcard certificates # HTTP-01 fallback for non-wildcard certificates
- http01: - http01:
@@ -65,15 +58,8 @@ spec:
name: azuredns-config name: azuredns-config
key: client-secret key: client-secret
selector: selector:
# NOTE: cert-manager solver selectors are NOT TLS-style wildcards. selector.dnsNames dnsNames:
# matches by exact FQDN, so '*.forteapps.net' here would match only a cert literally - '*.forteapps.net'
# named '*.forteapps.net' — it would NOT cover 'drop.forteapps.net'. selector.dnsZones
# instead suffix-matches the zone apex AND every subdomain at any depth, so this single
# entry routes all forteapps.net ACME challenges (forteapps.net, *.forteapps.net,
# drop.forteapps.net, *.drop.forteapps.net, mcp.drop.forteapps.net, ...) through this
# Azure dns01 solver. Wildcard names require dns01; non-wildcard names that ever fail
# to match fall through to the http01 solver below.
dnsZones:
- 'forteapps.net' - 'forteapps.net'
# HTTP-01 fallback for non-wildcard certificates # HTTP-01 fallback for non-wildcard certificates
- http01: - http01:
@@ -225,8 +225,6 @@ spec:
value: "{{ request.object.metadata.annotations.\"policies.forteapps.io/auth-upstream-url\" || join('', ['http://localhost:', to_string(appPort)]) }}" value: "{{ request.object.metadata.annotations.\"policies.forteapps.io/auth-upstream-url\" || join('', ['http://localhost:', to_string(appPort)]) }}"
- name: AUTH_OIDC_AUTHORITY - name: AUTH_OIDC_AUTHORITY
value: "{{ request.object.metadata.annotations.\"policies.forteapps.io/auth-oidc-authority\" }}" value: "{{ request.object.metadata.annotations.\"policies.forteapps.io/auth-oidc-authority\" }}"
- name: AUTH_OIDC_PAR_ENABLED
value: "{{ request.object.metadata.annotations.\"policies.forteapps.io/auth-oidc-par\" }}"
- name: AUTH_OIDC_CLIENT_ID - name: AUTH_OIDC_CLIENT_ID
value: "{{ request.object.metadata.annotations.\"policies.forteapps.io/auth-oidc-client-id\" }}" value: "{{ request.object.metadata.annotations.\"policies.forteapps.io/auth-oidc-client-id\" }}"
- name: AUTH_OIDC_CALLBACK_URL - name: AUTH_OIDC_CALLBACK_URL
@@ -235,10 +233,6 @@ spec:
value: "{{ regex_replace_all('https?://[^/]*', request.object.metadata.annotations.\"policies.forteapps.io/auth-oidc-callback-path\", '') }}" value: "{{ regex_replace_all('https?://[^/]*', request.object.metadata.annotations.\"policies.forteapps.io/auth-oidc-callback-path\", '') }}"
- name: AUTH_OIDC_SCOPES - name: AUTH_OIDC_SCOPES
value: "{{ request.object.metadata.annotations.\"policies.forteapps.io/auth-oidc-scopes\" || 'openid,profile,email' }}" value: "{{ request.object.metadata.annotations.\"policies.forteapps.io/auth-oidc-scopes\" || 'openid,profile,email' }}"
- name: AUTH_OIDC_COOKIE_DOMAIN
value: "{{ request.object.metadata.annotations.\"policies.forteapps.io/auth-oidc-cookie-domain\" || '' }}"
- name: AUTH_OIDC_ALLOWED_RETURN_HOSTS
value: "{{ request.object.metadata.annotations.\"policies.forteapps.io/auth-oidc-allowed-return-hosts\" || '' }}"
- name: AUTH_PUBLIC_PATHS - name: AUTH_PUBLIC_PATHS
value: "{{ request.object.metadata.annotations.\"policies.forteapps.io/auth-public-paths\" || '/healthz' }}" value: "{{ request.object.metadata.annotations.\"policies.forteapps.io/auth-public-paths\" || '/healthz' }}"
- name: AUTH_OIDC_COOKIE_SECRET - name: AUTH_OIDC_COOKIE_SECRET
+20 -20
View File
@@ -1,27 +1,27 @@
{ {
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.16.0/.schema/devbox.schema.json", "$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.16.0/.schema/devbox.schema.json",
"packages": [ "packages": [
"kubectl@1.36.3", "kubectl@1.33.2",
"kubernetes-helm@4.2.4", "kubernetes-helm@3.18.4",
"k9s@0.51.0", "k9s@0.50.7",
"kubeseal@0.38.4", "kubeseal@0.30.0",
"argocd@3.4.6", "argocd@2.14.11",
"kubecm@0.35.1", "kubecm@0.33.1",
"kubectl-tree@0.6.0", "kubectl-tree@0.4.3",
"kind@0.32.0", "kind@0.29.0",
"kustomize@5.8.1", "kustomize@5.7.0",
"kyverno@1.19.0", "kyverno@1.14.3",
"syft@1.51.0", "syft@1.29.0",
"grype@0.118.0", "grype@0.92.2",
"traefik@3.7.10", "traefik@3.6.7",
"claude-code@2.1.245", "claude-code@latest",
"go@latest", "go@latest",
"dotnet-sdk@8.0.424", "dotnet-sdk@latest",
"opentofu@1.12.5", "opentofu@1.11.6",
"_1password@2.30.0", "_1password@latest",
"github-cli@2.23.0", "github-cli@latest",
"upcloud-cli@3.36.0", "upcloud-cli@3.29.0",
"awscli2@2.35.11" "awscli2@2.34.24"
], ],
"shell": { "shell": {
"init_hook": [ "init_hook": [
-6
View File
@@ -1469,12 +1469,6 @@ ArgoCD will sync the Keycloak config, and the registrar CronJob will pick up the
| `k8s.secret.client-id-key` | No | `client-id` | Field name for the client ID in the K8s Secret | | `k8s.secret.client-id-key` | No | `client-id` | Field name for the client ID in the K8s Secret |
| `k8s.secret.client-secret-key` | No | `client-secret` | Field name for the client secret in the K8s Secret | | `k8s.secret.client-secret-key` | No | `client-secret` | Field name for the client secret in the K8s Secret |
#### Public CLI Client (Device-Code Login)
`forte-cli` is a shared **public** client (no secret) with the RFC 8628 device-authorization grant enabled (`oauth2.device.authorization.grant.enabled: "true"`, `standardFlowEnabled: false`, `directAccessGrantsEnabled: false`). Downloaded skills and CLI tools that log in through the Auth Sidecar (forte-drop first) use it with `<PREFIX>_CLIENT_ID=forte-cli`; nothing per-tool needs to be registered in Keycloak.
It must be defined in `forte-realm.json` (this legacy path): the self-service registrar hardcodes `publicClient: false` / `standardFlowEnabled: true` and drops `attributes`, so a `client-config` Secret cannot produce a public device-code client. It carries no `k8s.secret.sync` attribute (the registrar's secret sync skips it) and is listed in the cleanup CronJob's protected clients.
### Retrieving Secrets for External Deployments ### Retrieving Secrets for External Deployments
The registrar always writes a **central copy** of every synced secret to the `secrets` namespace, in addition to the target namespace. This allows operators to retrieve client credentials for applications deployed outside this cluster: The registrar always writes a **central copy** of every synced secret to the `secrets` namespace, in addition to the target namespace. This allows operators to retrieve client credentials for applications deployed outside this cluster:
+2 -2
View File
@@ -1326,7 +1326,7 @@ storage:
- Shared configuration and prompts live in the `shared-prompts` Git submodule (→ `Forte/ai-review-prompts`) - Shared configuration and prompts live in the `shared-prompts` Git submodule (→ `Forte/ai-review-prompts`)
- Review mode: `ONLY_ADDED_WITH_CONTEXT` — reviews only new/changed lines plus surrounding context (token-efficient) - Review mode: `ONLY_ADDED_WITH_CONTEXT` — reviews only new/changed lines plus surrounding context (token-efficient)
- Agent mode: disabled (one-shot review, no multi-turn reasoning) - Agent mode: disabled (one-shot review, no multi-turn reasoning)
- LLM: Claude Sonnet (`claude-3-opus`) - LLM: Claude Sonnet (`claude-sonnet-4-20250514`)
**Shared Prompts Structure** (submodule: `Forte/ai-review-prompts`): **Shared Prompts Structure** (submodule: `Forte/ai-review-prompts`):
``` ```
@@ -1344,7 +1344,7 @@ shared-prompts/
```yaml ```yaml
llm: llm:
provider: CLAUDE provider: CLAUDE
model: claude-3-opus model: claude-sonnet-4-20250514
vcs: vcs:
provider: GITEA provider: GITEA
review: review:
-36
View File
@@ -1,36 +0,0 @@
# Domain Docs
How the engineering skills should consume this repo's domain documentation when exploring the codebase.
## Before exploring, read these
- **`CONTEXT.md`** at the repo root, or
- **`CONTEXT-MAP.md`** at the repo root if it exists — it points at one `CONTEXT.md` per context. Read each one relevant to the topic.
- **`docs/adr/`** — read ADRs that touch the area you're about to work in. In multi-context repos, also check `src/<context>/docs/adr/` for context-scoped decisions.
If any of these files don't exist, **proceed silently**. Don't flag their absence; don't suggest creating them upfront. The `/domain-modeling` skill (reached via `/grill-with-docs` and `/improve-codebase-architecture`) creates them lazily when terms or decisions actually get resolved.
## File structure
Single-context repo (most repos):
```
/
├── CONTEXT.md
├── docs/adr/
│ ├── 0001-event-sourced-orders.md
│ └── 0002-postgres-for-write-model.md
└── src/
```
## Use the glossary's vocabulary
When your output names a domain concept (in an issue title, a refactor proposal, a hypothesis, a test name), use the term as defined in `CONTEXT.md`. Don't drift to synonyms the glossary explicitly avoids.
If the concept you need isn't in the glossary yet, that's a signal — either you're inventing language the project doesn't use (reconsider) or there's a real gap (note it for `/domain-modeling`).
## Flag ADR conflicts
If your output contradicts an existing ADR, surface it explicitly rather than silently overriding:
> _Contradicts ADR-0007 (event-sourced orders) — but worth reopening because…_
-39
View File
@@ -1,39 +0,0 @@
# Issue tracker: Gitea
Issues for this repo live in Gitea at `git.forteapps.net/Forte/launchpad`. Use the Gitea API or `tea` CLI.
## Conventions
- **Create an issue**: `tea issue create --title "..." --description "..."`
or via API: `curl -X POST "https://git.forteapps.net/api/v1/repos/Forte/launchpad/issues" -H "Authorization: token $GITEA_TOKEN" -H "Content-Type: application/json" -d '{"title":"...","body":"..."}'`
- **Read an issue**: `tea issue view <number>` or API `GET /api/v1/repos/Forte/launchpad/issues/<number>`
- **List issues**: `tea issue list` or API `GET /api/v1/repos/Forte/launchpad/issues?state=open`
- **Comment on an issue**: `tea issue comment <number> "..."` or API `POST /api/v1/repos/Forte/launchpad/issues/<number>/comments`
- **Apply labels**: API `POST /api/v1/repos/Forte/launchpad/issues/<number>/labels` with `{"labels": [<label_id>]}`
- **Close**: API `PATCH /api/v1/repos/Forte/launchpad/issues/<number>` with `{"state": "closed"}`
Infer the repo from `git remote -v`.
## Pull requests as a triage surface
**PRs as a request surface: no.**
## When a skill says "publish to the issue tracker"
Create a Gitea issue.
## When a skill says "fetch the relevant ticket"
Fetch the issue via API or `tea issue view <number>`.
## Wayfinding operations
Used by `/wayfinder`. The **map** is a single issue with **child** issues as tickets.
- **Map**: a single issue labelled `wayfinder:map`, holding the Destination / Notes / Decisions-so-far / Fog body.
- Create: `POST /api/v1/repos/Forte/launchpad/issues` with `{"title":"...","body":"...","labels":[<wayfinder:map label id>]}`
- **Child ticket**: an issue carrying `Part of #<map>` at the top of its body and a `wayfinder:<type>` label (`research`/`prototype`/`grilling`/`task`). Once claimed, the ticket is assigned to the driving dev.
- **Blocking**: Gitea does not have native issue dependencies. Fall back to a `Blocked by: #<n>, #<n>` line at the top of the child body. A ticket is unblocked when every issue it lists is closed.
- **Frontier query**: list the map's open children — `GET /api/v1/repos/Forte/launchpad/issues?state=open&labels=wayfinder:research,wayfinder:prototype,wayfinder:grilling,wayfinder:task` — then filter to those whose body starts with `Part of #<map>`. Drop any with an open issue in their `Blocked by` line, or with an assignee. First in map order wins.
- **Claim**: `PATCH /api/v1/repos/Forte/launchpad/issues/<n>` with `{"assignees":["<username>"]}` — the session's first write.
- **Resolve**: post the answer as a comment (`POST .../comments`), close the issue (`PATCH` with `{"state":"closed"}`), then append a context pointer (gist + link) to the map's Decisions-so-far by editing the map issue body.
-15
View File
@@ -1,15 +0,0 @@
# Triage Labels
The skills speak in terms of five canonical triage roles. This file maps those roles to the actual label strings used in this repo's issue tracker.
| Label in mattpocock/skills | Label in our tracker | Meaning |
| -------------------------- | -------------------- | ---------------------------------------- |
| `needs-triage` | `needs-triage` | Maintainer needs to evaluate this issue |
| `needs-info` | `needs-info` | Waiting on reporter for more information |
| `ready-for-agent` | `ready-for-agent` | Fully specified, ready for an AFK agent |
| `ready-for-human` | `ready-for-human` | Requires human implementation |
| `wontfix` | `wontfix` | Will not be actioned |
When a skill mentions a role (e.g. "apply the AFK-ready triage label"), use the corresponding label string from this table.
Edit the right-hand column to match whatever vocabulary you actually use.
@@ -17,40 +17,50 @@ spec:
source: source:
repoURL: https://charts.jetstack.io repoURL: https://charts.jetstack.io
chart: cert-manager chart: cert-manager
targetRevision: "v1.21.2" targetRevision: "v1.14.0"
helm: helm:
values: | values: |
# Install CustomResourceDefinitions
crds: installCRDs: true
enabled: true
keep: true # Global configuration
global: global:
leaderElection: leaderElection:
namespace: cert-manager namespace: cert-manager
logLevel: 2
# Webhook configuration
webhook: webhook:
replicaCount: 1
timeoutSeconds: 10
cainjector:
enabled: true enabled: true
replicaCount: 1 replicaCount: 1
timeoutSeconds: 10
resources: # controller only
# CA Injector
caInjector:
enabled: true
replicaCount: 1
# Security context
podSecurityPolicy:
enabled: false
# Resources
resources:
requests: requests:
cpu: 50m cpu: 50m
memory: 128Mi memory: 128Mi
limits: limits:
cpu: 100m cpu: 100m
memory: 256Mi memory: 256Mi
# Service account
serviceAccount: serviceAccount:
create: true create: true
name: cert-manager name: cert-manager
# Enable debug logging if needed (set to false for production)
logLevel: 2
destination: destination:
server: https://kubernetes.default.svc server: https://kubernetes.default.svc
namespace: cert-manager namespace: cert-manager
+1 -1
View File
@@ -17,7 +17,7 @@ spec:
sources: sources:
- repoURL: https://fluent.github.io/helm-charts - repoURL: https://fluent.github.io/helm-charts
chart: fluent-bit chart: fluent-bit
targetRevision: 0.58.3 targetRevision: 0.47.10
helm: helm:
releaseName: fluent-bit releaseName: fluent-bit
valueFiles: valueFiles:
+1 -1
View File
@@ -17,7 +17,7 @@ spec:
sources: sources:
- repoURL: https://dl.gitea.com/charts - repoURL: https://dl.gitea.com/charts
chart: actions chart: actions
targetRevision: "0.1.2" targetRevision: "0.0.5"
helm: helm:
releaseName: gitea-actions releaseName: gitea-actions
valueFiles: valueFiles:
+1 -1
View File
@@ -17,7 +17,7 @@ spec:
sources: sources:
- repoURL: https://dl.gitea.com/charts - repoURL: https://dl.gitea.com/charts
chart: gitea chart: gitea
targetRevision: "12.7.0" targetRevision: "12.5.0"
helm: helm:
releaseName: gitea releaseName: gitea
valueFiles: valueFiles:
+1 -1
View File
@@ -17,7 +17,7 @@ spec:
sources: sources:
- repoURL: https://grafana.github.io/helm-charts - repoURL: https://grafana.github.io/helm-charts
chart: grafana chart: grafana
targetRevision: "10.5.15" targetRevision: "8.0.0"
helm: helm:
releaseName: grafana releaseName: grafana
valueFiles: valueFiles:
+1 -1
View File
@@ -22,4 +22,4 @@ resources:
- karpor - karpor
- databunker - databunker
- homepage - homepage
# - vault - vault
+1 -1
View File
@@ -36,7 +36,7 @@ spec:
source: source:
chart: kyverno chart: kyverno
repoURL: https://kyverno.github.io/kyverno/ repoURL: https://kyverno.github.io/kyverno/
targetRevision: 3.9.1 targetRevision: v3.7.0 # Update to latest stable version
helm: helm:
releaseName: kyverno releaseName: kyverno
valuesObject: valuesObject:
+1 -1
View File
@@ -17,7 +17,7 @@ spec:
sources: sources:
- repoURL: https://grafana.github.io/helm-charts - repoURL: https://grafana.github.io/helm-charts
chart: loki chart: loki
targetRevision: "7.3.0" targetRevision: "6.0.0"
helm: helm:
releaseName: loki releaseName: loki
valueFiles: valueFiles:
+1 -1
View File
@@ -17,7 +17,7 @@ spec:
sources: sources:
- repoURL: https://opencost.github.io/opencost-helm-chart - repoURL: https://opencost.github.io/opencost-helm-chart
chart: opencost chart: opencost
targetRevision: "2.5.32" targetRevision: "1.42.0"
helm: helm:
releaseName: opencost releaseName: opencost
valueFiles: valueFiles:
+1 -1
View File
@@ -17,7 +17,7 @@ spec:
sources: sources:
- repoURL: https://prometheus-community.github.io/helm-charts - repoURL: https://prometheus-community.github.io/helm-charts
chart: prometheus chart: prometheus
targetRevision: "30.0.0" targetRevision: "28.9.0"
helm: helm:
releaseName: prometheus releaseName: prometheus
valueFiles: valueFiles:
+1 -1
View File
@@ -17,7 +17,7 @@ spec:
sources: sources:
- repoURL: ghcr.io/renovatebot/charts - repoURL: ghcr.io/renovatebot/charts
chart: renovate chart: renovate
targetRevision: "46.318.0" targetRevision: "46.109.0"
helm: helm:
releaseName: renovate releaseName: renovate
valueFiles: valueFiles:
+2 -2
View File
@@ -16,8 +16,8 @@ spec:
source: source:
chart: sealed-secrets chart: sealed-secrets
repoURL: https://bitnami.github.io/sealed-secrets repoURL: https://bitnami-labs.github.io/sealed-secrets
targetRevision: 2.20.0 targetRevision: 2.16.2 # Update to latest stable version
helm: helm:
releaseName: sealed-secrets releaseName: sealed-secrets
parameters: parameters:
@@ -24,7 +24,7 @@ spec:
sources: sources:
- repoURL: https://traefik.github.io/charts - repoURL: https://traefik.github.io/charts
chart: traefik chart: traefik
targetRevision: "42.0.0" targetRevision: "28.0.0"
helm: helm:
releaseName: traefik releaseName: traefik
valueFiles: valueFiles:
+1 -1
View File
@@ -17,7 +17,7 @@ spec:
sources: sources:
- repoURL: https://helm.releases.hashicorp.com - repoURL: https://helm.releases.hashicorp.com
chart: vault chart: vault
targetRevision: "0.34.1" targetRevision: "0.32.0"
helm: helm:
releaseName: vault releaseName: vault
valueFiles: valueFiles:
+1 -1
View File
@@ -21,7 +21,7 @@ resources:
- ../../base/sealedsecrets - ../../base/sealedsecrets
- ../../base/tempo - ../../base/tempo
- ../../base/traefik-application - ../../base/traefik-application
# - ../../base/vault - ../../base/vault
- vaultwarden-postgresql - vaultwarden-postgresql
- vaultwarden - vaultwarden
- wildcard-tls-certificate.yaml - wildcard-tls-certificate.yaml
@@ -17,7 +17,7 @@ spec:
sources: sources:
- repoURL: https://guerzon.github.io/vaultwarden - repoURL: https://guerzon.github.io/vaultwarden
chart: vaultwarden chart: vaultwarden
targetRevision: "0.46.3" targetRevision: "0.36.4"
helm: helm:
releaseName: vaultwarden releaseName: vaultwarden
valueFiles: valueFiles:
@@ -41,9 +41,3 @@ spec:
- CreateNamespace=true - CreateNamespace=true
- Validate=true - Validate=true
- ServerSideApply=true - ServerSideApply=true
ignoreDifferences:
- group: apps
kind: StatefulSet
jsonPointers:
- /spec/volumeClaimTemplates
+1 -1
View File
@@ -31,7 +31,7 @@ gitea:
ENABLE_PASSWORD_SIGNIN_FORM: false ENABLE_PASSWORD_SIGNIN_FORM: false
AUTO_WATCH_ON_CHANGES: false AUTO_WATCH_ON_CHANGES: false
AUTO_WATCH_NEW_REPOS: false AUTO_WATCH_NEW_REPOS: false
ENABLE_NOTIFY_MAIL: true ENABLE_NOTIFY_MAIL: false
ENABLE_TIMETRACKING: false ENABLE_TIMETRACKING: false
openid: openid:
+9 -43
View File
@@ -186,35 +186,6 @@ keycloakConfigCli:
} }
} }
] ]
},
{
"clientId": "forte-cli",
"name": "Forte CLI",
"description": "Shared public client for RFC 8628 device-code login from downloaded skills/CLI tools (forte-drop first) against services behind Auth Sidecar. No client secret.",
"enabled": true,
"protocol": "openid-connect",
"standardFlowEnabled": false,
"directAccessGrantsEnabled": false,
"publicClient": true,
"redirectUris": [],
"webOrigins": [],
"attributes": {
"oauth2.device.authorization.grant.enabled": "true"
},
"protocolMappers": [
{
"name": "audience-forte-drop-mcp",
"protocol": "openid-connect",
"protocolMapper": "oidc-audience-mapper",
"consentRequired": false,
"config": {
"included.custom.audience": "https://mcp.drop.forteapps.net/mcp",
"access.token.claim": "true",
"id.token.claim": "false",
"introspection.token.claim": "true"
}
}
]
} }
], ],
"browserFlow": "browser-auto-idp", "browserFlow": "browser-auto-idp",
@@ -319,7 +290,6 @@ extraDeploy:
namespace: keycloak namespace: keycloak
spec: spec:
schedule: "*/2 * * * *" schedule: "*/2 * * * *"
timeZone: "Europe/Oslo"
concurrencyPolicy: Forbid concurrencyPolicy: Forbid
successfulJobsHistoryLimit: 1 successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 3 failedJobsHistoryLimit: 3
@@ -332,7 +302,7 @@ extraDeploy:
restartPolicy: Never restartPolicy: Never
containers: containers:
- name: registrar - name: registrar
image: alpine:3.24 image: alpine:3.20
command: [ "/bin/sh", "-c" ] command: [ "/bin/sh", "-c" ]
args: args:
- | - |
@@ -647,9 +617,7 @@ extraDeploy:
name: keycloak-client-cleanup name: keycloak-client-cleanup
namespace: keycloak namespace: keycloak
spec: spec:
schedule: "0 3 1 * *" schedule: "0 3 * * 0"
timeZone: "Europe/Oslo"
startingDeadlineSeconds: 3600
concurrencyPolicy: Forbid concurrencyPolicy: Forbid
successfulJobsHistoryLimit: 1 successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 3 failedJobsHistoryLimit: 3
@@ -662,7 +630,7 @@ extraDeploy:
restartPolicy: Never restartPolicy: Never
containers: containers:
- name: cleanup - name: cleanup
image: alpine:3.24 image: alpine:3.20
command: [ "/bin/sh", "-c" ] command: [ "/bin/sh", "-c" ]
args: args:
- | - |
@@ -674,7 +642,7 @@ extraDeploy:
ADMIN_USER="admin" ADMIN_USER="admin"
ADMIN_PASS=$(cat /secrets/admin-password) ADMIN_PASS=$(cat /secrets/admin-password)
DRY_RUN="${DRY_RUN:-true}" DRY_RUN="${DRY_RUN:-true}"
MIN_AGE_DAYS="${MIN_AGE_DAYS:-14}" MIN_AGE_DAYS="${MIN_AGE_DAYS:-7}"
if [ -z "$CLIENT_ID_PATTERN" ]; then if [ -z "$CLIENT_ID_PATTERN" ]; then
CLIENT_ID_PATTERN='^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$' CLIENT_ID_PATTERN='^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$'
fi fi
@@ -700,24 +668,22 @@ extraDeploy:
MIN_AGE_SEC=$((MIN_AGE_DAYS * 86400)) MIN_AGE_SEC=$((MIN_AGE_DAYS * 86400))
# Hardcoded protected clients (never delete these) # Hardcoded protected clients (never delete these)
PROTECTED_JSON='["gitea","grafana","argocd","forte-cli","vaultwarden","account","account-console","admin-cli","broker","realm-management","security-admin-console"]' PROTECTED_JSON='["gitea","grafana","argocd","vaultwarden","account","account-console","admin-cli","broker","realm-management","security-admin-console"]'
echo "Fetching clients from realm '${REALM}'..." echo "Fetching clients from realm '${REALM}'..."
CLIENTS=$(curl -sf -H "Authorization: Bearer ${TOKEN}" \ CLIENTS=$(curl -sf -H "Authorization: Bearer ${TOKEN}" \
"${KEYCLOAK_URL}/admin/realms/${REALM}/clients") "${KEYCLOAK_URL}/admin/realms/${REALM}/clients")
CANDIDATES=$(echo "$CLIENTS" | jq -c --argjson protected "$PROTECTED_JSON" \ CANDIDATES=$(echo "$CLIENTS" | jq -c --argjson protected "$PROTECTED_JSON" --argjson now "$NOW_SEC" --argjson min_age "$MIN_AGE_SEC" --arg pattern "$CLIENT_ID_PATTERN" '
--argjson now "$NOW_SEC" --argjson min_age "$MIN_AGE_SEC" --arg pattern "$CLIENT_ID_PATTERN" '
[ [
.[] .[]
| select(.clientId as $cid | $protected | index($cid) | not) | select(.clientId as $cid | $protected | index($cid) | not)
| select(.attributes["k8s.secret.sync"] != "true") | select(.attributes["k8s.secret.sync"] != "true")
| select(.clientId | test($pattern; "i")) | select(.clientId | test($pattern; "i"))
| select(.attributes["client.secret.creation.time"] != null) | select((.createdTimestamp // 0) / 1000 < ($now - $min_age))
| select((.attributes["client.secret.creation.time"] | tonumber) < ($now - $min_age))
] ]
') ')
COUNT=$(echo "$CANDIDATES" | jq 'length') COUNT=$(echo "$CANDIDATES" | jq 'length')
echo "Found ${COUNT} candidate client(s) matching pattern and age threshold" echo "Found ${COUNT} candidate client(s) matching pattern and age threshold"
@@ -762,7 +728,7 @@ extraDeploy:
- name: DRY_RUN - name: DRY_RUN
value: "false" value: "false"
- name: MIN_AGE_DAYS - name: MIN_AGE_DAYS
value: "60" value: "7"
volumeMounts: volumeMounts:
- name: keycloak-credentials - name: keycloak-credentials
mountPath: /secrets mountPath: /secrets
-9
View File
@@ -17,14 +17,7 @@ loki:
period: 24h period: 24h
object_store: filesystem # we're storing on filesystem so there's no real persistence here. object_store: filesystem # we're storing on filesystem so there's no real persistence here.
schema: v13 schema: v13
compactor:
working_directory: /var/loki/compactor
retention_enabled: true
delete_request_store: filesystem
compaction_interval: 10m
retention_delete_delay: 2h
limits_config: limits_config:
retention_period: 168h # 7 days
reject_old_samples: true reject_old_samples: true
reject_old_samples_max_age: 168h reject_old_samples_max_age: 168h
ingestion_rate_mb: 15 ingestion_rate_mb: 15
@@ -35,8 +28,6 @@ chunksCache:
resultsCache: resultsCache:
enabled: false enabled: false
singleBinary: singleBinary:
persistence:
size: 20Gi
replicas: 1 replicas: 1
resources: resources:
requests: requests:
+6 -9
View File
@@ -4,17 +4,14 @@ opencost:
extraEnv: extraEnv:
EMIT_KSM_V1_METRICS: "false" EMIT_KSM_V1_METRICS: "false"
EMIT_KSM_V1_METRICS_ONLY: "true" EMIT_KSM_V1_METRICS_ONLY: "true"
prometheus:
internal:
enabled: true
serviceName: prometheus-server
namespaceName: monitoring
port: 80
# Cloud-specific pricing is in per-cluster value overrides # Cloud-specific pricing is in per-cluster value overrides
# (e.g. infra/values/upc-dev/opencost-values.yaml) # (e.g. infra/values/upc-dev/opencost-values.yaml)
# NOTE: `prometheus` is a sibling of `exporter` under `opencost` in the
# chart's values schema - nesting it inside `exporter` silently falls back
# to the chart default namespace (prometheus-system).
prometheus:
internal:
enabled: true
serviceName: prometheus-server
namespaceName: monitoring
port: 80
ui: ui:
enabled: false enabled: false
service: service:
+2 -22
View File
@@ -4,12 +4,6 @@ server:
service: service:
servicePort: 80 servicePort: 80
strategy:
type: Recreate
retention: 7d
retentionSize: 6GB
resources: resources:
requests: requests:
cpu: 150m cpu: 150m
@@ -24,7 +18,7 @@ server:
extraScrapeConfigs: | extraScrapeConfigs: |
- job_name: kyverno - job_name: kyverno
scrape_interval: 60s scrape_interval: 15s
metrics_path: /metrics metrics_path: /metrics
kubernetes_sd_configs: kubernetes_sd_configs:
- role: endpoints - role: endpoints
@@ -41,16 +35,9 @@ extraScrapeConfigs: |
target_label: pod target_label: pod
- source_labels: [__meta_kubernetes_namespace] - source_labels: [__meta_kubernetes_namespace]
target_label: namespace target_label: namespace
metric_relabel_configs:
- source_labels: [__name__]
regex: 'kyverno_(http_requests_duration_seconds|controller_.+_duration_seconds|admission_review_duration_seconds)_bucket'
action: drop
- source_labels: [__name__]
regex: 'go_.*|process_.*'
action: drop
- job_name: traefik - job_name: traefik
scrape_interval: 60s scrape_interval: 15s
metrics_path: /metrics metrics_path: /metrics
kubernetes_sd_configs: kubernetes_sd_configs:
- role: endpoints - role: endpoints
@@ -67,13 +54,6 @@ extraScrapeConfigs: |
target_label: pod target_label: pod
- source_labels: [__meta_kubernetes_namespace] - source_labels: [__meta_kubernetes_namespace]
target_label: namespace target_label: namespace
metric_relabel_configs:
- source_labels: [__name__]
regex: 'traefik_(router|service|entrypoint)_request_duration_seconds_bucket'
action: drop
- source_labels: [__name__]
regex: 'go_.*|process_.*'
action: drop
alertmanager: alertmanager:
enabled: false enabled: false
-5
View File
@@ -21,11 +21,6 @@ renovate:
"assignees": ["danijel.simeunovic"], "assignees": ["danijel.simeunovic"],
"reviewers": ["danijel.simeunovic"] "reviewers": ["danijel.simeunovic"]
}, },
{
"matchRepositories": ["**/launchpad"],
"assignees": ["danijel.simeunovic"],
"reviewers": ["danijel.simeunovic"]
},
{ {
"matchRepositories": ["**/forte-helm"], "matchRepositories": ["**/forte-helm"],
"assignees": ["danijel.simeunovic"], "assignees": ["danijel.simeunovic"],
@@ -1 +1,3 @@
image:
tag: "1.36.0-alpine"
domain: "https://vaultwarden.forteapps.net" domain: "https://vaultwarden.forteapps.net"
@@ -59,6 +59,10 @@ config:
href: https://benken.hackathon.forteapps.net href: https://benken.hackathon.forteapps.net
description: Teknisk kompetanse fra offentlige anbud description: Teknisk kompetanse fra offentlige anbud
icon: forte icon: forte
- Forte Drop:
href: https://drop.hackathon.forteapps.net
description: Self-hosted HTML-drops + MCP for Claude
icon: forte
- Forte Feedback: - Forte Feedback:
href: https://feedback.forteapps.net href: https://feedback.forteapps.net
description: Fortes internal feedback app description: Fortes internal feedback app
+4 -4
View File
@@ -37,11 +37,11 @@ service:
ports: ports:
web: web:
proxyProtocol: proxyProtocol:
trustedIPs: ["172.16.1.0/24"] trustedIPs: "172.16.1.0/24"
forwardedHeaders: forwardedHeaders:
trustedIPs: ["172.16.1.0/24"] trustedIPs: "172.16.1.0/24"
websecure: websecure:
proxyProtocol: proxyProtocol:
trustedIPs: ["172.16.1.0/24"] trustedIPs: "172.16.1.0/24"
forwardedHeaders: forwardedHeaders:
trustedIPs: ["172.16.1.0/24"] trustedIPs: "172.16.1.0/24"
-74
View File
@@ -1,74 +0,0 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"schedule": ["before 4am on monday"],
"extends": [
"config:recommended",
"group:allNonMajor",
":dependencyDashboard",
":semanticCommits"
],
"timezone": "Europe/Oslo",
"labels": ["renovate"],
"reviewers": ["danijel.simeunovic"],
"prConcurrentLimit": 10,
"prHourlyLimit": 4,
"minimumReleaseAge": "3 days",
"ignorePaths": [
"**/*-sealed.yaml",
"cluster-resources/policies/**",
"private/**",
".devbox/**"
],
"argocd": {
"description": "ArgoCD Applications live under infra/, apps/ and the root app-of-apps files. The manager skips any file without an argoproj.io apiVersion, so matching broadly is safe.",
"managerFilePatterns": [
"/^_app-of-apps-.+\\.yaml$/",
"/^apps/.+\\.yaml$/",
"/^infra/.+\\.yaml$/"
]
},
"helm-values": {
"description": "Values files are named <app>-values.yaml, not the default values.yaml.",
"managerFilePatterns": ["/^infra/values/.+\\.ya?ml$/"]
},
"kubernetes": {
"description": "Plain manifests with inline image references. Kyverno policies are excluded via ignorePaths - their images are Go templates, not tags.",
"managerFilePatterns": [
"/^cluster-resources/.+\\.yaml$/",
"/^apps/.+/resources/.+\\.yaml$/"
]
},
"packageRules": [
{
"description": "Every Application carries a second source pointing at this repo at HEAD for $values. HEAD is not a version.",
"matchDatasources": ["git-tags"],
"matchDepNames": ["/forteapps\\.net/"],
"enabled": false
},
{
"description": "The gitea-dump image is not an independent dependency - it must stay on the exact version the Gitea chart deploys, or `gitea dump` fails against an older schema. Bump it by hand together with infra/base/gitea.",
"matchFileNames": ["cluster-resources/gitea-backup-cronjob.yaml"],
"matchPackageNames": ["gitea/gitea"],
"enabled": false
},
{
"description": "Platform chart majors usually carry values-schema or CRD breaks - flag them for a careful read.",
"matchFileNames": ["infra/**"],
"matchUpdateTypes": ["major"],
"labels": ["renovate", "breaking-change"],
"minimumReleaseAge": "7 days"
},
{
"description": "Patch-level platform bumps are routine - let them through faster.",
"matchFileNames": ["infra/**"],
"matchUpdateTypes": ["patch"],
"minimumReleaseAge": "1 day"
}
]
}