Read the apps check address from a Worker secret (#5)
A monitor's target can be secret:NAME: the worker reads the address from the Worker secret NAME at check time, bound in deploy.tf from the GitHub Actions secret of the same name. The address never appears in this repository, and any error text that mentions it is scrubbed before it's stored or shown. Apps in US East now checks a real app this way.
This commit is contained in:
1 parent
035d23d1e3
commit
cf977e65da
4 files changed
+50
-5
No files matched your search
@@ -104,6 +104,7 @@ jobs:
|
||||
env:
|
||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
TF_VAR_CLOUDFLARE_ACCOUNT_ID: ${{ steps.fetch_account_id.outputs.account_id }}
|
||||
TF_VAR_APPS_US_EAST_TARGET: ${{ secrets.APPS_US_EAST_TARGET }}
|
||||
D1_ID: ${{ env.D1_ID }}
|
||||
|
||||
# Currently Terraform Cloudflare provider doesn't support direct upload, use wrangler to upload instead.
|
||||
|
||||
Reference in new issue
Block a user