Compare commits
35
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3a963b4705 | ||
|
|
17e2c85b8d | ||
|
|
2c6009bf3f | ||
|
|
ed108ada64 | ||
|
|
0083e8c329 | ||
|
|
c7f7dbf137 | ||
|
|
4cca2a5dc0 | ||
|
|
2d64dd68bc | ||
|
|
0639a19a50 | ||
|
|
60dfba9f7b | ||
|
|
215d5fddba | ||
|
|
c6909d99a7 | ||
|
|
72640a93dc | ||
|
|
875a8babaa | ||
|
|
90b8e6f2a4 | ||
|
|
a68d804021 | ||
|
|
6ef9d4eed7 | ||
|
|
5b613feedb | ||
|
|
f0d4a53e5f | ||
|
|
8d09d106ff | ||
|
|
58fbcc1fbe | ||
|
|
c9bac375f3 | ||
|
|
46c9cca4f3 | ||
|
|
52e384694c | ||
|
|
34444fdcd2 | ||
|
|
cd3c38463a | ||
|
|
d503795201 | ||
|
|
39c1015b6b | ||
|
|
9e455f9311 | ||
|
|
4ab7ccd781 | ||
|
|
c5e0aa6f3c | ||
|
|
7915346868 | ||
|
|
840c354ea3 | ||
|
|
0f0082d54d | ||
|
|
4a4b8e3540 |
@@ -1,51 +0,0 @@
|
|||||||
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-5-5
|
|
||||||
LLM__META__REASONING__EFFORT: high
|
|
||||||
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@v7
|
|
||||||
with:
|
|
||||||
submodules: true
|
|
||||||
fetch-depth: 0
|
|
||||||
token: ${{ secrets.AI_REVIEW_TOKEN }}
|
|
||||||
|
|
||||||
- name: Update submodules to remote
|
|
||||||
run: git submodule update --remote --merge
|
|
||||||
|
|
||||||
- name: Run inline review
|
|
||||||
uses: docker://nikitafilonov/ai-review:v1.1.0
|
|
||||||
with:
|
|
||||||
args: ai-review run-inline
|
|
||||||
|
|
||||||
- name: Run summary review
|
|
||||||
uses: docker://nikitafilonov/ai-review:v1.1.0
|
|
||||||
with:
|
|
||||||
args: ai-review run-summary
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
[submodule "shared-prompts"]
|
|
||||||
path = shared-prompts
|
|
||||||
url = https://git.forteapps.net/Forte/ai-review-prompts.git
|
|
||||||
branch = main
|
|
||||||
|
|
||||||
@@ -4,7 +4,7 @@ terraform {
|
|||||||
required_providers {
|
required_providers {
|
||||||
azurerm = {
|
azurerm = {
|
||||||
source = "hashicorp/azurerm"
|
source = "hashicorp/azurerm"
|
||||||
version = "~> 4.0"
|
version = "~> 5.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ terraform {
|
|||||||
required_providers {
|
required_providers {
|
||||||
azurerm = {
|
azurerm = {
|
||||||
source = "hashicorp/azurerm"
|
source = "hashicorp/azurerm"
|
||||||
version = "~> 4.0"
|
version = "~> 5.0"
|
||||||
}
|
}
|
||||||
azuread = {
|
azuread = {
|
||||||
source = "hashicorp/azuread"
|
source = "hashicorp/azuread"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ terraform {
|
|||||||
required_providers {
|
required_providers {
|
||||||
azurerm = {
|
azurerm = {
|
||||||
source = "hashicorp/azurerm"
|
source = "hashicorp/azurerm"
|
||||||
version = "~> 4.0"
|
version = "~> 5.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ terraform {
|
|||||||
required_providers {
|
required_providers {
|
||||||
azurerm = {
|
azurerm = {
|
||||||
source = "hashicorp/azurerm"
|
source = "hashicorp/azurerm"
|
||||||
version = "~> 4.0"
|
version = "~> 5.0"
|
||||||
}
|
}
|
||||||
random = {
|
random = {
|
||||||
source = "hashicorp/random"
|
source = "hashicorp/random"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ terraform {
|
|||||||
required_providers {
|
required_providers {
|
||||||
aws = {
|
aws = {
|
||||||
source = "hashicorp/aws"
|
source = "hashicorp/aws"
|
||||||
version = "~> 5.0"
|
version = "~> 6.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 = "~> 5.0"
|
version = "~> 6.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 = "~> 5.0"
|
version = "~> 6.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 = "~> 5.0"
|
version = "~> 6.0"
|
||||||
}
|
}
|
||||||
tls = {
|
tls = {
|
||||||
source = "hashicorp/tls"
|
source = "hashicorp/tls"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ terraform {
|
|||||||
required_providers {
|
required_providers {
|
||||||
google = {
|
google = {
|
||||||
source = "hashicorp/google"
|
source = "hashicorp/google"
|
||||||
version = "~> 6.0"
|
version = "~> 8.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ terraform {
|
|||||||
required_providers {
|
required_providers {
|
||||||
google = {
|
google = {
|
||||||
source = "hashicorp/google"
|
source = "hashicorp/google"
|
||||||
version = "~> 6.0"
|
version = "~> 8.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ terraform {
|
|||||||
required_providers {
|
required_providers {
|
||||||
google = {
|
google = {
|
||||||
source = "hashicorp/google"
|
source = "hashicorp/google"
|
||||||
version = "~> 6.0"
|
version = "~> 8.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ terraform {
|
|||||||
required_providers {
|
required_providers {
|
||||||
google = {
|
google = {
|
||||||
source = "hashicorp/google"
|
source = "hashicorp/google"
|
||||||
version = "~> 6.0"
|
version = "~> 8.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,63 @@
|
|||||||
|
# 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.
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
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+UtD4DE9APlDaPrV3q06vu7HKRF2uV8m0Jvznk6wJDGLhjq1oNR6d1a0CxkRl5IQIJhgwNTULnjcmwsMs9xmm5BBrUDZcyWZGJ9U+fxFTM9vbznVI4ZKDuQq5q9xD9p6A84WQEK6jEmQ+tn2UorpJF7/B6TeKZ35AOpYQO82zzQ94IyeAYxegwF+0pPqkGYGXOKJJJ6Bn9iQMQp6v/JuVALc5+uA0s1ltpIOeiVHdnHwTaZcse31cKRDBKZIDkEUN04pLcK6buDcGC7Q==
|
||||||
|
DATABASE_PASSWORD: AgCxxe6q1p0SgeF1vEUhU3LMXUUvIWXdcVAub88lVvJreGwiRLz7NfXPemThPoHo0Lrzn+dYZYWtrXYxyCxNlDGbUO82xoSDFveS0oHNXe9A2qALbRkQ9VSQefETYC7NYk2lOfP2Aw0PwToWTWxBS0csNm/E1wpDUtTGppHyAM7/7VsjQsYYNpcxW0YkEgKP3tML1i/3yfmlSiHEviFzrU0W7N6GNqAcMYl2JeFp7oAS7LMfbCo+8Cnwd38RmfIKhzLfx2rs4G6wRwehzLaiKu85OGkKtl4dzkUSi16iijx5mVL6sSM4TPw698wgQuUler8IhP1oPS9lMuew8pHZ4b96YMwzQpqFKS7ei0tPvatRx29JLNtR2UFWg+SdOlZA9Hhrc7EPl5wBMtKwZvtgwqR1fnfo1RQxJ1gsWNA8afuNbzrS5jw9igPfIbfuramvrSHKycPyNuAbdDx7P96nEJ0GXTcwIYS0zbBFGkdPVwlMbGQYOxHmJcMnjmnFaQTdeqTkBZ4KA7Hc+RFEigTrqtYJPny2Rywur9c6sNeyGbAr7bI5KwB5Ycx5Sa5IKHvRuCbqVpgHuIFMqC7WpsttT/DVtE13tFez+1wkC0Ekhs5IxmQGYcU9quCrAefq1+cOtuPTTydN2p93WMKmqCilLs/iUPsWR77PlgfgQCoKEZfhDgfAmXlXa7PEiyc378FjP9g3hhZ5PRnodG2mh6CeRKb07liUUfnDjPrAdr53P5uAAg==
|
||||||
|
DATABASE_USERNAME: AgDDEm4NUF45BcVy2O6sAccGlIW69zMhrsRllCNu/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
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
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
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- ai-git-bot.yaml
|
||||||
|
- ai-git-bot-secrets-sealed.yaml
|
||||||
@@ -5,9 +5,14 @@ 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 — their
|
||||||
# values hardcode upc-dev hosts (drop.forteapps.net etc.) and must not sync to
|
# values hardcode upc-dev hosts (drop.forteapps.net etc.) and must not sync to
|
||||||
# upc-prod, so they live here in the overlay rather than in apps/base/.
|
# upc-prod, so they 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.
|
||||||
|
|||||||
@@ -0,0 +1,103 @@
|
|||||||
|
# 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.
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- namespace.yaml
|
||||||
|
- slack-relay.yaml
|
||||||
|
- slack-relay-secrets-sealed.yaml
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
---
|
||||||
|
# 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
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
apiVersion: bitnami.com/v1alpha1
|
||||||
|
kind: SealedSecret
|
||||||
|
metadata:
|
||||||
|
name: slack-relay-secrets
|
||||||
|
namespace: slack-relay
|
||||||
|
spec:
|
||||||
|
encryptedData:
|
||||||
|
AIGITBOT_WEBHOOK_SECRET: AgCbhbOmv08A/s6lBMlu4c7apKMyLv0anKrsh4d0tRvJknyGn2vD3jZ0sE8TnDhKzzCOUDgyUOkg8vCUxdPsuKC4sEtKp2Abeq098xM+CnYD41fUjlkks9dntNaKOmnsusApOZLvcSmKWSKWc9I5XEEc8csfo9p3X54VYiUAYentVJQWiUMpF33HR13WfrcrfeI/O1BC9d31fj9xxd2uSo8ZySIYc9Gqd7b1SmmLfw30VUlM+wzqyjpg5vPrKvtGFE8kH1lsgfspmAiLCWdma8N6MJjm8qno6+NxTNdvl4fViXUK6SSzYH0EAUwxPqtJdZFR/hu3YZMyzgWOSHtifLn0U/Vlsx1rSjqXzV8YBMZma3cfDGXMgu/yPhcebb8y3LWUJrN6PVycOXZ+kz9SbX/MWmHzIKp6W5OwasYaFy9vgxILyxS+Bf3iGr8MhnRW81rGb2h+990yeuWE4a6rsx4Wh5T5AUXkmGKEG5XKvRNutXFSLGU//QLuaje4tX9Z28IkKGyd7koU/ROPlHB52BkMpDtPipfVq7VvJAgv0G206WYCRujr4kYhHF1/UAeJrubP3JNUkDOqGuvNtPDKT2ZVHdehMdITlWtNFcy40pz47YBsi1BbY8NzHTC6LKqd4Q3Pf7DMh8T1m1O7eL755nY2D2H+XJoKu9e0F19gB6g02KaBZuq1GpOonAKCHSWOB5hFey58FTY1YEid1VIZ9cIIk8znSfsAzkxniNeu0gRxLbUH/461e2/DuMoix4/mgEcb2hFt2yWNEPEZg/c5r/3G
|
||||||
|
SLACK_BOT_TOKEN: AgDE1FgRLw7tQAJSaLav5JtrJJJRNGMv2KzTqf0HwUpnnROQGaNO31J4Zo95HV6Eons7bU6OJW+0eGhniLhflktrNttHFB6jv0mnA1mFgKGt17MYDFA1EbmKvOJqwwrOmDx695Y1IYyq4C22n7AhjdcErBfiK1m2Oajyyzej7mtpziRl9T0cJmWIMYEGpCFw7OoDBB2e/Ayh7WEbtsQuozwItAe+nbZuVC3XeYsdOaFC/TKj3MwYWvzvnOIv521e6le9+kXAraE4ckCpE9Tbc8dl4EvH+XiVy3VrBa1w6d90nrBGD9YMzrPvBtirBSccPBqx/h37AoCQSpYzQ36RHKzHDsBUzNvdFbZGSq4wCm6YIgHrBNegFnZzcLfxcdpxz7rVDZoqmUfXjtJinUZ7+rnVH0d2pJC/MmQtzZp88Ll+R7mZFNwVirkExLiw5kk2cS8zBFdwXphzjtgw5gzZfQ9pUIvzSaneUVhaMHiCi0G7n57yyU0huzRHrzkiwN2XoTp7lvJOHieT9bRRz44TIctvNnQX/6pSM6o9D1lOyNvOO74Ox+NbFMFpUY2la6o2EpyRbWtM9c6d0P9DwZJyXP9fqHN8Kyx486nd4Iv7ODHqP1qyK3H6XGGOaUXCxgoIJwl7Wigwt9UpaO2gqI2yE13Hd4gYacg4NjVqcNov+JJyj7pcq4wzOqRHFX7KRM4P8U61f1FGo2kSkbarlbRSvU0gHNHxUR0MOyhRgeSfAOR2nUvznxfLIq/xZ/lCT19DqWkHYKPIk5OVikg=
|
||||||
|
SLACK_CHANNEL: AgACFyi6/PuVbgLe1eEx+dQAluAilVgCg7fjl/nv8oQPGgEYJSUG+HbcgqwXCWeLs36pM98Y93PsPkrwCOzPnb8FWdWV0u9LZunDHP0fbmbDTsIVbycci/gv3Z3IRKNMbEhS0WVzYJSeC5v3OkIVyTzy9H6POS1lwQQKUxqw7Yg3e6ZFVrHzNI54L07h7IoNxL+qdT7ihU1bvZvqfpynRb5QrxUMxH5TrSwvhlYGLGvkVLfhJbiYJtoUwP9M+sIGAX54LoRpMBDTF6azK0Oo6d7R/nwJOJk3vJOQ1JMJ5+DX2Z2l5ApvqdpEVvepDtXJQ9aHVNR3Ww6fDWPVkFqC7YS18Ef3slLC0VUkRjcozKSEUccmO3r6ut5hKEKZEC8YIONpQBIgfv1bpPC+TzZ9daa/KYP8AztKMUkJcvsYLpGbqC4lPr8KTMNMdTwElafwsyyt3ZH2xWLzOTf3EPD/0+GskTleT5OkP9cL63bJU4K/PESznorHkegg+XOaPyCZbhWBN93KRIrUwSG1A8/PTZG6MvtJ4PzwznbsQyX/+kHIahBXRX3S+iFYPasvs2TWqNhsIBv+yU1l2aIturSV/RzMYbCFeweG3NcaPU14D1NaQVktp2OmNWdJNXQQ4776SuYCarH4xHQlFO4xIsZr1UHuceUsDedLhiPo6xfJNMZVV7FWgoDRF2W/IlcWeBGFe84QhotiWapWC5pd4ipSFfjtqRI0ZV4=
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
name: slack-relay-secrets
|
||||||
|
namespace: slack-relay
|
||||||
|
type: Opaque
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
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
|
||||||
@@ -29,7 +29,12 @@ spec:
|
|||||||
topologyKey: kubernetes.io/hostname
|
topologyKey: kubernetes.io/hostname
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: gitea-dump
|
- name: gitea-dump
|
||||||
image: gitea/gitea:1.27.3
|
# MUST match the running server's Gitea version (chart gitea 12.7.0 ->
|
||||||
|
# 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
|
||||||
@@ -49,25 +54,41 @@ spec:
|
|||||||
mountPath: /tmp/gitea-dump
|
mountPath: /tmp/gitea-dump
|
||||||
containers:
|
containers:
|
||||||
- name: upload
|
- name: upload
|
||||||
image: minio/mc:latest
|
# Was minio/mc:latest until MinIO made the mc repository private -
|
||||||
|
# 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
|
||||||
- |
|
- |
|
||||||
mc alias set s3 "${S3_ENDPOINT}" "${AWS_ACCESS_KEY_ID}" "${AWS_SECRET_ACCESS_KEY}"
|
set -e
|
||||||
|
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}..."
|
||||||
mc cp /backup/gitea-dump.zip "s3/${S3_BUCKET}/${KEY}" && \
|
rclone copyto /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..."
|
||||||
mc rm --older-than 7d --force "s3/${S3_BUCKET}/" 2>&1 || true
|
rclone delete --min-age 7d "s3:${S3_BUCKET}/" || true
|
||||||
echo "Pruning complete."
|
echo "Pruning complete."
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
|
|||||||
@@ -225,6 +225,8 @@ 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
|
||||||
|
|||||||
@@ -21,31 +21,25 @@ spec:
|
|||||||
|
|
||||||
helm:
|
helm:
|
||||||
values: |
|
values: |
|
||||||
# Install CustomResourceDefinitions
|
|
||||||
installCRDs: true
|
|
||||||
|
|
||||||
# Global configuration
|
crds:
|
||||||
|
enabled: true
|
||||||
|
keep: true
|
||||||
|
|
||||||
global:
|
global:
|
||||||
leaderElection:
|
leaderElection:
|
||||||
namespace: cert-manager
|
namespace: cert-manager
|
||||||
|
logLevel: 2
|
||||||
|
|
||||||
# Webhook configuration
|
|
||||||
webhook:
|
webhook:
|
||||||
enabled: true
|
|
||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
timeoutSeconds: 10
|
timeoutSeconds: 10
|
||||||
|
|
||||||
# CA Injector
|
cainjector:
|
||||||
caInjector:
|
|
||||||
enabled: true
|
enabled: true
|
||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
|
|
||||||
# Security context
|
resources: # controller only
|
||||||
podSecurityPolicy:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
# Resources
|
|
||||||
resources:
|
|
||||||
requests:
|
requests:
|
||||||
cpu: 50m
|
cpu: 50m
|
||||||
memory: 128Mi
|
memory: 128Mi
|
||||||
@@ -53,14 +47,10 @@ spec:
|
|||||||
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
|
||||||
|
|||||||
@@ -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.2
|
targetRevision: 0.58.3
|
||||||
helm:
|
helm:
|
||||||
releaseName: fluent-bit
|
releaseName: fluent-bit
|
||||||
valueFiles:
|
valueFiles:
|
||||||
|
|||||||
@@ -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: "8.15.0"
|
targetRevision: "10.5.15"
|
||||||
helm:
|
helm:
|
||||||
releaseName: grafana
|
releaseName: grafana
|
||||||
valueFiles:
|
valueFiles:
|
||||||
|
|||||||
@@ -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: "28.16.0"
|
targetRevision: "29.35.0"
|
||||||
helm:
|
helm:
|
||||||
releaseName: prometheus
|
releaseName: prometheus
|
||||||
valueFiles:
|
valueFiles:
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ spec:
|
|||||||
sources:
|
sources:
|
||||||
- repoURL: https://traefik.github.io/charts
|
- repoURL: https://traefik.github.io/charts
|
||||||
chart: traefik
|
chart: traefik
|
||||||
targetRevision: "28.3.0"
|
targetRevision: "42.0.0"
|
||||||
helm:
|
helm:
|
||||||
releaseName: traefik
|
releaseName: traefik
|
||||||
valueFiles:
|
valueFiles:
|
||||||
|
|||||||
@@ -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.2"
|
targetRevision: "0.46.3"
|
||||||
helm:
|
helm:
|
||||||
releaseName: vaultwarden
|
releaseName: vaultwarden
|
||||||
valueFiles:
|
valueFiles:
|
||||||
|
|||||||
@@ -4,14 +4,17 @@ 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"
|
||||||
|
# Cloud-specific pricing is in per-cluster value overrides
|
||||||
|
# (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:
|
prometheus:
|
||||||
internal:
|
internal:
|
||||||
enabled: true
|
enabled: true
|
||||||
serviceName: prometheus-server
|
serviceName: prometheus-server
|
||||||
namespaceName: monitoring
|
namespaceName: monitoring
|
||||||
port: 80
|
port: 80
|
||||||
# Cloud-specific pricing is in per-cluster value overrides
|
|
||||||
# (e.g. infra/values/upc-dev/opencost-values.yaml)
|
|
||||||
ui:
|
ui:
|
||||||
enabled: false
|
enabled: false
|
||||||
service:
|
service:
|
||||||
|
|||||||
@@ -4,6 +4,12 @@ server:
|
|||||||
service:
|
service:
|
||||||
servicePort: 80
|
servicePort: 80
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
|
||||||
|
retention: 7d
|
||||||
|
retentionSize: 6GB
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 150m
|
cpu: 150m
|
||||||
@@ -18,7 +24,7 @@ server:
|
|||||||
|
|
||||||
extraScrapeConfigs: |
|
extraScrapeConfigs: |
|
||||||
- job_name: kyverno
|
- job_name: kyverno
|
||||||
scrape_interval: 15s
|
scrape_interval: 60s
|
||||||
metrics_path: /metrics
|
metrics_path: /metrics
|
||||||
kubernetes_sd_configs:
|
kubernetes_sd_configs:
|
||||||
- role: endpoints
|
- role: endpoints
|
||||||
@@ -35,9 +41,16 @@ 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: 15s
|
scrape_interval: 60s
|
||||||
metrics_path: /metrics
|
metrics_path: /metrics
|
||||||
kubernetes_sd_configs:
|
kubernetes_sd_configs:
|
||||||
- role: endpoints
|
- role: endpoints
|
||||||
@@ -54,6 +67,13 @@ 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
|
||||||
|
|||||||
@@ -1,3 +1 @@
|
|||||||
image:
|
|
||||||
tag: "1.36.0-alpine"
|
|
||||||
domain: "https://vaultwarden.forteapps.net"
|
domain: "https://vaultwarden.forteapps.net"
|
||||||
|
|||||||
@@ -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"]
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"schedule": ["before 4am on monday"],
|
||||||
"extends": [
|
"extends": [
|
||||||
"config:recommended",
|
"config:recommended",
|
||||||
"group:allNonMajor",
|
"group:allNonMajor",
|
||||||
@@ -50,6 +51,12 @@
|
|||||||
"matchDepNames": ["/forteapps\\.net/"],
|
"matchDepNames": ["/forteapps\\.net/"],
|
||||||
"enabled": false
|
"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.",
|
"description": "Platform chart majors usually carry values-schema or CRD breaks - flag them for a careful read.",
|
||||||
"matchFileNames": ["infra/**"],
|
"matchFileNames": ["infra/**"],
|
||||||
|
|||||||
Reference in New Issue
Block a user