Skip to content

dashboard side bar and HTTPS_COOKIE changes#1

Closed
Adhish-Krishna wants to merge 3 commits intomasterfrom
development
Closed

dashboard side bar and HTTPS_COOKIE changes#1
Adhish-Krishna wants to merge 3 commits intomasterfrom
development

Conversation

@Adhish-Krishna
Copy link
Member

  • Update dashboard side bar's default scrollbar to use shadcn's scroll-area
  • Update dashboard's setting page to use version number from package.json
  • Included HTTPS_COOKIE in .env to control the storage of session cookies over http and https connections

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 61a27835fa

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

cookieStore.set(SESSION_COOKIE_NAME, token, {
httpOnly: true,
secure: process.env.NODE_ENV === "production",
secure: process.env.HTTPS_COOKIE === "true",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Default session cookies to secure when flag is unset

createSession now sets the cookie secure flag based only on process.env.HTTPS_COOKIE === "true", so any deployment that leaves the new variable unset (as shown in .env.example) will emit non-secure auth cookies even in production; this is a regression from the prior NODE_ENV === "production" default and can expose session tokens whenever the service is reachable via plain HTTP (e.g., proxy misconfig or internal network access).

Useful? React with 👍 / 👎.

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 this pull request may close these issues.

1 participant