fix: secure profile persistence ownership

This commit is contained in:
proxyctl coordinator
2026-07-17 02:29:58 +08:00
parent 80ab995e2e
commit 1fa7e0fb2d
6 changed files with 457 additions and 66 deletions
+2 -2
View File
@@ -23,11 +23,11 @@ func run(args []string, input io.Reader, output io.Writer) error {
if len(args) != 0 {
return fmt.Errorf("this build supports no command-line arguments")
}
path, err := profile.ConfigPath()
configuration, err := profile.ResolveConfigurationForCurrentProcess()
if err != nil {
return err
}
application, err := app.New(profile.NewFileStore(path))
application, err := app.New(profile.NewOwnedFileStore(configuration.Path, configuration.Owner))
if err != nil {
return err
}