franckverrot / terraform-provider-stripe

A Terraform Provider for Stripe
https://registry.terraform.io/providers/franckverrot/stripe/latest
Mozilla Public License 2.0
242 stars 51 forks source link

Support for creating API keys #36

Closed ajbouh closed 3 years ago

ajbouh commented 4 years ago

I'd like to dynamically provision Stripe API keys for my app that are easy to revoke.

The simplest way to do this seems to be using a master API key with this provider and then using this provider to create per-app API keys.

I see that there's support for client secrets for the Stripe Connect API. Is there a technical reason that API keys are not supported?

franckverrot commented 3 years ago

I can't seem to find anything in the API that talks about this. I'd love to support this though, do you mind sharing where you found this? Thanks!

ajbouh commented 3 years ago

Sorry, I haven't found a way to do this for Stripe API keys in general.

My comment was intended to be more aspirational than it came across.

I was try to ask if you knew why it was so hard to do this kind of thing programmatically.

franckverrot commented 3 years ago

Oh I see, I agree it’d be great (I’d even create a Vault plugin for this haha). So no I don’t think it’s hard, it’s just not supported by the API :-)