MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / openBootstrapEnabled

Method openBootstrapEnabled

internal/server/bootstrap.go:201–203  ·  view source on GitHub ↗

openBootstrapEnabled reports whether open-bootstrap is active for this server: bypass flag is set AND we're not in cloud mode. Cloud mode always wins over the bypass flag; the field on its own is meaningless without that check.

()

Source from the content-addressed store, hash-verified

199// always wins over the bypass flag; the field on its own is meaningless
200// without that check.
201func (s *Server) openBootstrapEnabled() bool {
202 return s.bypassSetupToken && !s.cloudMode
203}
204
205// consumeBootstrapToken clears the in-memory token and deletes the on-disk
206// file. Called after the first admin is successfully created.

Calls

no outgoing calls