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

fix: handle subscriptions domains & special query keys #411

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

Theodus
Copy link
Member

@Theodus Theodus commented Nov 3, 2023

This makes 2 adjustments to the auth handling of query keys:

  • Subscriptions domains are added to verify that query keys are associated with expected contracts. This avoids situations where, for example, a user with only a subscription on testnet makes queries on mainnet.
  • The contract_owners config option is replaced with special_query_key_signers (which better reflects it's actual use). Query keys signed by special signers do not have their subscriptions domains checked.

@Theodus Theodus requested a review from LNSD November 3, 2023 00:14
@Theodus Theodus merged commit 904d9b0 into main Nov 6, 2023
2 checks passed
@Theodus Theodus deleted the theodus/query-key-domains branch November 6, 2023 16:31
@Theodus Theodus mentioned this pull request Nov 10, 2023
Theodus added a commit that referenced this pull request Dec 18, 2023
This makes 2 adjustments to the auth handling of query keys:
- Subscriptions domains are added to verify that query keys are
associated with expected contracts. This avoids situations where, for
example, a user with only a subscription on testnet makes queries on
mainnet.
- The `contract_owners` config option is replaced with
`special_query_key_signers` (which better reflects it's actual use).
Query keys signed by special signers do not have their subscriptions
domains checked.
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

Successfully merging this pull request may close these issues.

1 participant