Repository navigation
Refuse agent file URLs on a cluster service name, and say why - #30
Merged
Merged
Conversation
The notice already uses that id, and the unit check requires the matching const.
A cached restore layer leaves the package mount empty on the next job, so publish --no-restore cannot find Agoda.Analyzers.
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
Fixes #28.
Behind a gateway, with
base_urlblank, ShipLean publishedupload_url,download_urlandopen_urlon the in-cluster service name and did not say why. When that host is still*.svc:X-Forwarded-Host, the peer is not inSHIPLEAN_TRUSTED_PROXIES, or the forwarded host is itself*.svc)./healthreportspublicOriginasunknown: set base_url, and the instance settings General tab says the same.attach_filewithoutbase64, and aread_attachmentdownload URL, fail instead of returning a URL a laptop cannot open. The upload error tells the agent to sendbase64.open_urlstill uses that host untilbase_urlis set.docs/mcp.mdanddocs/auth.mdsay how to setbase_url, or to trust the gateway and sendX-Forwarded-HostandX-Forwarded-Proto.Test plan
RequestOriginTestsandPublicOriginTests: untrusted peer, missing header, forwarded*.svchost, and one warning.AttachUploadHostTestsandAttachDownloadTests: dialed host*.svcrefuses the file URL, mints no token, and/healthshowspublicOrigin.HealthTestsstill pass. Instance settings component test shows the notice whenpublicOriginis unknown.base_urlblank, confirm the warning, the health flag, and thatattach_filewithoutbase64namesbase_url. Settingbase_urlclears the flag (agents reconnect).