Compare commits

..
Author SHA1 Message Date
jorgenseeyou a30d9c1071 docs(forte-drop-pg-backup): restore runbook lists and downloads with rclone
scan.yaml / test (pull_request) Successful in 35s
The runbook ran its listing and download pods with the mc image that can no
longer be pulled, so the recovery path was broken too. Same image and env-var
remote as the backup job. From the ai-review on the PR.
2026-11-24 12:53:20 +01:00
jorgenseeyou 4513a31975 fix(forte-drop-pg-backup): upload with rclone, the mc image can no longer be pulled
scan.yaml / test (pull_request) Successful in 8s
quay.io/minio/mc answers 401 for every tag since MinIO made the repository
private, so the upload container cannot be pulled. Same cause and fix as the
Gitea backup (90b8e6f): rclone/rclone:1.75.2, copy to s3:drops/_pgbackups/
and prune that prefix only with delete --min-age 30d.
2026-11-24 10:46:56 +01:00
danijel.simeunovic 17e2c85b8d Delete .gitmodules
scan.yaml / test (push) Successful in 8s
2026-11-09 10:43:54 +00:00
danijel.simeunovic 2c6009bf3f par
scan.yaml / test (push) Successful in 34s
2026-11-09 09:58:32 +01:00
danijel.simeunovic ed108ada64 Update infra/base/cert-manager-application/cert-manager-application.yaml
scan.yaml / test (push) Successful in 13s
2026-11-06 18:08:10 +00:00
danijel.simeunovic 0083e8c329 Update infra/values/upc-dev/traefik-values.yaml
scan.yaml / test (push) Successful in 14s
2026-11-06 17:59:24 +00:00
danijel.simeunovic c7f7dbf137 Update renovate.json
scan.yaml / test (push) Successful in 11s
2026-11-06 17:55:10 +00:00
danijel.simeunovic 4cca2a5dc0 remove hardcoded image tag
scan.yaml / test (push) Successful in 7s
2026-10-29 08:20:05 +00:00
2d64dd68bc chore(deps): update helm release traefik to v42 (#63)
scan.yaml / test (push) Successful in 6s
This PR contains the following updates:

| Package | Update | Change | Pending |
|---|---|---|---|
| [traefik](https://traefik.io/) ([source](https://github.com/traefik/traefik-helm-chart)) | major | `41.6.1` → `42.0.0` | `42.1.3` (+3) |

---

### Release Notes

<details>
<summary>traefik/traefik-helm-chart (traefik)</summary>

### [`v42.0.0`](https://github.com/traefik/traefik-helm-chart/releases/tag/v42.0.0)

[Compare Source](https://github.com/traefik/traefik-helm-chart/compare/v41.7.1...v42.0.0)

There are 3 breaking changes in this release

**Upgrade Notes**

1. **Kubernetes v1.30+**: The chart now requires Kubernetes v1.30 or higher ([#&#8203;2030](https://github.com/traefik/traefik-helm-chart/pull/2030)).
2. **Traefik Hub Secret RBAC**: Write verbs on Secrets (`create`, `update`, `delete`) are no longer granted cluster-wide.
   - A `Role` now grants them in the release namespace only, where Traefik Hub writes its Secrets ([#&#8203;2028](https://github.com/traefik/traefik-helm-chart/pull/2028))
3. **Transparency logs witnesses**: ([#&#8203;2018](https://github.com/traefik/traefik-helm-chart/pull/2018)):
   - `hub.transparencyLogs.witnessGroup.witnesses` now defaults to `null` and `threshold` must be at least `1`.
   - Setting `threshold`, `timeout` or `failOpen` without any witness now fails.

> \[!NOTE]
> With `hub.token`, the chart now deploys a cluster-scoped `ValidatingAdmissionPolicy` that only allows Traefik Hub to write `Opaque` and `kubernetes.io/tls` Secrets.
> Set `hub.restrictSecretTypes: false` if the installer cannot create cluster-scoped resources.

#### 💥 BREAKING CHANGES

- fix(tlogs)!: empty witness config [#&#8203;2018](https://github.com/traefik/traefik-helm-chart/issues/2018) by [@&#8203;LBF38](https://github.com/LBF38)
- feat(chart)!: require Kubernetes v1.30 or higher [#&#8203;2030](https://github.com/traefik/traefik-helm-chart/issues/2030) by [@&#8203;mloiseleur](https://github.com/mloiseleur)
- fix(rbac)!: 🐛 scope Traefik Hub secret write permissions to release namespace [#&#8203;2028](https://github.com/traefik/traefik-helm-chart/issues/2028) by [@&#8203;mloiseleur](https://github.com/mloiseleur)

#### 🚀 Features

- feat(hub): 🚀 support traefik hub v3.20.16 and v3.21.3 [#&#8203;2032](https://github.com/traefik/traefik-helm-chart/issues/2032) by [@&#8203;mloiseleur](https://github.com/mloiseleur)
- feat(hub): restrict Secret types written by Traefik Hub [#&#8203;2031](https://github.com/traefik/traefik-helm-chart/issues/2031) by [@&#8203;mloiseleur](https://github.com/mloiseleur)

#### 🐛 Bug fixes

- fix(examples): fix outdated value schema used in `additionalServices` example [#&#8203;2023](https://github.com/traefik/traefik-helm-chart/issues/2023) by [@&#8203;jnoordsij](https://github.com/jnoordsij)

#### 📦 Others

- chore(deps): update github actions [#&#8203;2024](https://github.com/traefik/traefik-helm-chart/issues/2024) by [@&#8203;renovate-with-github-actions](https://github.com/renovate-with-github-actions)\[bot]
- chore(deps): update quay.io/helmpack/chart-testing docker tag to v3.15.0 [#&#8203;2025](https://github.com/traefik/traefik-helm-chart/issues/2025) by [@&#8203;renovate-with-github-actions](https://github.com/renovate-with-github-actions)\[bot]
- docs(agents): document Traefik Hub version bump [#&#8203;2033](https://github.com/traefik/traefik-helm-chart/issues/2033) by [@&#8203;mloiseleur](https://github.com/mloiseleur)
- docs(examples): add Traefik Hub Gateway with the Traefik MCP server as a sidecar [#&#8203;2007](https://github.com/traefik/traefik-helm-chart/issues/2007) by [@&#8203;emilevauge](https://github.com/emilevauge)
- chore(release): 🚀 publish 42.0.0 [#&#8203;2034](https://github.com/traefik/traefik-helm-chart/issues/2034) by [@&#8203;mloiseleur](https://github.com/mloiseleur)

#### 👌 Traefik version support

- Traefik Proxy: v3.6.0 -> v3.7.14 (default)
- Traefik Hub: v3.19.3 -> v3.21.3

### [`v41.7.1`](https://github.com/traefik/traefik-helm-chart/releases/tag/v41.7.1)

[Compare Source](https://github.com/traefik/traefik-helm-chart/compare/v41.7.0...v41.7.1)

#### 🚀 Features

- feat(hub): 🚀 support traefik hub v3.20.15 and v3.21.2 [#&#8203;2021](https://github.com/traefik/traefik-helm-chart/issues/2021) by [@&#8203;darkweaver87](https://github.com/darkweaver87)

#### 📦 Others

- chore(release): 🚀 publish 41.7.1 [#&#8203;2022](https://github.com/traefik/traefik-helm-chart/issues/2022) by [@&#8203;darkweaver87](https://github.com/darkweaver87)

#### 👌 Traefik version support

- Traefik Proxy: v3.6.0 -> v3.7.14 (default)
- Traefik Hub: v3.19.3 -> v3.21.2

### [`v41.7.0`](https://github.com/traefik/traefik-helm-chart/releases/tag/v41.7.0)

[Compare Source](https://github.com/traefik/traefik-helm-chart/compare/v41.6.1...v41.7.0)

#### 🚀 Features

- feat(deps): update traefik to v3.7.14 and traefik-hub to v3.21.1 [#&#8203;2015](https://github.com/traefik/traefik-helm-chart/issues/2015) by [@&#8203;darkweaver87](https://github.com/darkweaver87)
- feat(deps): update ghcr.io/traefik/hub-manager docker tag to v0.45.3 [#&#8203;2006](https://github.com/traefik/traefik-helm-chart/issues/2006) by [@&#8203;renovate-with-github-actions](https://github.com/renovate-with-github-actions)\[bot]
- feat(gateway): support scoping the provider to specific Gateways [#&#8203;2016](https://github.com/traefik/traefik-helm-chart/issues/2016) by [@&#8203;darkweaver87](https://github.com/darkweaver87)

#### 📦 Others

- chore(deps): update github actions [#&#8203;2013](https://github.com/traefik/traefik-helm-chart/issues/2013) by [@&#8203;renovate-with-github-actions](https://github.com/renovate-with-github-actions)\[bot]
- chore(deps): update dawidd6/action-download-artifact action to v27 [#&#8203;2014](https://github.com/traefik/traefik-helm-chart/issues/2014) by [@&#8203;renovate-with-github-actions](https://github.com/renovate-with-github-actions)\[bot]
- chore(release): 🚀 publish 41.7.0 and hub-manager 1.0.1 [#&#8203;2019](https://github.com/traefik/traefik-helm-chart/issues/2019) by [@&#8203;darkweaver87](https://github.com/darkweaver87)

#### 👌 Traefik version support

- Traefik Proxy: v3.6.0 -> v3.7.14 (default)
- Traefik Hub: v3.19.3 -> v3.21.1

</details>

---

### Configuration

📅 **Schedule**: (in timezone Europe/Oslo)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMTIuMyIsInVwZGF0ZWRJblZlciI6IjQ0LjExMi4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJicmVha2luZy1jaGFuZ2UiLCJyZW5vdmF0ZSJdfQ==-->

---------

Co-authored-by: Renovate Bot <renovate@forteapps.net>
Reviewed-on: https://git.forteapps.net/Forte/launchpad/pulls/63
Reviewed-by: Danijel Simeunovic <danijel.simeunovic@fortedigital.com>
Co-authored-by: gitea_admin <admin@forteapps.net>
2026-10-23 11:54:30 +00:00
danijel.simeunovic 0639a19a50 slack relay turn off gitops notifications
scan.yaml / test (push) Successful in 6s
2026-10-20 23:43:33 +02:00
danijel.simeunovic 60dfba9f7b slack relay namespace
scan.yaml / test (push) Successful in 6s
2026-10-20 23:13:47 +02:00
danijel.simeunovic 215d5fddba slack-relay
scan.yaml / test (push) Successful in 6s
2026-10-20 23:03:05 +02:00
danijel.simeunovic c6909d99a7 upload s3 backup
scan.yaml / test (push) Successful in 7s
2026-10-14 01:02:34 +02:00
danijel.simeunovic 72640a93dc fix backups
scan.yaml / test (push) Successful in 7s
2026-10-14 00:55:17 +02:00
18 changed files with 284 additions and 87 deletions
-5
View File
@@ -1,5 +0,0 @@
[submodule "shared-prompts"]
path = shared-prompts
url = https://git.forteapps.net/Forte/ai-review-prompts.git
branch = main
@@ -7,7 +7,7 @@ metadata:
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: ai-git-bot app.kubernetes.io/name: ai-git-bot
app.kubernetes.io/part-of: apps app.kubernetes.io/part-of: apps
@@ -29,10 +29,11 @@ kubectl -n forte-drop get pods -l app.kubernetes.io/name=postgresql
## List available backups ## List available backups
```bash ```bash
# Run an ephemeral mc pod with the app's S3 creds: # Run an ephemeral rclone pod with the app's S3 creds (the backup job's image
kubectl -n forte-drop run mc-list --rm -it --restart=Never \ # and env-var remote; the mc image used here before can no longer be pulled):
--image=quay.io/minio/mc:RELEASE.2024-11-21T17-21-54Z \ kubectl -n forte-drop run rclone-list --rm -it --restart=Never \
--overrides='{"spec":{"containers":[{"name":"mc","image":"quay.io/minio/mc:RELEASE.2024-11-21T17-21-54Z","command":["sh","-c","mc alias set obj \"$S3_ENDPOINT\" \"$S3_KEY\" \"$S3_SECRET\" >/dev/null && mc ls obj/drops/_pgbackups/"],"envFrom":[{"secretRef":{"name":"forte-drop-secrets"}}]}]}}' --image=rclone/rclone:1.75.2 \
--overrides='{"spec":{"containers":[{"name":"rclone","image":"rclone/rclone:1.75.2","command":["sh","-c","export RCLONE_CONFIG_S3_TYPE=s3 RCLONE_CONFIG_S3_PROVIDER=Other RCLONE_CONFIG_S3_ENDPOINT=\"$S3_ENDPOINT\" RCLONE_CONFIG_S3_ACCESS_KEY_ID=\"$S3_KEY\" RCLONE_CONFIG_S3_SECRET_ACCESS_KEY=\"$S3_SECRET\" HOME=/tmp; rclone lsl s3:drops/_pgbackups/ 2>/dev/null"],"envFrom":[{"secretRef":{"name":"forte-drop-secrets"}}]}]}}'
``` ```
## Manually trigger a backup (before risky changes) ## Manually trigger a backup (before risky changes)
@@ -53,41 +54,17 @@ kubectl -n forte-drop logs -l app.kubernetes.io/component=backup --tail=40
List backups (above), choose `forte-drop-<TS>.sql.gz`. List backups (above), choose `forte-drop-<TS>.sql.gz`.
### 2. Run a restore pod that pulls the dump and pipes it into Postgres ### 2. Download the dump, then pipe it into Postgres
```bash ```bash
DUMP="forte-drop-20260530T020000Z.sql.gz" # <-- set to the chosen file DUMP="forte-drop-20260530T020000Z.sql.gz" # <-- set to the chosen file
kubectl -n forte-drop run pg-restore --rm -it --restart=Never \
--image=postgres:16-alpine \
--overrides='{
"spec": {
"containers": [{
"name": "restore",
"image": "postgres:16-alpine",
"command": ["sh","-c","set -euo pipefail; \
apk add --no-cache curl >/dev/null; \
# download via mc is simpler — use a 2-step instead (see note). \
echo placeholder"],
"envFrom": [
{"secretRef":{"name":"forte-drop-pg-creds"}},
{"secretRef":{"name":"forte-drop-secrets"}}
]
}]
}
}'
```
**Simpler 2-pod approach (recommended — avoids cramming mc + psql in one image):**
```bash
DUMP="forte-drop-20260530T020000Z.sql.gz"
# (a) Download the dump from object storage to a local file: # (a) Download the dump from object storage to a local file:
kubectl -n forte-drop run mc-get --rm -it --restart=Never \ kubectl -n forte-drop run rclone-get --rm -i --restart=Never --quiet \
--image=quay.io/minio/mc:RELEASE.2024-11-21T17-21-54Z \ --image=rclone/rclone:1.75.2 \
--overrides='{"spec":{"containers":[{"name":"mc","image":"quay.io/minio/mc:RELEASE.2024-11-21T17-21-54Z","command":["sh","-c","mc alias set obj \"$S3_ENDPOINT\" \"$S3_KEY\" \"$S3_SECRET\" >/dev/null && mc cat obj/drops/_pgbackups/'"$DUMP"'"],"envFrom":[{"secretRef":{"name":"forte-drop-secrets"}}]}]}}' \ --overrides='{"spec":{"containers":[{"name":"rclone","image":"rclone/rclone:1.75.2","command":["sh","-c","export RCLONE_CONFIG_S3_TYPE=s3 RCLONE_CONFIG_S3_PROVIDER=Other RCLONE_CONFIG_S3_ENDPOINT=\"$S3_ENDPOINT\" RCLONE_CONFIG_S3_ACCESS_KEY_ID=\"$S3_KEY\" RCLONE_CONFIG_S3_SECRET_ACCESS_KEY=\"$S3_SECRET\" HOME=/tmp; rclone cat s3:drops/_pgbackups/'"$DUMP"' 2>/dev/null"],"envFrom":[{"secretRef":{"name":"forte-drop-secrets"}}]}]}}' \
> /tmp/$DUMP > /tmp/$DUMP
gunzip -t /tmp/$DUMP && ls -lh /tmp/$DUMP # must pass before you go on
# (b) Pipe it into the live Postgres via the service: # (b) Pipe it into the live Postgres via the service:
gunzip -c /tmp/$DUMP | kubectl -n forte-drop run pg-restore --rm -i --restart=Never \ gunzip -c /tmp/$DUMP | kubectl -n forte-drop run pg-restore --rm -i --restart=Never \
@@ -127,7 +104,7 @@ UpCloud-managed/replicated, so no separate file backup is configured. If a
file-level backup is later required, mirror the bucket to a second bucket/region: file-level backup is later required, mirror the bucket to a second bucket/region:
```bash ```bash
mc mirror --overwrite obj/drops/ backup-target/drops-mirror/ rclone sync s3:drops/ backup-target:drops-mirror/ --exclude "_pgbackups/**"
``` ```
(Exclude `_pgbackups/` from the app-data mirror if you split them.) (Exclude `_pgbackups/` from the app-data mirror if you split them.)
@@ -2,7 +2,7 @@
# Dumps to s3://drops/_pgbackups/ (the `_` prefix is collision-proof: app slugs match # Dumps to s3://drops/_pgbackups/ (the `_` prefix is collision-proof: app slugs match
# /^[a-z0-9][a-z0-9-]{0,62}$/ and can never start with `_`). Retains 30 days. # /^[a-z0-9][a-z0-9-]{0,62}$/ and can never start with `_`). Retains 30 days.
# #
# Pod shape: initContainer pg_dump → shared emptyDir → mc upload + retention prune. # Pod shape: initContainer pg_dump → shared emptyDir → rclone upload + retention prune.
# Both images pinned. S3 creds reuse forte-drop-secrets (the app's UpCloud user has # Both images pinned. S3 creds reuse forte-drop-secrets (the app's UpCloud user has
# s3:* on the drops bucket). PG creds from forte-drop-pg-creds. # s3:* on the drops bucket). PG creds from forte-drop-pg-creds.
apiVersion: batch/v1 apiVersion: batch/v1
@@ -65,24 +65,38 @@ spec:
mountPath: /work mountPath: /work
containers: containers:
- name: upload - name: upload
image: quay.io/minio/mc:RELEASE.2024-11-21T17-21-54Z # Was quay.io/minio/mc until MinIO made the mc repository private:
# every tag now answers 401 on quay.io and Docker Hub, so the pod
# cannot pull it (same cause and fix as cluster-resources/
# gitea-backup-cronjob.yaml). rclone is a public, pinned equivalent:
# `delete --min-age` replaces `mc rm --older-than`.
image: rclone/rclone:1.75.2
command: command:
- sh - sh
- -c - -c
- | - |
set -euo pipefail set -euo pipefail
mc alias set obj "$S3_ENDPOINT" "$S3_KEY" "$S3_SECRET" export RCLONE_CONFIG_S3_ENDPOINT="${S3_ENDPOINT}"
mc cp /work/*.sql.gz "obj/${S3_BUCKET}/_pgbackups/" export RCLONE_CONFIG_S3_ACCESS_KEY_ID="${S3_KEY}"
export RCLONE_CONFIG_S3_SECRET_ACCESS_KEY="${S3_SECRET}"
# Only ever this prefix: the bucket also holds every drop.
DEST="s3:${S3_BUCKET}/_pgbackups/"
rclone copy /work "$DEST" --include "*.sql.gz"
echo "uploaded. pruning backups older than 30d:" echo "uploaded. pruning backups older than 30d:"
mc rm --recursive --force --older-than 30d "obj/${S3_BUCKET}/_pgbackups/" || true rclone delete --min-age 30d --use-server-modtime "$DEST" || 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 # rclone wants a writable home for its cache; the root fs is not
# emptyDir (writable by uid 65532 via fsGroup). Without this it tries # writable for uid 65532, the shared emptyDir is (fsGroup).
# to mkdir /.mc on the read-only-to-nonroot root fs -> "mkdir /.mc: - name: HOME
# permission denied" and every run fails before uploading. value: "/work"
- name: MC_CONFIG_DIR - name: RCLONE_CONFIG_S3_TYPE
value: "/work/.mc" value: s3
- name: RCLONE_CONFIG_S3_PROVIDER
value: Other
# Do not call CreateBucket before the first write.
- name: RCLONE_S3_NO_CHECK_BUCKET
value: "true"
- name: S3_ENDPOINT - name: S3_ENDPOINT
valueFrom: valueFrom:
secretKeyRef: { name: forte-drop-secrets, key: S3_ENDPOINT } secretKeyRef: { name: forte-drop-secrets, key: S3_ENDPOINT }
+3
View File
@@ -6,6 +6,7 @@ resources:
- forte-drop - forte-drop
- forte-drop-mcp - forte-drop-mcp
- ai-git-bot - 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).
@@ -13,3 +14,5 @@ resources:
# 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). # 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
@@ -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
+26 -5
View File
@@ -29,7 +29,12 @@ spec:
topologyKey: kubernetes.io/hostname topologyKey: kubernetes.io/hostname
initContainers: initContainers:
- name: gitea-dump - name: gitea-dump
image: gitea/gitea:28.1.0 # 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,46 +21,36 @@ spec:
helm: helm:
values: | values: |
# Install CustomResourceDefinitions
installCRDs: true crds:
enabled: true
# Global configuration 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
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://prometheus-community.github.io/helm-charts - repoURL: https://prometheus-community.github.io/helm-charts
chart: prometheus chart: prometheus
targetRevision: "29.36.1" 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: "41.7.1" targetRevision: "42.0.0"
helm: helm:
releaseName: traefik releaseName: traefik
valueFiles: valueFiles:
@@ -1,3 +1 @@
image:
tag: "1.36.0-alpine"
domain: "https://vaultwarden.forteapps.net" domain: "https://vaultwarden.forteapps.net"
+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"]
+7
View File
@@ -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/**"],