-
Notifications
You must be signed in to change notification settings - Fork 758
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
SQC-352 SQC-353 Create cert upload command for client side mtls certificate/CA chain certificates #7466
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: c396657 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 |
hi @Ltadrian :) we recently introduced a new |
15327ba
to
03af501
Compare
this has been updated now, thank you 😄 |
e3d8b3d
to
4450a1b
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.devprod.cloudflare.dev/workers-sdk/runs/12800697590/npm-package-wrangler-7466 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/7466/npm-package-wrangler-7466 Or you can use npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12800697590/npm-package-wrangler-7466 dev path/to/script.js Additional artifacts:cloudflare-workers-bindings-extension: wget https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12800697590/npm-package-cloudflare-workers-bindings-extension-7466 -O ./cloudflare-workers-bindings-extension.0.0.0-vdf2e07461.vsix && code --install-extension ./cloudflare-workers-bindings-extension.0.0.0-vdf2e07461.vsix create-cloudflare: npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12800697590/npm-package-create-cloudflare-7466 --no-auto-update @cloudflare/kv-asset-handler: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12800697590/npm-package-cloudflare-kv-asset-handler-7466 miniflare: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12800697590/npm-package-miniflare-7466 @cloudflare/pages-shared: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12800697590/npm-package-cloudflare-pages-shared-7466 @cloudflare/unenv-preset: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12800697590/npm-package-cloudflare-unenv-preset-7466 @cloudflare/vitest-pool-workers: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12800697590/npm-package-cloudflare-vitest-pool-workers-7466 @cloudflare/workers-editor-shared: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12800697590/npm-package-cloudflare-workers-editor-shared-7466 @cloudflare/workers-shared: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12800697590/npm-package-cloudflare-workers-shared-7466 @cloudflare/workflows-shared: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12800697590/npm-package-cloudflare-workflows-shared-7466 Note that these links will no longer work once the GitHub Actions artifact expires.
Please ensure constraints are pinned, and |
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.
would also be great to add some e2e tests :)
typeof certs === "undefined" | ||
? [ | ||
{ | ||
id: "1234", | ||
name: "cert one", | ||
certificates: "BEGIN CERTIFICATE...", | ||
issuer: "example.com...", | ||
uploaded_on: now.toISOString(), | ||
expires_on: oneYearLater.toISOString(), | ||
}, | ||
{ | ||
id: "5678", | ||
name: "cert two", | ||
certificates: "BEGIN CERTIFICATE...", | ||
issuer: "example.com...", | ||
uploaded_on: now.toISOString(), | ||
expires_on: oneYearLater.toISOString(), | ||
}, | ||
] | ||
: certs, |
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.
you can do
certs ?? [... whatever you want to return if undefined]
4f0a3b6
to
9356364
Compare
is that required? |
yes, all new commands/features should have some happy-path e2e's before release :) |
9356364
to
44fbd6f
Compare
6b67e53
to
9c7342b
Compare
packages/wrangler/e2e/cert.test.ts
Outdated
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.
is it possible to generate a new cert and key each time? Just concerned about simultaneous CI runs interfering with each other.
Other than that, lgtm :))
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.
this has been updated to generate certs
9c7342b
to
545288b
Compare
545288b
to
0b9120a
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.
Minor observations.
…ficates and ca chain certificates
0b9120a
to
c396657
Compare
Create cert upload command for client side mtls certificate/CA chain certificates
Fixes #[insert GH or internal issue link(s)].
Internal JIRA
SQC-352
SQC-353