Skip to content

Commit c995ac3

Browse files
committed
Generate random JWT key
1 parent c945d71 commit c995ac3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

chart/values.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ branding:
128128
url: https://www.gitpod.io/terms/
129129
workspaceScheduler: workspace-scheduler
130130
serverProxyApiKey: "fF7+aCPvF9Pa0AEjmoZ+yWVh6PqBjM5VEA0wyQs3FH4="
131-
oauthServerJWTSecret: "vUmr2mdLwW_.YFCWwFcR*VaUdE9eiA-CMAQuxxUoDPiQ6GVVJbBqBafp"
132131
previewFeatureFlags: []
133132

134133
components:
@@ -270,7 +269,7 @@ components:
270269
- "server-proxy-apikey-secret.yaml"
271270
- "auth-providers-configmap.yaml"
272271
sessionSecret: Important!Really-Change-This-Key!
273-
oauthServerJWTSecret: "Important!Set-by-deployment-yaml"
272+
oauthServerJWTSecret: {{ randAlphaNum 20) | quote }}
274273
resources:
275274
cpu: "200m"
276275
github:

components/server/src/oauth-server/oauth-authorization-server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class GitpodAuthorizationServer extends AuthorizationServer {
4141
}
4242

4343
export function createAuthorizationServer(authCodeRepository: OAuthAuthCodeRepository, userRepository: OAuthUserRepository, tokenRepository: OAuthTokenRepository, jwtSecret: string): GitpodAuthorizationServer {
44+
log.info(`JWT:${jwtSecret}`)
4445
const authorizationServer = new GitpodAuthorizationServer(
4546
authCodeRepository,
4647
clientRepository,

0 commit comments

Comments
 (0)