airbyte icon indicating copy to clipboard operation
airbyte copied to clipboard

Source Stripe: requires excess permissions on the API key

Open satyanash opened this issue 2 years ago • 1 comments

Connector Name

source-stripe

Connector Version

3.17.4

What step the error happened?

Configuring a new connector

Revelant information

The stripe source requires an "account_id" which should not be needed for actually making the API calls. The currently implemented validation flow for the Stripe source needs an account_id as seen here.

The problem is that the ability to fetch an account requires a separate permission (as shown in the logs below), without which a restricted API key can still be valid and functional for most streams in Airbyte. Therefore this validation requires excessive permissions and may still not give a full picture because any of the streams may not work depending on what granular permissions have been granted on the restricted Stripe API key.

Ideally, the connector setup should only expect an API key and assume that it works, since there is no known Stripe API that can return a successful response for all possible keys. A workaround for now, is to directly use the AirByte API (intead of the UI) to setup the source, because this validation step is not performed in that flow.

Relevant log output

"The provided key 'rk_live_***************************************************************************************************' does not have the required permissions for this endpoint on account 'acct_****************'.
Having the 'rak_accounts_kyc_id_numbers_read' permission would allow this request to continue."

Contribute

  • [ ] Yes, I want to contribute

satyanash avatar Sep 01 '23 05:09 satyanash

This issue persists in Source Stripe v4.1.0

satyanash avatar Sep 15 '23 05:09 satyanash