New inmem command queue (#736)

This commit is contained in:
Jesse Peterson
2021-10-10 12:45:09 -07:00
committed by GitHub
parent 804b4391ab
commit ddcea1ad93
6 changed files with 267 additions and 17 deletions

View File

@@ -124,6 +124,7 @@ func serve(args []string) error {
flUDIDCertAuthWarnOnly = flagset.Bool("udid-cert-auth-warn-only", env.Bool("MICROMDM_UDID_CERT_AUTH_WARN_ONLY", false), "warn only for udid cert mismatches")
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")
)
flagset.Usage = usageFor(flagset, "micromdm serve [flags]")
if err := flagset.Parse(args); err != nil {
@@ -175,6 +176,7 @@ func serve(args []string) error {
WebhooksHTTPClient: &http.Client{Timeout: time.Second * 30},
SCEPClientValidity: *flSCEPClientValidity,
Queue: *flQueue,
}
if !sm.UseDynSCEPChallenge {
// TODO: we have a static SCEP challenge password here to prevent