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

feat: add request metadata to channel #208

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

horsefacts
Copy link
Collaborator

@horsefacts horsefacts commented Aug 20, 2024

Motivation

To defend against “QR-jacking” attacks, pass the user agent and origin IP of the application opening the channel through the relay. Wallet clients can display this along with the sign in request, e.g. “requested from Chrome browser (Brooklyn, NY)” or similar.

Change Summary

Add metadata.ip and metadata.userAgent to relay session body.

Merge Checklist

Choose all relevant options below by adding an x now or at any time before submitting for review

  • PR title adheres to the conventional commits standard
  • PR has a changeset
  • PR has been tagged with a change label(s) (i.e. documentation, feature, bugfix, or chore)
  • PR includes documentation if necessary
  • All commits have been signed

@horsefacts horsefacts force-pushed the horsefacts/add-user-agent-origin-ip branch from 53c46a1 to c63ba11 Compare August 20, 2024 19:32
@horsefacts horsefacts force-pushed the horsefacts/add-user-agent-origin-ip branch from c63ba11 to 2b20755 Compare August 20, 2024 19:34
@horsefacts horsefacts merged commit 92b841c into main Aug 20, 2024
3 checks passed
@horsefacts horsefacts deleted the horsefacts/add-user-agent-origin-ip branch August 20, 2024 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant