forked from mtusi2026/mtusi2026lab7
lab7: безопасность, mTLS, OpenBao и PKI lifecycle
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
name: Application
|
||||
on: [push, pull_request]
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
env:
|
||||
GO_VERSION: "1.27.3"
|
||||
GOLANGCI_LINT_VERSION: v2.15.0
|
||||
|
||||
jobs:
|
||||
quality:
|
||||
name: Go invariants and static checks
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: ${{ env.GO_VERSION }}
|
||||
cache: true
|
||||
- run: make sqlc generate-mocks
|
||||
- run: make lint unit-test
|
||||
|
||||
stand:
|
||||
name: Lab7 verified TLS and retained features
|
||||
needs: quality
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: ${{ env.GO_VERSION }}
|
||||
cache: true
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.14"
|
||||
- run: cp .env.example .env
|
||||
- name: Build, initialize, unseal and start isolated stand
|
||||
run: make COMPOSE_PROJECT_NAME=mtusi-lab7-ci up
|
||||
- name: Public HTTPS and trust
|
||||
run: make COMPOSE_PROJECT_NAME=mtusi-lab7-ci test test-security
|
||||
- name: Internal identities and permissions
|
||||
run: make COMPOSE_PROJECT_NAME=mtusi-lab7-ci test-lab7
|
||||
- name: Preserved asynchronous attachment features
|
||||
run: make COMPOSE_PROJECT_NAME=mtusi-lab7-ci test-attachments test-presign test-queue test-idempotency
|
||||
- name: Telemetry configuration and all three signals
|
||||
run: |
|
||||
docker compose --project-name mtusi-lab7-ci --env-file .env exec -T prometheus promtool check config /etc/prometheus/prometheus.yml
|
||||
make COMPOSE_PROJECT_NAME=mtusi-lab7-ci test-observability
|
||||
- name: Persist data through operator restart
|
||||
run: make COMPOSE_PROJECT_NAME=mtusi-lab7-ci test-persistence ACTION_SCRIPT=scripts/restart.sh
|
||||
- name: Publish sanitized evidence
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: lab7-evidence
|
||||
path: evidence/lab7/
|
||||
- name: Isolated runner cleanup
|
||||
if: always()
|
||||
run: docker compose --project-name mtusi-lab7-ci --env-file .env down -v
|
||||
Reference in New Issue
Block a user