ccsync icon indicating copy to clipboard operation
ccsync copied to clipboard

fix: secure session handling and landing page redirect

Open Vasist10 opened this issue 9 months ago • 4 comments

Description

  • Increase session cookie lifetime to 30 days.

  • Fix secure cookie handling behind ingress using dynamic Secure flag and helper save function.

  • Inject authenticated user credentials into request headers/body using AuthMiddleware so handlers always receive correct user info.

  • Fixes: #417

Checklist

  • [x] Ran npx prettier --write . (for formatting)
  • [x] Ran gofmt -w . (for Go backend)
  • [x] Ran npm test (for JS/TS testing)
  • [ ] Added unit tests, if applicable
  • [x] Verified all tests pass
  • [ ] Updated documentation, if needed

Additional Notes

Vasist10 avatar Feb 08 '26 19:02 Vasist10

Thank you for opening this PR!

Before a maintainer takes a look, it would be really helpful if you could walk through your changes using GitHub's review tools.

Please take a moment to:

  • Check the "Files changed" tab
  • Leave comments on any lines for functions, comments, etc. that are important, non-obvious, or may need attention
  • Clarify decisions you made or areas you might be unsure about and/or any future updates being considered.
  • Finally, submit all the comments!

More information on how to conduct a self review: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/reviewing-proposed-changes-in-a-pull-request

This helps make the review process smoother and gives us a clearer understanding of your thought process.

Once you've added your self-review, we'll continue from our side. Thank you!

github-actions[bot] avatar Feb 08 '26 19:02 github-actions[bot]

@its-me-abhishek The CI failure was in date-time-picker.test.tsx ,the test hardcoded February 2026 as the expected calendar month, so it fails every month that isn't February

image

after fixing this , all the tests pass successfully. should i commit the fix? image

Vasist10 avatar Jun 02 '26 05:06 Vasist10

should i commit the fix?

yes, please do!

its-me-abhishek avatar Jun 05 '26 14:06 its-me-abhishek

should i commit the fix?

yes, please do!

I have updated the code and now all the tests pass

Vasist10 avatar Jun 05 '26 19:06 Vasist10