PostgreSQL backup tool with Point-In-Time-Recovery and restore verification
TypeScript backupbackupsdatabasedatabase-backupdevopsdockergolangkubernetesmariadbmongodbmysqlpgpostgrespostgresqls3self-hostedsystem-administrationtoolsweb-ui
FEATURE (security): Add dependencies analyze and cooldown
Rostislav Dugind675676f5acf
diff --git a/.github/dependabot.yml b/.github/dependabot.ymlnew file mode 100644index 00000000..c1f8481d--- /dev/null+++ b/.github/dependabot.yml@@ -0,0 +1,89 @@+version: 2++updates:+ - package-ecosystem: "npm"+ directory: "/frontend"+ schedule:+ interval: "weekly"+ day: "monday"+ open-pull-requests-limit: 10+ cooldown:+ default-days: 7+ semver-major-days: 30+ semver-minor-days: 7+ semver-patch-days: 3+ groups:+ frontend-minor-and-patch:+ update-types: ["minor", "patch"]+ labels: ["dependencies", "frontend"]+ commit-message:+ prefix: "REFACTOR (deps)"++ - package-ecosystem: "gomod"+ directory: "/backend"+ schedule:+ interval: "weekly"+ day: "monday"+ open-pull-requests-limit: 10+ cooldown:+ default-days: 7+ semver-major-days: 30+ semver-minor-days: 7+ semver-patch-days: 3+ groups:+ backend-minor-and-patch:+ update-types: ["minor", "patch"]+ labels: ["dependencies", "backend"]+ commit-message:+ prefix: "REFACTOR (deps)"++ - package-ecosystem: "gomod"+ directory: "/agent/backup"+ schedule:+ interval: "weekly"+ day: "monday"+ open-pull-requests-limit: 10+ cooldown:+ default-days: 7+ semver-major-days: 30+ semver-minor-days: 7+ semver-patch-days: 3+ groups:+ agent-minor-and-patch:+ update-types: ["minor", "patch"]+ labels: ["dependencies", "agent"]+ commit-message:+ prefix: "REFACTOR (deps)"++ - package-ecosystem: "docker"+ directory: "/"+ schedule:+ interval: "weekly"+ day: "monday"+ open-pull-requests-limit: 5+ cooldown:+ default-days: 14+ semver-major-days: 30+ semver-minor-days: 14+ semver-patch-days: 7+ labels: ["dependencies", "docker"]+ commit-message:+ prefix: "REFACTOR (deps)"++ - package-ecosystem: "github-actions"+ directory: "/"+ schedule:+ interval: "weekly"+ day: "monday"+ open-pull-requests-limit: 5+ cooldown:+ default-days: 7+ semver-major-days: 30+ semver-minor-days: 7+ semver-patch-days: 3+ groups:+ actions-minor-and-patch:+ update-types: ["minor", "patch"]+ labels: ["dependencies", "ci"]+ commit-message:+ prefix: "REFACTOR (deps)"diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.ymlindex 10d187ab..794b68b6 100644--- a/.github/workflows/ci-release.yml+++ b/.github/workflows/ci-release.yml@@ -7,6 +7,9 @@ on:branches: ["**"]workflow_dispatch:+permissions:+ contents: read+jobs:lint-backend:if: github.ref != 'refs/heads/develop'@@ -129,6 +132,27 @@ jobs:go mod tidygit diff --exit-code go.mod go.sum || (echo "go mod tidy made changes, please run 'go mod tidy' and commit the changes" && exit 1)+ dockerfile-scan:+ if: github.ref != 'refs/heads/develop'+ runs-on: ubuntu-latest+ permissions:+ contents: read+ steps:+ - name: Check out code+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1++ - name: Install Trivy+ run: |+ sudo apt-get update+ sudo apt-get install -y wget apt-transport-https gnupg+ wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | sudo gpg --dearmor -o /usr/share/keyrings/trivy.gpg+ echo "deb [signed-by=/usr/share/keyrings/trivy.gpg] https://aquasecurity.github.io/trivy-repo/deb generic main" | sudo tee /etc/apt/sources.list.d/trivy.list+ sudo apt-get update+ sudo apt-get install -y trivy++ - name: Trivy Dockerfile misconfiguration scan+ run: trivy config --severity HIGH,CRITICAL --exit-code 1 Dockerfile+test-frontend:if: github.ref != 'refs/heads/develop'runs-on: ubuntu-latest@@ -479,6 +503,22 @@ jobs:fiecho "index.html OK"+ - name: Install Trivy+ run: |+ sudo apt-get update+ sudo apt-get install -y wget apt-transport-https gnupg+ wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | sudo gpg --dearmor -o /usr/share/keyrings/trivy.gpg+ echo "deb [signed-by=/usr/share/keyrings/trivy.gpg] https://aquasecurity.github.io/trivy-repo/deb generic main" | sudo tee /etc/apt/sources.list.d/trivy.list+ sudo apt-get update+ sudo apt-get install -y trivy++ - name: Trivy scan dev image (CRITICAL, blocking)+ run: trivy image --severity CRITICAL --ignore-unfixed --vuln-type os,library --exit-code 1 databasus-dev:smoke-${{ github.sha }}++ - name: Trivy scan dev image (HIGH, advisory)+ if: always()+ run: trivy image --severity HIGH --ignore-unfixed --vuln-type os,library --exit-code 0 databasus-dev:smoke-${{ github.sha }}+- name: Cleanup smoke containerif: always()run: |@@ -527,7 +567,7 @@ jobs:build-image:if: github.ref != 'refs/heads/develop'runs-on: ubuntu-latest- needs: [lint-backend, lint-frontend, lint-agent]+ needs: [lint-backend, lint-frontend, lint-agent, dockerfile-scan]steps:- name: Clean workspacerun: |@@ -587,6 +627,22 @@ jobs:fiecho "index.html OK"+ - name: Install Trivy+ run: |+ sudo apt-get update+ sudo apt-get install -y wget apt-transport-https gnupg+ wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | sudo gpg --dearmor -o /usr/share/keyrings/trivy.gpg+ echo "deb [signed-by=/usr/share/keyrings/trivy.gpg] https://aquasecurity.github.io/trivy-repo/deb generic main" | sudo tee /etc/apt/sources.list.d/trivy.list+ sudo apt-get update+ sudo apt-get install -y trivy++ - name: Trivy scan release image (CRITICAL, blocking)+ run: trivy image --severity CRITICAL --ignore-unfixed --vuln-type os,library --exit-code 1 databasus:smoke-${{ github.sha }}++ - name: Trivy scan release image (HIGH, advisory)+ if: always()+ run: trivy image --severity HIGH --ignore-unfixed --vuln-type os,library --exit-code 0 databasus:smoke-${{ github.sha }}+- name: Cleanup smoke containerif: always()run: |diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.ymlnew file mode 100644index 00000000..88f56026--- /dev/null+++ b/.github/workflows/dependency-review.yml@@ -0,0 +1,22 @@+name: Dependency Review++on:+ pull_request:+ branches: ["**"]++permissions:+ contents: read+ pull-requests: write++jobs:+ dependency-review:+ runs-on: ubuntu-latest+ steps:+ - name: Check out code+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1++ - name: Dependency Review+ uses: actions/dependency-review-action@da24556b548a50705dd671f47852072ea4c105d9 # v4.7.1+ with:+ fail-on-severity: high+ comment-summary-in-pr: on-failure