fix: enforce isolated beta deployment path
This commit is contained in:
@@ -102,6 +102,5 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
DEPLOY_HOST: ${{ secrets.PROD_SSH_HOST }}
|
DEPLOY_HOST: ${{ secrets.PROD_SSH_HOST }}
|
||||||
DEPLOY_USER: ${{ secrets.PROD_SSH_USER }}
|
DEPLOY_USER: ${{ secrets.PROD_SSH_USER }}
|
||||||
BETA_DEPLOY_PATH: ${{ secrets.PROD_DEPLOY_PATH }}
|
|
||||||
DEPLOY_SSH_OPTS: -o StrictHostKeyChecking=yes
|
DEPLOY_SSH_OPTS: -o StrictHostKeyChecking=yes
|
||||||
run: bash scripts/deploy_beta_ams_dev01.sh
|
run: bash scripts/deploy_beta_ams_dev01.sh
|
||||||
|
|||||||
@@ -178,9 +178,10 @@ The existing `PROD_*` names are retained for compatibility, but this workflow us
|
|||||||
- `PROD_SSH_PRIVATE_KEY`: private key for the deployment account.
|
- `PROD_SSH_PRIVATE_KEY`: private key for the deployment account.
|
||||||
- `PROD_SSH_HOST`: target host, for example `AMS-DEV01`.
|
- `PROD_SSH_HOST`: target host, for example `AMS-DEV01`.
|
||||||
- `PROD_SSH_USER`: target user, for example `zak`.
|
- `PROD_SSH_USER`: target user, for example `zak`.
|
||||||
- `PROD_DEPLOY_PATH`: beta app path, for example `/home/zak/magent-beta`.
|
|
||||||
- `PROD_SSH_KNOWN_HOSTS`: required pinned `known_hosts` entry. Deployments reject unknown or changed hosts.
|
- `PROD_SSH_KNOWN_HOSTS`: required pinned `known_hosts` entry. Deployments reject unknown or changed hosts.
|
||||||
|
|
||||||
|
Beta always deploys to the isolated `/home/<deployment-user>/magent-beta` directory; the production path secret is intentionally ignored.
|
||||||
|
|
||||||
## Security and data handling
|
## Security and data handling
|
||||||
|
|
||||||
Generate independent signing and settings-encryption secrets before first startup:
|
Generate independent signing and settings-encryption secrets before first startup:
|
||||||
|
|||||||
Reference in New Issue
Block a user