-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Use new stripe secret in preview environments #10563
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
Use new stripe secret in preview environments #10563
Conversation
/hold |
Cool, many thanks @andrew-farries! I want to try something: /werft run github -j .werft/build.yaml -a with-payment=true -a updateGitHubStatus=gitpod-io/gitpod -f 👍 started the job as gitpod-build-af-use-stripe-secret-in-preview.2 |
Well that didn't work. I also tried running https://werft.gitpod-dev.com/job/gitpod-custom-af-use-stripe-secret-in-preview.1/raw
Did I do something wrong? |
Does it work from a clean slate deployment? |
Maybe the
Should be a gitpod/.werft/jobs/build/installer/installer.ts Lines 157 to 162 in 4b1b513
|
Looks like the |
23346d1
to
4b1b513
Compare
97c6a59
to
6248fa1
Compare
ba0dfbe
to
5fad09b
Compare
This should be working now @jankeromnes. Could you try again? |
Many thanks! Will give this another go. By the way, the test instructions I tried in #10563 (comment) are still current, right? |
Yes, if you run those same instructions again, I think the secret will apply properly this time. |
Many thanks! 🙏 Okay, I tried again, and here is how far I got this time: Build worked ✅ https://werft.gitpod-dev.com/job/gitpod-custom-af-use-stripe-secret-in-preview.4 The preview deployment seems to work ✅ https://af-use-strfbd5d8d72f.preview.gitpod-dev.com/workspaces However, testing the Stripe integration didn't work:
Checking on the
Maybe there is something that needs to be adjusted so that the |
9f273fe
to
e38b5b0
Compare
e38b5b0
to
0ecee11
Compare
6248fa1
to
c64d341
Compare
0ecee11
to
f18d132
Compare
f18d132
to
fa85053
Compare
This now comes into clusters via GCP Secret Manager and terraform.
fa85053
to
3deb771
Compare
/werft run 👍 started the job as gitpod-build-af-use-stripe-secret-in-preview.14 |
@jankeromnes This should be resolved now. The problem was the key in the secret data had changed from I've run through the steps in your comment and I can get to the payment UI. |
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.
Awesome, many thanks @andrew-farries!
Code looks good and works as advertised. ✅
Feel free to merge when you want, but I believe one line could still be removed in this PR. 🧹
/hold
StripeSettingsFile string `json:"stripeSettingsFile"` | ||
StripeSecretsFile string `json:"stripeSecretsFile"` |
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.
Shouldn't the line above be removed?
StripeSettingsFile string `json:"stripeSettingsFile"` | |
StripeSecretsFile string `json:"stripeSecretsFile"` | |
StripeSecretsFile string `json:"stripeSecretsFile"` |
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.
Yes, I think you are right. It will probably come back again in another PR but let's remove it for now.
/unhold |
Description
Following on from #10552 which added the
stripe-api-keys
secret to preview environment clusters, this PR makes theserver
component use the secret and removes the oldstripe-config
secret from the repo.Related Issue(s)
Part of #9036 and https://github.com/gitpod-io/ops/issues/2554
How to test
Manually trigger a werft job for this branch (Notion doc), setting
with-payment=true
.Check that
server
is in a running state in the preview environment cluster and that it has successfully mounted thestripe-api-keys
secret:Release Notes