Skip to content
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

Validate backend <> account provider requests #626

Closed
wilsonianb opened this issue Sep 21, 2022 · 4 comments
Closed

Validate backend <> account provider requests #626

wilsonianb opened this issue Sep 21, 2022 · 4 comments
Assignees
Labels
pkg: backend Changes in the backend package. type: enhancement New feature or request
Milestone

Comments

@wilsonianb
Copy link
Contributor

wilsonianb commented Sep 21, 2022

Write OpenAPI spec for quote request, prices request, and webhook events, to allow the backend and account provider to validate requests and responses.

See: integration docs

Graphql already handles admin api validation.

@wilsonianb wilsonianb added the pkg: backend Changes in the backend package. label Sep 21, 2022
@wilsonianb
Copy link
Contributor Author

@sabineschaller
Copy link
Member

Webhooks spec was added with

@sabineschaller
Copy link
Member

Prices (exchange rates) request responses are already validated:

https://github.com/interledger/rafiki/blob/main/packages/backend/src/rates/service.ts#L115

@mkurapov mkurapov added this to Rafiki Jun 21, 2023
@mkurapov mkurapov moved this to Backlog in Rafiki Jun 21, 2023
@mkurapov
Copy link
Contributor

mkurapov commented Mar 4, 2024

  • Quote route no longer exists
  • We have a webhook OpenAPI spec, but no need to validate the request itself
  • We validate rate response in route

@mkurapov mkurapov closed this as completed Mar 4, 2024
@github-project-automation github-project-automation bot moved this from Backlog to Done in Rafiki Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: backend Changes in the backend package. type: enhancement New feature or request
Projects
Archived in project
Status: No status
Development

No branches or pull requests

3 participants