Файли
openidea/src-tauri
l0ng-ai cd7582c5e5 fix(plugins): keep plugin secrets in the OS credential store on Windows and Linux (#6240)
Part of #6142.

Plugin secrets (`secrets` grant) were stored in plain text in `plugin-secrets.json` everywhere except macOS, where the keychain was already used.

- New `CredentialSecretStore` in `ide-host`: stores each secret in the OS credential store (`ide_ssh::secrets::SecretFile`, the same store as SSH and database passwords) under `<plugin>/<name>`.
- Values still in the old file are read as a fallback and removed from it on the next write or delete.
- Without a usable credential store (e.g. headless Linux with no secret service) it keeps using the file and logs a warning.
- `src-tauri` switches to it on non-macOS platforms.

Tests: `cargo test -p ide-host --lib secret`, clippy on `ide-host` and `openidea`. Not run on a real Windows/Linux machine.

No Windows/Linux runner was available; the platform switch is one cfg line in src-tauri, the store itself is covered by tests on every platform.
2026-11-27 04:13:26 +08:00
..
2026-10-22 18:55:10 +08:00
2026-11-26 08:16:53 +08:00