Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

feat/enterprise-portal: add offline mode that allows all auth tokens#62952

Closed
bobheadxi wants to merge 1 commit into
mainfrom
enterprise-portal-offline-token-instrospector
Closed

feat/enterprise-portal: add offline mode that allows all auth tokens#62952
bobheadxi wants to merge 1 commit into
mainfrom
enterprise-portal-offline-token-instrospector

Conversation

@bobheadxi

@bobheadxi bobheadxi commented May 28, 2024

Copy link
Copy Markdown
Member

For https://github.com/sourcegraph/sourcegraph/pull/62934 we probably want a local dev mode default that is ergonomic and offline for Enterprise Portal, i.e. doesn't need to connect to SAMS-dev, for everyone who works on Cody Gateway, which will now talk to Enterprise Portal instead. This change adds a special SAMS_API_URL=offline mode that allows all tokens locally, with various safeguards against this being used in any live deployment environment.

Test plan

image

[enterprise-...l] DEBUG samsm2m.OfflineTokenInstrospector samsm2m/offline.go:28 IntrospectToken request {"scopes": ["enterprise_portal::codyaccess::read", "enterprise_portal::subscription::read"]}

@bobheadxi bobheadxi requested review from eseliger and unknwon May 28, 2024 20:08
@cla-bot cla-bot Bot added the cla-signed label May 28, 2024
@bobheadxi

Copy link
Copy Markdown
Member Author

Closing in favour of using shared SAMS credentials

@bobheadxi bobheadxi closed this May 28, 2024
@bobheadxi bobheadxi deleted the enterprise-portal-offline-token-instrospector branch May 28, 2024 21:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant