Skip to content

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

Merged
Mzack9999 merged 4 commits into
devfrom
1267-redis-storage
Jul 15, 2026
Merged

optional redis storage backend so multiple instances can share state#1377
Mzack9999 merged 4 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

coderabbitai Bot commented May 21, 2026

Copy link
Copy Markdown

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: de5dcefe-efd7-4ee8-bf90-9599065d47f6

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.

@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
@Mzack9999
Mzack9999 merged commit da253a9 into dev Jul 15, 2026
9 checks passed
@Mzack9999
Mzack9999 deleted the 1267-redis-storage branch July 15, 2026 14:31
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

2 participants