-
Notifications
You must be signed in to change notification settings - Fork 770
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: secret input trailing spaces #1044
Conversation
🦋 Changeset detectedLatest commit: a05478f The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
95b33d9
to
0921261
Compare
A wrangler prerelease is available for testing. You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.developers.workers.dev/runs/2346143277/npm-package-wrangler-1044 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.developers.workers.dev/prs/1044/npm-package-wrangler-1044 Or you can use npx https://prerelease-registry.developers.workers.dev/runs/2346143277/npm-package-wrangler-1044 dev path/to/script.js |
0921261
to
c5f5201
Compare
c5f5201
to
056b241
Compare
Trimming the secret value would be a breaking change. Currently I can run $ npx wrangler secret put foo Then type in the characters " abc ". And these spaces are still available in my Worker. |
I think instead we only want to remove a trailing |
5b79371
to
60d3942
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @JacobMGEvans - just a couple of minor requests before we merge.
fix: added `trimTrailingWhitespace()` to secretValue being sent in PUT request | ||
Matching Wrangler legacy behavior with handling inputs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should try to write these changeset descriptions from the point of view of the changelog reader. So I would describe the external effect rather than the implementation change in the heading. E.g.
fix: trim trailing whitespace from the secrets before uploading
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. Thanks!
60d3942
to
368200f
Compare
…T request Matching Wrangler legacy behavior with handling inputs resolves #993
368200f
to
a05478f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Added
trimTrailingWhitespace()
to secretValue being sent in PUT requestMatching Wrangler legacy behavior with handling inputs
resolves #993