Skip to content

optional redis storage backend so multiple instances can share state#1377

Open
Mzack9999 wants to merge 2 commits into
devfrom
1267-redis-storage
Open

optional redis storage backend so multiple instances can share state#1377
Mzack9999 wants to merge 2 commits into
devfrom
1267-redis-storage

Conversation

@Mzack9999
Copy link
Copy Markdown
Member

For #1267. Lets you run multiple interactsh-server instances behind a load balancer sharing one Redis. Pass --redis-url (and optionally --redis-prefix) to enable; everything else stays exactly as it is today, the existing in-memory/LevelDB path is left alone.

The new backend plugs into the same storage.Storage interface, uses hash-tagged keys so it also works on Redis Cluster, and runs the per-consumer read/evict/trim ops as atomic Lua scripts. TTL respects the existing sliding/fixed eviction strategies.

Tested with miniredis-based unit tests, an opt-in integration suite against a real Redis, and a two-instance smoke harness under deploy/redis-test/ that registers via pkg/client on instance A, fires an HTTP hit at B, and confirms it polls back from A.

ACME certs and per-instance metrics still live on each box, that's a separate problem.

Closes #1267

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 21, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 28624191-172d-494a-a9ba-087c0df30165

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch 1267-redis-storage

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Mzack9999 Mzack9999 self-assigned this May 21, 2026
@Mzack9999 Mzack9999 added the Type: Enhancement Most issues will probably ask for additions or changes. label May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Enhancement Most issues will probably ask for additions or changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add optional Redis backend for load-balanced multi-instance Interactsh deployments

1 participant