Files
craft-ai-integrations/docs
Jeremy f7229caf41 fix(ai-core): ask before sending a key over plain http to a server on this computer (#192)
* test(ai-native): read access lists in-process in the Windows tests

The owner-only tests read each file's access list back with PowerShell's
Get-Acl. That call failed for every test on the windows-latest CI runner
after #184 merged, while the library code itself was not involved. The
tests now read the owner and list with GetNamedSecurityInfoW, through a
test-only helper in the named unsafe module, and the owner parser no
longer assumes a group section.

* test(ai-native): accept the LA alias for the built-in Administrator

CI runners use the machine's built-in Administrator account (RID 500),
which SDDL writes as LA instead of its full SID. The owner-only tests
compared against the full SID and failed on windows-latest; the files
themselves were correct.

* fix(ai-core): ask before sending a key over plain http to a server on this computer

A connection to a server on this computer is local, so it needed no consent.
But over plain http the key, prompt and pictures go to whichever program
holds that port first, and on a computer shared by several accounts that can
be another person's program. Checking who owns the listening socket needs
platform calls this library cannot make without unsafe code.

Disclosure::for_request now marks a request remote when its connection has a
key and a plain-http address, so the existing consent path asks once for
that app, address and capability before the key is read or anything is
sent. Over https, or with no key, a server on this computer still needs no
consent. Data-described services with a local base and a key are covered the
same way.

* fix(ai-core): say on the consent screen that the saved key goes too, and why

Raising the locality made the prompt appear but it listed only the request's
data. Disclosure gains key_in_clear (never the key), and disclosure_lines adds
a plain line saying the saved key is sent unencrypted to whichever program
uses that address, which on a shared computer may be someone else's.
2026-11-14 23:32:30 +00:00
..