Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
build(wasm): strip home dir from wasm via make build
bernie-g964aba39c48d
diff --git a/frontend/src/lib/ironrdp-decoder/infisical_rdp_decoder_bg.wasm b/frontend/src/lib/ironrdp-decoder/infisical_rdp_decoder_bg.wasmindex a81c984196..2e17217021 100644Binary files a/frontend/src/lib/ironrdp-decoder/infisical_rdp_decoder_bg.wasm and b/frontend/src/lib/ironrdp-decoder/infisical_rdp_decoder_bg.wasm differdiff --git a/wasm/ironrdp-decoder/.cargo/config.toml b/wasm/ironrdp-decoder/.cargo/config.tomldeleted file mode 100644index 1196ddb56e..0000000000--- a/wasm/ironrdp-decoder/.cargo/config.toml+++ /dev/null@@ -1,6 +0,0 @@-[build]-rustflags = [- "--remap-path-prefix=/home/=build/",- "--remap-path-prefix=/Users/=build/",- "--remap-path-prefix=C:\\Users\\=build/",-]diff --git a/wasm/ironrdp-decoder/CLAUDE.md b/wasm/ironrdp-decoder/CLAUDE.mdindex 7bb314af05..547d75fdc5 100644--- a/wasm/ironrdp-decoder/CLAUDE.md+++ b/wasm/ironrdp-decoder/CLAUDE.md@@ -8,9 +8,11 @@ After any change to `src/lib.rs` or `Cargo.toml` (including IronRDP version bump```shcd wasm/ironrdp-decoder-wasm-pack build --target web --release --out-dir ../../frontend/src/lib/ironrdp-decoder --out-name infisical_rdp_decoder+make build```+The Makefile injects `--remap-path-prefix=$HOME=build` into `RUSTFLAGS` so the committed `.wasm` doesn't carry your home-directory path (and username). Running raw `wasm-pack build` skips that and leaks the path.+The bindings under `frontend/src/lib/ironrdp-decoder/` are committed so the frontend builds without a Rust toolchain. Skipping the rebuild leaves source and bindings out of sync and the frontend keeps running the old WASM.See [README.md](./README.md) for prerequisites and full context.diff --git a/wasm/ironrdp-decoder/Makefile b/wasm/ironrdp-decoder/Makefilenew file mode 100644index 0000000000..6ca844b2ff--- /dev/null+++ b/wasm/ironrdp-decoder/Makefile@@ -0,0 +1,7 @@+.PHONY: build clean++build:+ RUSTFLAGS="--remap-path-prefix=$$HOME=build" wasm-pack build --target web --release --out-dir ../../frontend/src/lib/ironrdp-decoder --out-name infisical_rdp_decoder++clean:+ cargo cleandiff --git a/wasm/ironrdp-decoder/README.md b/wasm/ironrdp-decoder/README.mdindex d965f6e2e1..199576cf9b 100644--- a/wasm/ironrdp-decoder/README.md+++ b/wasm/ironrdp-decoder/README.md@@ -20,9 +20,11 @@ Build + emit bindings into the frontend:```shcd wasm/ironrdp-decoder-wasm-pack build --target web --release --out-dir ../../frontend/src/lib/ironrdp-decoder --out-name infisical_rdp_decoder+make build```+The Makefile passes `--remap-path-prefix=$HOME=build` so the committed `.wasm` doesn't embed your home directory (which includes your username).+## When to rebuildWhenever `src/lib.rs` or `Cargo.toml` (incl. IronRDP version bumps) changes.