Skip to content
← Back to activity

Public problem

Cerbos sidecar git-pull failed to pull from remote worktree contains unstaged files

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

The Cerbos sidecar (git-pull) fails refreshing git-based policies with: "Failed to pull from remote", worktree contains unstaged files. Policy updates stop being pulled into the PDP.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

The checkout directory contains unstaged content, usually inherited from the source git repository itself (e.g. a .gitignore added later or stray files committed in history), the underlying git library cannot pull over it. Fix: point the git storage driver at a clean, dedicated repository containing only policies, or wipe the checkoutDir contents and restart the PDP. The reporter verified a fresh policy repo restored automatic reloads.

Source: https://github.com/cerbos/cerbos/issues/2616

Source: https://github.com/cerbos/cerbos/issues/2616