This chapter https://github.com/integrallis/stripe_event#configuration reads like if there is a possibility to configure secrets in a multi tenant environment.
However
|
return StripeEvent.signing_secrets if StripeEvent.signing_secret |
and
|
attr_reader :signing_secrets |
pretty much look like a static interface for the secret configuration.
Is such an interface like:
class StripeTenantSigningSecret
def call(params)
StripeAccount.for_tenant(params[:tenant]).pluck :signing_secret
end
end
StripeEvent.signing_secret = StripeTenantSigningSecret.new
a valid user story for the gem?
Otherwise I see no other chance than overwriting the
|
def secrets(payload, signature) |
This chapter https://github.com/integrallis/stripe_event#configuration reads like if there is a possibility to configure secrets in a multi tenant environment.
However
stripe_event/app/controllers/stripe_event/webhook_controller.rb
Line 33 in 9601d96
stripe_event/lib/stripe_event.rb
Line 8 in 9601d96
pretty much look like a static interface for the secret configuration.
Is such an interface like:
a valid user story for the gem?
Otherwise I see no other chance than overwriting the
stripe_event/app/controllers/stripe_event/webhook_controller.rb
Line 32 in 9601d96