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

Remove relay-metadata security schemes, expose the values in processing steps #1799

Open
bbenligiray opened this issue Jun 6, 2023 · 0 comments

Comments

@bbenligiray
Copy link
Member

bbenligiray commented Jun 6, 2023

We have some security schemes named relay... that forwards RRP request metadata to the API for it to implement custom authentication schemes https://docs.api3.org/reference/airnode/latest/concepts/relay-meta-auth.html

  • These clutter OIS with very protocol version-specific stuff
  • It's not clear to handle how they behave if the request is does not belong to RRP. For example, it would be nice to be able to signal to the API that the request is coming from a call to the OEV gateway and not an RRP request.

Instead, we could just expose a metadata object that has all the required information to processing steps (similar to endpointParameters in #1673 (comment)) and expect the integrator to do what they need in preprocessing. After doing this, we can remove all metadata security schemes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant