Skip to content

Commit

Permalink
Stop hiding Windows MDM WSTEP config flags (fleetdm#24289)
Browse files Browse the repository at this point in the history
  • Loading branch information
dantecatalfamo authored and parsimeikoikai committed Dec 3, 2024
1 parent ae0b193 commit e8c85fc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
1 change: 1 addition & 0 deletions changes/23462-show-windows-mdm-wstep-options
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Display Windows MDM WSTEP flags in `fleet --help`.
13 changes: 0 additions & 13 deletions server/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1316,19 +1316,6 @@ func (man Manager) addConfigs() {
"calendar.periodicity", 0,
"How much time to wait between processing calendar integration.",
)

// Hide Microsoft/Windows MDM flags as we don't want it to be discoverable for users for now
betaMDMFlags := []string{
"mdm.windows_wstep_identity_cert",
"mdm.windows_wstep_identity_key",
"mdm.windows_wstep_identity_cert_bytes",
"mdm.windows_wstep_identity_key_bytes",
}
for _, mdmFlag := range betaMDMFlags {
if flag := man.command.PersistentFlags().Lookup(flagNameFromConfigKey(mdmFlag)); flag != nil {
flag.Hidden = true
}
}
}

func (man Manager) hideConfig(name string) {
Expand Down

0 comments on commit e8c85fc

Please sign in to comment.