-
Notifications
You must be signed in to change notification settings - Fork 20
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 other nextstrain.org-like remotes #333
Changes from all commits
a1cc22d
dc957d5
b4b29d0
aa9795f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,13 +59,23 @@ resources from our ["testing" configuration][], you can configure `nextstrain` | |
with the same, e.g.: | ||
|
||
export NEXTSTRAIN_DOT_ORG=http://localhost:5000 | ||
export NEXTSTRAIN_COGNITO_USER_POOL_ID="$(jq -r .COGNITO_USER_POOL_ID ../nextstrain.org/env/testing/config.json)" | ||
export NEXTSTRAIN_COGNITO_CLI_CLIENT_ID="$(jq -r .OAUTH2_CLI_CLIENT_ID ../nextstrain.org/env/testing/config.json)" | ||
|
||
nextstrain login | ||
nextstrain whoami | ||
nextstrain remote ls groups/test-private | ||
|
||
Most of the times the above is not necessary, however, as you can specify the | ||
local remote explicitly instead of pretending it's nextstrain.org, e.g.: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I interpret this section as saying the following are equivalent:
And that neither will access https://nextstrain.org. Is this correct? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have only a cursory understanding of how the CLI, nextstrain.org server (perhaps localhost) and cognito are interacting here. When we login with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
They're equivalent except for the short code path before Neither will access https://nextstrain.org itself.
No, the CLI still interacts with the OIDC/OAuth2 authorization server (aka the IdP), which in our case is Cognito but in CDC's case is Entra ID (née Azure AD). It obtains the IdP information from the remote, so it doesn't have to be hardcoded. I do have a rough WIP of docs for this interaction to help folks understand, but it's not up yet. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok. At least this way the identity provider configuration has been lifted out of the CLI and into the remote. |
||
|
||
nextstrain remote ls http://localhost:5000/groups/test | ||
|
||
nextstrain login http://localhost:5000 | ||
nextstrain whoami http://localhost:5000 | ||
nextstrain remote ls http://localhost:5000/groups/test-private | ||
|
||
Setting `NEXTSTRAIN_DOT_ORG` is mostly useful when testing the default-remote | ||
code paths themselves. | ||
|
||
## Releasing | ||
|
||
New releases are made frequently and tagged in git using a [_signed_ tag][]. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the use case for being logged into multiple remotes simultaneously?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CDC will be running a Nextstrain Groups Server internally but also has Groups on nextstrain.org they use, so they'll be accessing two remotes: nextstrain.org and nextstrain.biotech.cdc.gov.
And other organizations have also expressed interest in having a Groups server they can use internally while still maintaining public Groups on nextstrain.org.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For development, it's also useful to be able to be manipulate authn with localhost:5000 without disrupting your normal nextstrain.org authn status.