Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/commercial-backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,17 @@ jobs:
LICENSE_URL: ${{ secrets.ENGRAPHIS_LICENSE_URL }}
VENDOR_TOKEN: ${{ secrets.ENGRAPHIS_VENDOR_ADMIN_TOKEN }}
steps:
- name: Gate on secret availability
id: gate
run: |
if [ -z "$CUSTOMER_URL" ] || [ -z "$CUSTOMER_TOKEN" ] || [ -z "$LICENSE_URL" ] || [ -z "$VENDOR_TOKEN" ]; then
echo "skip=true" >> "$GITHUB_OUTPUT"
echo "::warning::Commercial backup skipped — production secrets not yet configured (pre-GA)."
else
echo "skip=false" >> "$GITHUB_OUTPUT"
fi
- name: Require production backup targets
if: steps.gate.outputs.skip != 'true'
run: |
test -n "$CUSTOMER_URL"
test -n "$CUSTOMER_TOKEN"
Expand All @@ -29,16 +39,19 @@ jobs:
case "$CUSTOMER_URL" in https://*) ;; *) echo "customer URL must use HTTPS"; exit 1;; esac
case "$LICENSE_URL" in https://*) ;; *) echo "license URL must use HTTPS"; exit 1;; esac
- name: Back up managed customer service
if: steps.gate.outputs.skip != 'true'
run: |
printf 'Authorization: Bearer %s\n' "$CUSTOMER_TOKEN" |
curl --fail --silent --show-error --max-time 300 --proto '=https' \
-X POST --header @- --url "${CUSTOMER_URL%/}/api/ops/backup"
- name: Back up license control plane
if: steps.gate.outputs.skip != 'true'
run: |
printf 'Authorization: Bearer %s\n' "$VENDOR_TOKEN" |
curl --fail --silent --show-error --max-time 300 --proto '=https' \
-X POST --header @- --url "${LICENSE_URL%/}/ops/backup"
- name: Require fresh readiness after backup
if: steps.gate.outputs.skip != 'true'
run: |
printf 'Authorization: Bearer %s\n' "$CUSTOMER_TOKEN" |
curl --fail --silent --show-error --max-time 20 --proto '=https' \
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/production-synthetics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,17 @@ jobs:
LICENSE_URL: ${{ secrets.ENGRAPHIS_LICENSE_URL }}
OPS_TOKEN: ${{ secrets.ENGRAPHIS_VENDOR_ADMIN_TOKEN }}
steps:
- name: Gate on secret availability
id: gate
run: |
if [ -z "$CUSTOMER_URL" ] || [ -z "$CUSTOMER_TOKEN" ] || [ -z "$LICENSE_URL" ] || [ -z "$OPS_TOKEN" ]; then
echo "skip=true" >> "$GITHUB_OUTPUT"
echo "::warning::Production synthetics skipped — monitoring secrets not yet configured (pre-GA)."
else
echo "skip=false" >> "$GITHUB_OUTPUT"
fi
- name: Require monitored endpoints
if: steps.gate.outputs.skip != 'true'
run: |
test -n "$CUSTOMER_URL"
test -n "$CUSTOMER_TOKEN"
Expand All @@ -29,24 +39,29 @@ jobs:
case "$CUSTOMER_URL" in https://*) ;; *) echo "customer URL must use HTTPS"; exit 1;; esac
case "$LICENSE_URL" in https://*) ;; *) echo "license URL must use HTTPS"; exit 1;; esac
- name: Customer readiness
if: steps.gate.outputs.skip != 'true'
run: >-
curl --fail --silent --show-error --max-time 20 --proto '=https'
--url "${CUSTOMER_URL%/}/api/ready"
- name: Authenticated customer storage readiness
if: steps.gate.outputs.skip != 'true'
run: |
printf 'Authorization: Bearer %s\n' "$CUSTOMER_TOKEN" |
curl --fail --silent --show-error --max-time 20 --proto '=https' \
--header @- --url "${CUSTOMER_URL%/}/api/ops/ready"
- name: Control-plane readiness
if: steps.gate.outputs.skip != 'true'
run: >-
curl --fail --silent --show-error --max-time 20 --proto '=https'
--url "${LICENSE_URL%/}/api/ready"
- name: Authenticated dependency detail
if: steps.gate.outputs.skip != 'true'
run: |
printf 'Authorization: Bearer %s\n' "$OPS_TOKEN" |
curl --fail --silent --show-error --max-time 20 --proto '=https' \
--header @- --url "${LICENSE_URL%/}/ops/ready"
- name: Non-mutating trial dependency synthetic
if: steps.gate.outputs.skip != 'true'
run: |
printf 'Authorization: Bearer %s\n' "$OPS_TOKEN" |
curl --fail --silent --show-error --max-time 20 --proto '=https' \
Expand Down