Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

Tighten cache directory permissions from 0755 to 0750

Martin Vogel1ff4b70b93aa
diff --git a/internal/store/router.go b/internal/store/router.go
index afb140f53..80c30b3cc 100644
--- a/internal/store/router.go
+++ b/internal/store/router.go
@@ -48,7 +48,7 @@ func NewRouter() (*StoreRouter, error) {
// NewRouterWithDir creates a StoreRouter using a custom directory (for testing).
// No migration is run.
func NewRouterWithDir(dir string) (*StoreRouter, error) {
- if err := os.MkdirAll(dir, 0o755); err != nil {
+ if err := os.MkdirAll(dir, 0o750); err != nil {
return nil, fmt.Errorf("mkdir: %w", err)
}
return &StoreRouter{
diff --git a/internal/store/store.go b/internal/store/store.go
index 3ebc88266..ca5135b6f 100644
--- a/internal/store/store.go
+++ b/internal/store/store.go
@@ -56,7 +56,7 @@ func cacheDir() (string, error) {
return "", fmt.Errorf("home dir: %w", err)
}
dir := filepath.Join(home, ".cache", "codebase-memory-mcp")
- if err := os.MkdirAll(dir, 0o755); err != nil {
+ if err := os.MkdirAll(dir, 0o750); err != nil {
return "", fmt.Errorf("mkdir cache: %w", err)
}
return dir, nil