Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Conversation

@brettimus
Copy link
Contributor

Made a few small tweaks to how the AUTH_TOKEN is set, and updated the README accordingly.

Since wrangler.toml is checked into version control, it's recommended to put secrets in .dev.vars for developing locally, and then set the secret for the worker via npx wrangler secret put NAME_OF_SECRET.

This also prevents the [vars] in wrangler.toml from clobbering any runtime variables you set manually when you go to deploy.

@brettimus brettimus changed the title Move AUTH_TOKEN to `.dev.vars and update README with instructions for setting AUTH_TOKEN secret Move AUTH_TOKEN to .dev.vars and update README with instructions for setting AUTH_TOKEN secret Feb 17, 2025
@@ -0,0 +1 @@
AUTH_TOKEN="your-secret-token-here" No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit but maybe we could make this OTEL_WORKER_AUTH_TOKEN to make it more explicit

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah wait, realizing this will require a more substantial change throughout the code, so feel free to disregard

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think this is also making it quite verbose, specially since these envvars are scoped to a single app

Copy link
Contributor

@hatchan hatchan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing it to a secret also requires the code to fetch it from the secret and not var

@brettimus
Copy link
Contributor Author

Changing it to a secret also requires the code to fetch it from the secret and not var

changed!

@brettimus
Copy link
Contributor Author

deployed and tested with https://brett-otel-worker.fp.dev, going to merge

@brettimus brettimus merged commit 2474981 into main Feb 17, 2025
1 check passed
@brettimus brettimus deleted the update-readme branch February 17, 2025 13:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants