mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-29 19:34:29 +01:00
fix(memorable): check every configured origin URL, and confirm a missing store through its ancestors (security review, second pass)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
4a0aaaf8ed
commit
668d6391ae
6 files changed
+69
-28
No files matched your search
@@ -185,8 +185,9 @@ later never silently re-opens recall. When `~/.gstack` also makes the remote
|
||||
read-only (see [state roots](state-root.md)), that store has to opt it in too.
|
||||
A corrupt, empty or unreadable policy store (or a dangling symlink in its
|
||||
place) skips recall for every repo until you fix it; the hook never resets it
|
||||
to "no policy" and never rewrites it. The lookup uses the configured
|
||||
`remote.origin.url`, not the URL after `url.*.insteadOf` rewriting. `gstack-gbrain-repo-policy list` shows
|
||||
to "no policy" and never rewrites it. The lookup checks every configured
|
||||
`remote.origin.url`, not the URL after `url.*.insteadOf` rewriting, and any
|
||||
denied or not-opted-in read-only one skips recall. `gstack-gbrain-repo-policy list` shows
|
||||
opted-in remotes with a `memorable=allow` column. Nothing about gbrain
|
||||
ingest changes: the repo stays `read-only` for `/sync-gbrain` and every
|
||||
other gbrain writer.
|
||||
|
||||
Reference in new issue
Block a user