-
Notifications
You must be signed in to change notification settings - Fork 141
Add Stripe CLI hosting integration #950
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: aaronpowell <[email protected]>
Co-authored-by: aaronpowell <[email protected]>
Co-authored-by: aaronpowell <[email protected]>
7823d96 to
d4abb78
Compare
|
Is there a specific advantage on targeting the locally installed CLI rather than leveraging the existing container? It feels like it's adding a manual step (installation of the CLI) that can be skipped altogether. |
Why not use the container? As with anything Aspire-related, the whole point is that anyone can clone the repo, hit F5, and it just works. |
|
That's a fair point - I was trying to simplify getting the signing code, but it comes at a cost of simplicity. The branch has a rewrite that uses the container version. |
Minimum allowed line rate is |
Implements hosting integration for Stripe CLI to enable local webhook forwarding and testing in Aspire applications.
Changes
Integration (
CommunityToolkit.Aspire.Hosting.Stripe)StripeResource- ExecutableResource wrapping Stripe CLIAddStripe()- Registers Stripe CLI resource (excluded from manifest)WithListen()- Configures webhook forwarding with 3 overloads:WithApiKey()- Accepts direct strings or parameter resourcesWithReference()- Injects webhook signing secret as environment variable (default:STRIPE_WEBHOOK_SECRET)eventsparameterTests
Example
Usage
Webhook signing secret accessible via
IConfiguration["STRIPE_WEBHOOK_SECRET"]in referenced services.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
k4kvsblobprodcus344.vsblob.vsassets.iodotnet build --no-restore(dns block)dotnet restore(dns block)dotnet workload restore(dns block)lylvsblobprodcus31.vsblob.vsassets.iodotnet build(dns block)pc2vsblobprodcus360.vsblob.vsassets.iodotnet build(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.