Skip to content

Reapply "PO-8886 Adding support for managed redis cluster sessions (#… - #357

Closed
iamfrankiemoran wants to merge 1 commit into
mainfrom
feature/PO-8886-managed-redis-for-later
Closed

Reapply "PO-8886 Adding support for managed redis cluster sessions (#…#357
iamfrankiemoran wants to merge 1 commit into
mainfrom
feature/PO-8886-managed-redis-for-later

Conversation

@iamfrankiemoran

Copy link
Copy Markdown
Contributor

…3… (#356)

This reverts commit 56fc016.

Jira link

  • N/A

Change description

  • N/A

Testing done

  • N/A

Security Vulnerability Assessment

CVE Suppression: Are there any CVEs present in the codebase (either newly introduced or pre-existing) that are being intentionally suppressed or ignored by this commit?

  • Yes
  • No

Checklist

  • commit messages are meaningful and follow good commit message guidelines
  • README and other documentation has been updated / added (if needed)
  • tests have been updated / new tests has been added (if needed)
  • Does this PR introduce a breaking change

@sonarqubecloud

Copy link
Copy Markdown

@louisbriggs louisbriggs left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Potential issue for existing consumers.

domain!: string;
redisEnabled!: boolean;
redisConnectionString!: string;
redisClusterEnabled!: boolean;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[P0]: Build and API Integrity
Problem: redisClusterEnabled is added as a required property on the exported SessionStorageConfiguration type.
Why: Existing consumers that construct this config without the new field will fail TypeScript compilation, even though enableFor already treats a missing value as standalone Redis via sessionStorage.redisClusterEnabled === true. That makes this a breaking API change without a version bump or breaking-change migration note.
Fix: Make the field optional, or provide a default-compatible shape, for example redisClusterEnabled?: boolean;.

const redisUrl = new URL(connectionString);
logger.info('Using Redis session store', `${redisUrl.protocol}//${redisUrl.host}`);
const client = createClient({
private getReconnectStrategy() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Add method docs.

@iamfrankiemoran iamfrankiemoran added the wontfix This will not be worked on label Jul 24, 2026

@iamfrankiemoran iamfrankiemoran left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Looks like this change isn't actually needed:
hmcts/opal-frontend#2877

@iamfrankiemoran

Copy link
Copy Markdown
Contributor Author

@marcmollins confirmed we have managed to do managed redis without this pull request so closing off

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DO NOT MERGE wontfix This will not be worked on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants