Add server config to disable user registered agents (#4206)

This commit is contained in:
6543
2024-11-11 18:51:14 +01:00
committed by GitHub
parent 07baae28af
commit 04e8309e60
12 changed files with 587 additions and 12 deletions

View File

@@ -167,6 +167,9 @@ func setupEvilGlobals(ctx context.Context, c *cli.Command, s store.Store) (err e
return fmt.Errorf("could not setup log store: %w", err)
}
// agents
server.Config.Agent.DisableUserRegisteredAgentRegistration = c.Bool("disable-user-agent-registration")
// authentication
server.Config.Pipeline.AuthenticatePublicRepos = c.Bool("authenticate-public-repos")