Repository navigation
Agent hardening: TLS by default, pairing, per-device tokens - #3
Merged
Merged
Conversation
…s, a health check that ignores dates
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
Makes the agent safe to expose. Until now it was a plain-HTTP proxy behind one shared token.
--insecure-httpkeeps plain HTTP for use behind a proxy, and for the app as it is today.pairshows a QR code, a link and a 12-character code that works once and for five minutes. The phone proves it holds the code, bound to the certificate it sees, and gets its own token. Someone relaying the connection gets nothing.deviceslists them,revokeremoves one and ends its open streams and terminals at once.fingerprint,healthcheckandversioncommands.For people running the earlier agent
The README has a section on what changed. In short: port 8443 with TLS by default (
--insecure-httpfor the old behaviour on 8080),AGENT_TOKENis optional and must be at least 16 characters, and the agent needs a state folder of its own. The Go module is nowgithub.com/retransmit/docker-mobile/agent.The app in this repository does not use the certificate or pairing yet. It keeps working against the agent started with
--insecure-httpand a shared token.Checks
go vet,gofmtandgo test -race ./...on Linux with the stable Go, 16 packagesgovulncheck: no vulnerabilities foundgo test ./...on Windowsflutter test: 639 passing (the app is unchanged)