edisoncks/dsh-cookie-renew

Renews the DSH web GUI's browser-session cookie while you use it, so a daily-used browser stops hitting the absolute 30-day expiry.

DSH mints its dsh-auth-* cookie once, during the ?token= exchange at GET /, with an absolute expiry that defaults to 30 days, and nothing refreshes it afterwards — so even a browser used every single day has to reopen the tokenised startup URL once that lifetime elapses. This host plugin listens on the Connection request waterfall that wraps every authenticated /api request after admission, and when the cookie's remaining lifetime drops below its configured fraction it re-runs the token exchange and attaches the fresh cookie to the live response. The listener always calls through, so ordinary API traffic is untouched. The practical effect is that a long-running browser session stops expiring mid-work without you keeping the startup URL around.

Infrastructure & Deployment ★ 0
View on GitHub ↗

Install

dsh plugin --profile web add github:edisoncks/dsh-cookie-renew#v1.0.0

Installs from a pinned tag, as the README documents. Host-side only, with one runtime dependency (@deepseek-ai/schemastery) and Node >= 20. Because the plugin changes how a security credential behaves, read the README's caveats section before installing: it turns an absolute 30-day credential into a renewable one, which is the intended effect and also the trade-off.

Compatibility

Requires a Harness build with the Connection connection/request waterfall, and Node 20+. It never reads the signing secret and never signs a cookie itself — it re-runs DSH's own token exchange and attaches the resulting Set-Cookie to the live response, so the cookie remains issued and signed by the host. The renewal threshold is a fraction of total lifetime, configurable; connection.cookieMaxAgeDays still governs the absolute lifetime DSH mints.

Details

Alternatives

ownduck/dsh-custom-env · dshapp/dsh-mobile-bridge · nishuoyang/dsh-workbench-ecs

More plugins in Infrastructure & Deployment

Browse more in Infrastructure & Deployment

Guides for Infrastructure & Deployment plugins