# Roadmap

Where the project stands and what is needed for each next stage. Ideas and help are welcome: open an issue
before starting on a larger item.

## Where we are: 0.1, public alpha

Works end to end and is tested against kvrocks 2.17 (standalone and cluster) in CI. Good for local use and
trusted internal networks. Not yet meant to be exposed to the internet or used by many people at once.

## Stage 1: community project (0.2 – 0.x)

Goal: others can install it easily, report problems and contribute with confidence.

- [x] MIT license, NOTICE, security policy, contributing guide, code of conduct, issue and PR templates
- [x] CI: lint, build, smoke and cluster tests, Docker image build
- [x] Versioned releases with a changelog; image on GHCR
- [ ] Unit tests for the server logic that has no UI: key pattern grouping (`keyStats.mjs`), the read-only rules
      and command allow-list (`index.mjs`), the codec
- [ ] Browser end-to-end tests (Playwright) for the main flows: connect, browse, edit a key, stats, queries
- [ ] Test the upstream features not yet checked in browser mode: SSH tunnels, TLS, Sentinel, protobuf/msgpack
      viewers, import/export
- [ ] Clear the 46 lint warnings inherited from upstream, then make warnings fail CI
- [ ] More presets (e.g. common queue, cache or session layouts) and docs on writing one
- [x] OpenSSF Scorecard workflow and badge; branch protection on `main` (CI required, no force-push)
- [x] "good first issue" issues and an [architecture overview](docs/ARCHITECTURE.md) for new contributors
- [ ] OpenSSF Best Practices badge (passing) — questionnaire at bestpractices.dev
- [ ] Pin all GitHub Actions by commit (Scorecard does this for its own workflow already)

## Stage 2: modern UI stack (Vue 2 → Vue 3)

The UI is ARDM's Vue 2 code. Vue 2 reached end of life on 31 December 2023 (no more security fixes), and the build
uses webpack 4, which needs Node's legacy OpenSSL provider. This is the main long-term risk.

Options, from smallest to largest:

1. **Vue 2.7 + Vite**: replace webpack 4 with Vite and move to Vue 2.7 (the final 2.x, with the Composition API).
   Removes the OpenSSL workaround and most build-tool audit warnings; Vue 2 itself stays end of life.
   Small to medium effort; a good first step either way.
2. **Vue 3 + Element Plus**: the real fix. Element UI → Element Plus (renamed components and props), vue-i18n 9,
   vxe-table 4, vue-easy-tree replacement, event bus → mitt, filters and `$set` removed. The `@vue/compat` build
   allows migrating component by component. Large effort (roughly a rewrite of 90 components' wiring).
3. **Commercial extended support** for Vue 2 (e.g. HeroDevs NES) if the project is used where an unsupported
   framework is not acceptable but a migration is not yet possible.

Upstream ARDM also uses Vue 2; following its own migration, if it happens, may save work.

## Stage 3: production version (1.0)

Goal: safe to run as a shared service for a team, exposed beyond localhost.

**Security**
- Real authentication: OIDC/SSO (or delegate to a reverse proxy such as oauth2-proxy) instead of one shared
  password; users and roles (read-only vs admin)
- Connections defined on the server per role, so passwords are not kept in each browser's localStorage
- Audit log of write and admin commands (who, when, which connection, which command)
- HTTPS guidance (reverse proxy) and secure headers (CSP, HSTS, frame-ancestors)
- Rate limiting and request size limits on the WebSocket; idle connection timeouts
- Independent security review against the OWASP ASVS (level 2)

**Reliability and operations**
- Structured logs, Prometheus metrics, readiness/liveness endpoints
- Configuration file (YAML) in addition to environment variables
- Tested limits: large keyspaces (millions of keys), big values, many concurrent users; a sampling mode for
  Key statistics instead of a full scan
- Graceful shutdown and reconnect handling
- Upgrade the server stack (Express 5) and keep dependencies current (automated, with tests)

**Supply chain**
- SBOM and signed images (cosign), build provenance (SLSA level 2+)
- Pinned GitHub Actions by commit, dependency review on pull requests

**Docs**
- Deployment guide (Docker, Kubernetes/Helm chart), upgrade notes, backup of saved settings
- Versioned documentation site

## Not planned

- Electron desktop builds (upstream ARDM already provides them)
- Shipping real vulnerability data in the repository (the demo fetches it at seed time)
