Skip to content

sensing-server writes data/session-secret to a path that is not gitignored (v2/data/) #1520

Description

@Justin-vcloud

Summary

sensing-server writes its browser session secret to data/session-secret relative to its working directory. .gitignore covers v2/crates/wifi-densepose-sensing-server/data/, but not v2/data/ — which is where the file lands when the server is started from v2/ (including via cargo run -p wifi-densepose-sensing-server and via the desktop app).

Reproduction

$ cd v2
$ cargo run -p wifi-densepose-sensing-server -- --source simulate
...
INFO wifi_densepose_sensing_server::browser_session: browser session secret: loaded path=data\session-secret

$ git status --porcelain
?? v2/data/session-secret

$ git check-ignore -v v2/data/session-secret
$ echo $?
1        # not ignored

The file is 43 bytes and untracked-but-not-ignored, so git add -A stages a credential.

This runs against the project's own rule in CLAUDE.md:

Never commit credentials, .env files, raw agent transcripts, private memory overlays, CSI/person data, or unreviewed generated artifacts.

Suggested fix

Add to .gitignore:

v2/data/

Or make the secret path independent of the working directory (resolve it relative to a known data dir rather than ./data), which would also stop stray data/ trees appearing wherever the binary is launched from.

Related, possibly worth a separate look

On startup the server logs:

WARN ADR-262 P3: WDP_RUFIELD_SIGNING_SEED unset/invalid — RuField surface using the
DETERMINISTIC DEV signing key. This is a dev/sensing key pending the ADR-262 §8 Q1 (P2)
key-ownership decision; set WDP_RUFIELD_SIGNING_SEED for a real deployment.

The warning is clear and loud, which is good — but it proceeds with a known deterministic signing key rather than refusing. For a signing/attestation surface, failing closed may be the safer default.

Environment: Windows 11, Rust 1.97.1, 5780c239.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsecuritySecurity-related issues and hardening

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions