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

Method openBootstrapEnabled

internal/server/bootstrap.go:199–201  ·  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

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

Calls

no outgoing calls