mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 21:47:20 +00:00
# Addresses #9365 # Implements MDM enrollment modal that handles both automatic and manual enrollment instructions: - Automatic: <img width="1181" alt="Screenshot 2023-01-20 at 4 33 50 PM" src="https://user-images.githubusercontent.com/61553566/213829293-6d4a5053-9a3c-4f52-8cf8-a6607dc8df4e.png"> - Manual: <img width="1158" alt="Screenshot 2023-01-20 at 4 35 04 PM" src="https://user-images.githubusercontent.com/61553566/213829369-73ae779d-14a8-4aa7-9c6a-b97d046d0dc1.png"> - Also includes (by mistake, but might as well include them now) some small bash scripts for use in MDM development # Checklist for submitter If some of the following don't apply, delete the relevant line. - [x] Changes file added for user-visible changes in `changes/` - [x] Updated testing inventory - [x] Manual QA for all new/changed functionality --------- Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
43 lines
1.4 KiB
Bash
Executable file
43 lines
1.4 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
# To toggle MDM, run `source toggle-mdm-dev`
|
|
# Requires the env at $FLEET_ENV_PATH to contain logic something like:
|
|
|
|
# if [[ $USE_MDM == "1" ]]; then
|
|
|
|
# # for UI dev:
|
|
# export FLEET_DEV_MDM_ENABLED=1
|
|
|
|
# # for MDM server
|
|
# export FLEET_MDM_APPLE_ENABLE=1
|
|
# export FLEET_MDM_APPLE_SCEP_CHALLENGE=scepchallenge
|
|
# MDM_PATH={PATH_TO_YOUR_MDM_RELATED_KEYS_AND_CERTS}
|
|
# export FLEET_MDM_APPLE_SCEP_CERT=$MDM_PATH"fleet-mdm-apple-scep.crt"
|
|
# export FLEET_MDM_APPLE_SCEP_KEY=$MDM_PATH"fleet-mdm-apple-scep.key"
|
|
# export FLEET_MDM_APPLE_BM_SERVER_TOKEN=$MDM_PATH"downloadtoken.p7m"
|
|
# export FLEET_MDM_APPLE_BM_CERT=$MDM_PATH"fleet-apple-mdm-bm-public-key.crt"
|
|
# export FLEET_MDM_APPLE_BM_KEY=$MDM_PATH"fleet-apple-mdm-bm-private.key"
|
|
# #below files are from the shared Fleet 1Password
|
|
# export FLEET_MDM_APPLE_APNS_CERT=$MDM_PATH"mdmcert.download.push.pem"
|
|
# export FLEET_MDM_APPLE_APNS_KEY=$MDM_PATH"mdmcert.download.push.key"
|
|
# else
|
|
# unset FLEET_DEV_MDM_ENABLED
|
|
# unset FLEET_MDM_APPLE_ENABLE
|
|
# unset FLEET_MDM_APPLE_SCEP_CHALLENGE
|
|
# unset FLEET_MDM_APPLE_SCEP_CERT
|
|
# unset FLEET_MDM_APPLE_SCEP_KEY
|
|
# unset FLEET_MDM_APPLE_BM_SERVER_TOKEN
|
|
# unset FLEET_MDM_APPLE_BM_CERT
|
|
# unset FLEET_MDM_APPLE_BM_KEY
|
|
# #below files are from the shared Fleet 1Password
|
|
# unset FLEET_MDM_APPLE_APNS_CERT
|
|
# unset FLEET_MDM_APPLE_APNS_KEY
|
|
# fi
|
|
|
|
if [[ $USE_MDM == "1" ]]; then
|
|
export USE_MDM=0
|
|
else
|
|
export USE_MDM=1
|
|
fi
|
|
|
|
source $FLEET_ENV_PATH
|