phylum-dev / cli

Command line interface for the Phylum API
https://phylum.io
GNU General Public License v3.0
101 stars 10 forks source link

Consume the new `/.well-known/openid-configuration` redirect endpoint. #373

Closed mathew-horner closed 2 years ago

mathew-horner commented 2 years ago

Overview

I recently implemented a new API endpoint for redirecting to the Keycloak OpenID configuration. We need to update the CLI to consume this instead of using the oidc_discovery_url config value.

Acceptance Criteria

kylewillmon commented 2 years ago

For tracking, this is the API commit that needs to be in prod before we can release a CLI with this feature.

cd-work commented 2 years ago

@kylewillmon Would you suggest waiting for the commit to be in prod before starting this, or feature-gating? I'd imagine the change should be so trivial, it might be more work to add a feature than to just wait.

Also does the old URL still work after this PR, or will the CLI break once that's done?

kylewillmon commented 2 years ago

@kylewillmon Would you suggest waiting for the commit to be in prod before starting this, or feature-gating? I'd imagine the change should be so trivial, it might be more work to add a feature than to just wait.

Waiting makes sense. And we won't be waiting for long. It should be rolled out by Monday.

Also does the old URL still work after this PR, or will the CLI break once that's done?

The old URL will still work. In fact, the "new URL" is just a shortcut (HTTP 301) to the old URL. This allows us to find the OIDC server directly from the API so that we only have to configure 1 URL.