Skip to content

fix/hub-failed-error-messages - #340

Merged
cedricve merged 4 commits into
masterfrom
fix/hub-failed-error-messages
Oct 10, 2026
Merged

cedricve merged 4 commits into
masterfrom
fix/hub-failed-error-messages

Conversation

@cedricve

Copy link
Copy Markdown
Member

Check upload authorization without uploading a test video. Guard against missing S3 configuration, strip credentials on cross-host redirects, and clarify rejection errors. Add coverage for HEAD requests and status-specific messages.

Check upload authorization without uploading a test video. Guard against missing S3 configuration, strip credentials on cross-host redirects, and clarify rejection errors. Add coverage for HEAD requests and status-specific messages.
Copilot AI balanced review requested due to automatic review settings October 10, 2026 15:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Cross-host credential stripping lacks security-focused integration coverage.

1 open finding
What changed in this PR

Replaces test-video uploads with authorization-only HEAD requests and improves Hub failure handling.

Changes:

  • Adds safe S3 configuration validation and redirect credential stripping.
  • Adds status-specific rejection messages.
  • Tests HEAD authorization and error messaging.
File Description
machinery/​src/​cloud/​cloud.go Updates Hub persistence verification and errors.
machinery/​src/​cloud/​cloud_test.go Adds HEAD and status-message tests.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread machinery/src/cloud/cloud_test.go
Require Hub and persistence verification URIs to match the saved configuration and reject redirects to prevent credential leakage. Add regression tests for unsaved URIs and cross-host redirects.
Use port 8082 for UI development endpoints, VS Code debugging, and devcontainer forwarding. Allow overriding the UI API port with REACT_APP_AGENT_API_PORT and document the matching backend setup.
@cedricve
cedricve merged commit 949762c into master Oct 10, 2026
11 checks passed
@cedricve
cedricve deleted the fix/hub-failed-error-messages branch October 10, 2026 16:47
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