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

Support multiple Firebase instances #251

Closed
Tracked by #249 ...
DavidM-D opened this issue Aug 9, 2023 · 1 comment · Fixed by #264
Closed
Tracked by #249 ...

Support multiple Firebase instances #251

DavidM-D opened this issue Aug 9, 2023 · 1 comment · Fixed by #264
Assignees

Comments

@DavidM-D
Copy link
Contributor

DavidM-D commented Aug 9, 2023

Right now we select a users key using the pure(ish) function ID Token => Key. We need to allow multiple Firebase instances, but we don't want one Firebase instance to be able to hijack the keys of another instance.

Therefore we need to change the key selection function to (Firebase ID, ID Token) => Key, while preserving the keys of existing near.org users.

We also need to be able to have, on the leader node, a configurable list of accepted Firebase IDs.

@volovyks
Copy link
Collaborator

Planned design

  • YAML/TOML config in the repo (empty)
  • Values in Secret Manager
  • Vector of partners (aud, relayer_url, api_key) in that config, configurable in GCP
  • We can get partner from OIDC Id Token

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 a pull request may close this issue.

3 participants