Skip to content

Commit

Permalink
chore: add mongodb cluster to schedule password rotate
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinebigard committed Feb 10, 2025
1 parent fbe8bb9 commit 41f97f3
Showing 1 changed file with 39 additions and 4 deletions.
43 changes: 39 additions & 4 deletions .github/workflows/schedule_password_rotate.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,50 @@
name: Scheduled Password Rotate
on:
schedule:
- cron: '0 0 1 * *'
- cron: "0 0 1 * *"

jobs:
rotate_password:
strategy:
fail-fast: false
matrix:
product: ["api", "bal", "lba", "monitoring", "tdb", "vpn", "contrat", "data", "mongodb"]
environment: ["production", "recette", "preview", "pentest", "preprod", "api", "bal", "contrat", "lba", "tdb"]
product:
[
"api",
"bal",
"lba",
"monitoring",
"tdb",
"vpn",
"contrat",
"data",
"mongodb",
]
environment:
[
"production",
"recette",
"preview",
"pentest",
"preprod",
"api",
"bal_1",
"bal_2",
"bal_3",
"recette_1",
"api_1",
"api_2",
"api_3",
"lba_1",
"lba_2",
"lba_3",
"tdb_1",
"tdb_2",
"tdb_3",
"contrat",
"lba",
"tdb",
]
name: Rotate password ${{ matrix.product }}-${{ matrix.environment }}
uses: "./.github/workflows/_password-rotate.yml"
with:
Expand All @@ -24,4 +59,4 @@ jobs:
HABILITATIONS: ${{ secrets[format('{0}_HABILITATIONS', matrix.product)] }}
OVH_APP_TOKEN: ${{ secrets.OVH_APP_TOKEN }}
OVH_APP_KEY: ${{ secrets.OVH_APP_KEY }}
OVH_APP_SECRET: ${{ secrets.OVH_APP_SECRET }}
OVH_APP_SECRET: ${{ secrets.OVH_APP_SECRET }}

0 comments on commit 41f97f3

Please sign in to comment.