Repository navigation
Conversation
…n-loopback hosts A configured URL that receives a first-party credential should be https, or plain http to a loopback host. agent-device 0.21.x warns on stderr, once per origin, for any other URL; 0.22 will refuse with reason insecure_credential_transport. Nothing breaks in this release. Checked destinations: the remote daemon URL, the cloud URL (including the stored issuer on refresh), the Metro bridge URL, and the @agent-device/proxy upstream URL with its default transport. A direct-upload ticket that fails the rule is dropped unsent and the upload takes the legacy route. AGENT_DEVICE_ALLOW_INSECURE_TRANSPORT=1 in the sending process's environment allows plain http. @agent-device/proxy reads it from the new `env` option. The daemon resolution and Revyl loopback classifiers now share one owner. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… digests Two new contracts exports, and acks for the upload preflight declarations that now judge a ticket URL locally. No request or response shape changes. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
Size Report
Startup median (7 runs, lower is better):
|
`createDaemonProxy` takes no environment option. The `agent-device proxy` upstream is the local daemon on loopback, and an embedder with another plain http upstream supplies `upstreamFetch` or uses https. The warning names those fixes instead of an environment variable the proxy does not read. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Review completed against the latest diff
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
Login judges the URL it reads, and a refresh judges the stored issuer, before either sends. This keeps auth-session.ts within the file line cap. The ticket tests now assert that no request opens to the ticket host, and the Metro test asserts the bearer it is judging. The docs limit the loopback claim to the daemon and proxy listeners, and the CLI help says which process reads the override. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Re-exporting it from an existing subpath would load the rule eagerly in every importer: 43 entry closures grow through diagnostics, 9 through transport. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Apex Sentinel · ✅ Approve · review of
|
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
First-party credentials belong on
https:, orhttp:to loopback. For other URLs, 0.21.x warns on stderr once per origin; 0.22 will refuse (insecure_credential_transport; one function flips). ADR: #5178.Covers daemon, cloud (including refresh), Metro bridge, and default-transport proxy URLs. Insecure upload tickets are dropped unsent for the legacy upload. Daemon and Revyl share one loopback classifier.
Breaking: none on
main. In 0.22, non-loopbackhttp://setups need encryption orAGENT_DEVICE_ALLOW_INSECURE_TRANSPORT=1. The proxy package has no override: use https, a loopback upstream, orupstreamFetch.auth-session.tsis at the line cap.host-kitsubpath: reusing an existing one grows 9–43 startup closures.Before / after
Remote daemon at a plain-HTTP, non-loopback URL. Before: token sent silently. After:
Validation
At
5537b6e014: nine changed test files (69 tests) andpackage-boundaries.test.tspassed; a scratch closure measurement found no growth. Ticket tests fail without the guard. Lint, typecheck, and other gates are left to CI. No live run.Security
1, from the sending process's host environment; profiles, tickets and requests cannot set it.🤖 Generated with Claude Code