lucymhdavies / vault-plugin-monzo

Mozilla Public License 2.0
0 stars 0 forks source link

Spike: How do we want the API Proxy to work? #1

Open lucymhdavies opened 8 months ago

lucymhdavies commented 8 months ago

Initial thoughts: have it proxy the Monzo API directly without much validation on our end.

Thinking we just have a /proxy/* handler, which proxying the API, but returning the results in Vault Secret format.

Thinking we could also have a /proxy/raw/* handler, again proxying the API, but returning the results directly. We'd still have auth handled via X-Vault-Token headers (or Authorization: Bearer if you like). This could allow for existing Monzo API clients to talk directly to the Vault plugin without changes... but might not work.