Declarative Management hand-off (#882)

This commit is contained in:
Jesse Peterson
2023-05-02 08:54:04 -07:00
committed by GitHub
parent 4d0df77cbd
commit 1f01f70dba
10 changed files with 330 additions and 110 deletions

View File

@@ -125,6 +125,7 @@ func serve(args []string) error {
flValidateSCEPExpiration = flagset.Bool("validate-scep-expiration", env.Bool("MICROMDM_VALIDATE_SCEP_EXPIRATION", false), "validate that the SCEP certificate is still valid")
flPrintArgs = flagset.Bool("print-flags", false, "Print all flags and their values")
flQueue = flagset.String("queue", env.String("MICROMDM_QUEUE", "builtin"), "command queue type")
flDMURL = flagset.String("dm", env.String("DM", ""), "URL to send Declarative Management requests to")
)
flagset.Usage = usageFor(flagset, "micromdm serve [flags]")
if err := flagset.Parse(args); err != nil {
@@ -177,6 +178,7 @@ func serve(args []string) error {
SCEPClientValidity: *flSCEPClientValidity,
Queue: *flQueue,
DMURL: *flDMURL,
}
if !sm.UseDynSCEPChallenge {
// TODO: we have a static SCEP challenge password here to prevent