@@ -34,6 +34,12 @@ For review apps, GitHub needs one repository secret:
3434| --- | --- |
3535| ` CPLN_TOKEN_STAGING ` | Service-account token for ` shakacode-open-source-examples-staging ` . |
3636
37+ Use a staging/review token that cannot access production Control Plane
38+ resources. In public repositories, generated review-app deploys skip fork PR
39+ heads because Docker builds use repository secrets; if a forked change needs a
40+ review app, first move the reviewed change to a trusted branch in this
41+ repository.
42+
3743No review-app repository variables are required for the standard path. The
3844workflow infers ` qa-react-webpack-rails-tutorial ` and
3945` shakacode-open-source-examples-staging ` from ` .controlplane/controlplane.yml ` ,
@@ -111,6 +117,13 @@ Generate `SECRET_KEY_BASE` with `openssl rand -hex 64` and
111117managed Postgres and Redis services and update ` DATABASE_URL ` and ` REDIS_URL `
112118accordingly.
113119
120+ Review apps run pull request code, so anything mounted through
121+ ` cpln://secret/... ` can be read by that code after it starts. Keep the
122+ ` qa-react-webpack-rails-tutorial-secrets ` dictionary limited to review-safe
123+ values: disposable databases, review-only renderer credentials, and a Pro
124+ license value that is acceptable for review-app exposure. Do not reuse
125+ production or long-lived staging secret dictionaries for review apps.
126+
114127### Advanced Overrides
115128
116129Most repos should leave these unset. They exist so forks and clones can test
@@ -483,6 +496,10 @@ this automated process. When an approved collaborator comments exactly
483496After the review app exists, new pushes to the PR redeploy it automatically.
484497Use ` +review-app-delete ` to delete it manually; closing the PR deletes it
485498automatically. Use ` +review-app-help ` for the review-app command reference.
499+ Fork PR heads are skipped for deploys because the workflow builds Docker images
500+ with repository secrets. A trusted comment on a fork PR still should not deploy
501+ the fork head; move the reviewed change to a branch in this repository when a
502+ review app is needed.
486503Pushes to the staging branch deploy staging, and production promotion is manual
487504from the ` cpflow-promote-staging-to-production ` workflow.
488505If staging moves off ` master ` , update both the ` STAGING_APP_BRANCH ` repository
0 commit comments