Repository navigation
fix(security): enforce credential and filesystem trust boundaries - #861
Merged
Merged
Conversation
Authorize provider tokens against trusted HTTPS origins and carry configured host policy through every Git and download consumer. Reject cross-site remote reads and strip credentials on cross-origin redirects. Refuse linked agent fallback directories and publish discovered agents through rooted atomic writes after audit so repository content cannot redirect installation outside the source.
Grouped skill discovery and tracked-agent updates dropped the explicit CNB/Gitea host policy before authenticating. Preserve it at both boundaries so private updates continue to work without restoring hostname-based credential trust. Add local authenticated Git regressions for both providers that verify published content and tracked revision advancement.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
The private transport fixture replaces global Git configuration after the tracked checkout is cloned. A Windows autocrlf default can leave CRLF bytes that become dirty once the fixture switches configuration, so the update is skipped before authentication. Pin autocrlf on the test checkout itself. The same regression fails under a CRLF default before this change and passes afterward without weakening content or revision assertions.
runkids
added a commit
that referenced
this pull request
Nov 11, 2026
Point every README release notice at check --exit-code and check --all, the headline CI changes in 0.30.6, and credit tomerzcod7 (#852) and ErykJakubik (#858), whose reports led to the git hook and project config fixes. The security change in #861 added its provider-token paragraph twice to the install command page in all five locales; keep one copy. The website builds for all five locales and context validation passes.
runkids
added a commit
that referenced
this pull request
Nov 11, 2026
The generated entry listed commit subjects only. Describe each change by what users see, add CI examples for check --exit-code, and give a migration note for self-hosted servers, which no longer receive provider tokens after #861.
runkids
added a commit
that referenced
this pull request
Nov 11, 2026
* chore(main): release 0.30.6 * chore(release): synchronize release metadata * docs(changelog): write user-facing notes for 0.30.6 The generated entry listed commit subjects only. Describe each change by what users see, add CI examples for check --exit-code, and give a migration note for self-hosted servers, which no longer receive provider tokens after #861. --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Willie <[email protected]>
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.
Type
Linked Issue
None — fixes the three trust-boundary defects found in the repository security review.
Summary
Update the built-in install reference, all five documentation locales, and the security-boundaries runbook. Preserve the explicitly broad HTTPS
SKILLSHARE_GIT_TOKENfallback.Evidence
After: regressions cover credential lookalikes, scheme/port boundaries, redirects, browser cross-site requests, fallback aliases, destination links, audit rejection, dry runs and followed roots.
After: preserve the policy at both boundaries and verify updated file contents and tracked revision.
make docs-check fmt-check lint, all 138 Herdr tests, and focused security regressions passed. Fullinternal/installandcmd/skillsharesuites also cover the final policy-propagation fixes.19361f5; the subsequent task-owned change only stabilizes the private-Git test fixture.core.autocrlf=true, pinned the fixture checkout configuration, and verified the same test turns green without weakening assertions. Native Windows CI then passed.main(fix(project): keep config.yaml true after reinstall, uninstall and fresh-clone installs #860) because it overlaps the search/update/install consumers. On exact integrated headd8f9f1060f09f9e0d5b131274f09218e5891c943, all eight executed checks passed: quality check, unit tests, Windows tests, Ubuntu/macOS integration, online/offline Docker sandbox, and redteam.redteam-signalwas skipped by the workflow condition. See the final CI run.Merge Danger
Door: two-way
No persisted format migration. Reverting restores the previous security weaknesses.
Blast Radius: authentication
Provider tokens no longer authorize self-hosted services merely because their names resemble a provider. Explicit CNB/Gitea host configuration remains supported; other enterprise hosts should use host-scoped Git credentials or an invocation-scoped generic token. Unsafe linked fallback directories and agent destinations are deliberately rejected.
Not covered
make checkdid not pass in the strict local sandbox: the untouchedinternal/mcp/TestLiveStdioTimeoutKillsProcessGrouphelper exited with a Go deadlock before its expected timeout. No tests were disabled or weakened; CI is tracked separately.Checklist
make check) — targeted checks pass; full local check has the untouched MCP sandbox failure described above