Skip to content

Update security module documentation: XDG paths and correct filenames#47

Merged
yiwang merged 2 commits into
mainfrom
copilot/update-localgpt-comments
Feb 19, 2026
Merged

Update security module documentation: XDG paths and correct filenames#47
yiwang merged 2 commits into
mainfrom
copilot/update-localgpt-comments

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 19, 2026

The localgpt.rs security module documentation referenced outdated paths and filenames.

Changes

  • File Hierarchy: Updated from legacy ~/.localgpt to XDG Base Directory Specification paths (~/.config/localgpt, ~/.local/share/localgpt, ~/.local/state/localgpt, ~/.cache/localgpt)

  • Filenames: Corrected to match actual constants

    • .device_keylocalgpt.device.key
    • .security_audit.jsonllocalgpt.audit.jsonl
  • Quick Start: Fixed build_ending_security_block() call to include required include_suffix parameter

-//! let block = build_ending_security_block(user_policy.as_deref());
+//! let block = build_ending_security_block(user_policy.as_deref(), true);

Documentation now reflects actual implementation in paths.rs, signing.rs, and audit.rs.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • cdn.pyke.io
    • Triggering command: /home/REDACTED/work/localgpt/localgpt/target/debug/build/ort-sys-0cb9c8be1593958c/build-script-main /home/REDACTED/work/localgpt/localgpt/target/debug/build/ort-sys-0cb9c8be1593958c/build-script-main /home/REDACTED/work/localgpt/localgpt/target/debug/build/onig_sys-ef1816382bd16b0d-I /home/REDACTED/work/localgpt/localgpt/target/debug/build/onig_sys-ef1816382bd16b0d/home/REDACTED/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/aws-lc-sys-0.37.1/include /home/REDACTED/work/localgpt/localgpt/target/debug/build/onig_sys-ef1816382bd16b0d-I /home/REDACTED/work/localgpt/localgpt/target/debug/build/onig_sys-ef1816382bd16b0d/home/REDACTED/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/aws-lc-sys-0.37.1/aws-lc/include 7.1/generated-include /home/REDACTED/work/localgpt/localgpt/target/debug/build/onig_sys-ef1816382bd16b0d/home/REDACTED/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/aws-lc-sys-0.37.1/aws-lc/third_party/s2n-bignum/include 7.1/include /home/REDACTED/work/localgpt/localgpt/target/debug/build/onig_sys-ef1816382bd16b0d/home/REDACTED/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/aws-lc-sys-0.37.1/aws-lc/third_party/s2n-bignum/s2n-bignum-imported/include 7.1/aws-lc/include /home/REDACTED/work/localgpt/localgpt/target/debug/build/onig_sys-ef1816382bd16b0d/out/a445302c6d3dcb51-utf16_be.o 7.1/aws-lc/third_party/s2n-bignum/include know�� 7.1/aws-lc/third_party/s2n-bignum/s2n-bignum-imported/include f/aws-lc-sys-0.3-gdwarf-4 7.1/aws-lc/third_party/jitterentropy/jitterentropy-library f/aws-lc-sys-0.3ar /index.crates.iocq f/aws-lc-sys-0.3/home/REDACTED/work/localgpt/localgpt/target/debug/build/onig_sys-ef1816382bd16b0d-g fc/out/caa8b30982b4915c-ocsp_print.o (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: yiwang <142937+yiwang@users.noreply.github.com>
Copilot AI changed the title [WIP] Update comments in localgpt.rs file Update security module documentation: XDG paths and correct filenames Feb 19, 2026
Copilot AI requested a review from yiwang February 19, 2026 06:43
@yiwang yiwang marked this pull request as ready for review February 19, 2026 06:48
@yiwang yiwang merged commit 0373dea into main Feb 19, 2026
5 checks passed
@yiwang yiwang deleted the copilot/update-localgpt-comments branch February 19, 2026 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants