From 05966321bdad009d1b48f4f49998faee7d23e603 Mon Sep 17 00:00:00 2001 From: spbsoluble <1661003+spbsoluble@users.noreply.github.com> Date: Mon, 9 Dec 2024 08:23:59 -0800 Subject: [PATCH] feat(store-types): Add ability to use `integration-manifest.json` from custom `Keyfactor` git repo, default to `kfutil` repo. Signed-off-by: spbsoluble <1661003+spbsoluble@users.noreply.github.com> --- cmd/constants.go | 3 + cmd/storeTypes.go | 83 +++++++++++++++---- cmd/storeTypes_get.go | 3 +- cmd/storesBulkOperations.go | 4 +- docs/kfutil.md | 2 +- docs/kfutil_completion.md | 2 +- docs/kfutil_completion_bash.md | 2 +- docs/kfutil_completion_fish.md | 2 +- docs/kfutil_completion_powershell.md | 2 +- docs/kfutil_completion_zsh.md | 2 +- docs/kfutil_containers.md | 2 +- docs/kfutil_containers_get.md | 2 +- docs/kfutil_containers_list.md | 2 +- docs/kfutil_export.md | 2 +- docs/kfutil_helm.md | 2 +- docs/kfutil_helm_uo.md | 2 +- docs/kfutil_import.md | 2 +- docs/kfutil_login.md | 2 +- docs/kfutil_logout.md | 2 +- docs/kfutil_orchs.md | 2 +- docs/kfutil_orchs_approve.md | 2 +- docs/kfutil_orchs_disapprove.md | 2 +- docs/kfutil_orchs_ext.md | 2 +- docs/kfutil_orchs_get.md | 2 +- docs/kfutil_orchs_list.md | 2 +- docs/kfutil_orchs_logs.md | 2 +- docs/kfutil_orchs_reset.md | 2 +- docs/kfutil_pam.md | 2 +- docs/kfutil_pam_create.md | 2 +- docs/kfutil_pam_delete.md | 2 +- docs/kfutil_pam_get.md | 2 +- docs/kfutil_pam_list.md | 2 +- docs/kfutil_pam_types-create.md | 2 +- docs/kfutil_pam_types-list.md | 2 +- docs/kfutil_pam_update.md | 2 +- docs/kfutil_status.md | 2 +- docs/kfutil_store-types.md | 2 +- docs/kfutil_store-types_create.md | 3 +- docs/kfutil_store-types_delete.md | 2 +- docs/kfutil_store-types_get.md | 2 +- docs/kfutil_store-types_list.md | 2 +- docs/kfutil_store-types_templates-fetch.md | 3 +- docs/kfutil_stores.md | 2 +- docs/kfutil_stores_delete.md | 2 +- docs/kfutil_stores_export.md | 2 +- docs/kfutil_stores_get.md | 2 +- docs/kfutil_stores_import.md | 2 +- docs/kfutil_stores_import_csv.md | 2 +- .../kfutil_stores_import_generate-template.md | 2 +- docs/kfutil_stores_inventory.md | 2 +- docs/kfutil_stores_inventory_add.md | 2 +- docs/kfutil_stores_inventory_remove.md | 2 +- docs/kfutil_stores_inventory_show.md | 2 +- docs/kfutil_stores_list.md | 2 +- docs/kfutil_version.md | 2 +- 55 files changed, 127 insertions(+), 70 deletions(-) diff --git a/cmd/constants.go b/cmd/constants.go index ee900c3c..55779dd1 100644 --- a/cmd/constants.go +++ b/cmd/constants.go @@ -21,11 +21,14 @@ const ( DefaultAPIPath = "KeyfactorAPI" DefaultConfigFileName = "command_config.json" DefaultStoreTypesFileName = "store_types.json" + DefaultGitRepo = "kfutil" + DefaultGitRef = "main" FailedAuthMsg = "Login failed!" SuccessfulAuthMsg = "Login successful!" XKeyfactorRequestedWith = "APIClient" XKeyfactorApiVersion = "1" FlagGitRef = "git-ref" + FlagGitRepo = "repo" FlagFromFile = "from-file" DebugFuncEnter = "entered: %s" DebugFuncExit = "exiting: %s" diff --git a/cmd/storeTypes.go b/cmd/storeTypes.go index 9e1ccf12..20e43f0a 100644 --- a/cmd/storeTypes.go +++ b/cmd/storeTypes.go @@ -91,8 +91,9 @@ var storesTypeCreateCmd = &cobra.Command{ cmd.SilenceUsage = true // Specific flags gitRef, _ := cmd.Flags().GetString(FlagGitRef) + gitRepo, _ := cmd.Flags().GetString(FlagGitRepo) creatAll, _ := cmd.Flags().GetBool("all") - validStoreTypes := getValidStoreTypes("", gitRef) + validStoreTypes := getValidStoreTypes("", gitRef, gitRepo) storeType, _ := cmd.Flags().GetString("name") listTypes, _ := cmd.Flags().GetBool("list") storeTypeConfigFile, _ := cmd.Flags().GetString("from-file") @@ -110,7 +111,10 @@ var storesTypeCreateCmd = &cobra.Command{ // CLI Logic if gitRef == "" { - gitRef = "main" + gitRef = DefaultGitRef + } + if gitRepo == "" { + gitRepo = DefaultGitRepo } storeTypeIsValid := false @@ -119,6 +123,7 @@ var storesTypeCreateCmd = &cobra.Command{ Str("storeTypeConfigFile", storeTypeConfigFile). Bool("creatAll", creatAll). Str("gitRef", gitRef). + Str("gitRepo", gitRepo). Strs("validStoreTypes", validStoreTypes). Msg("create command flags") @@ -183,7 +188,7 @@ var storesTypeCreateCmd = &cobra.Command{ } else { typesToCreate = validStoreTypes } - storeTypeConfig, stErr := readStoreTypesConfig("", gitRef, offline) + storeTypeConfig, stErr := readStoreTypesConfig("", gitRef, gitRepo, offline) if stErr != nil { log.Error().Err(stErr).Send() return stErr @@ -263,7 +268,7 @@ var storesTypeDeleteCmd = &cobra.Command{ validStoreTypesResp, vstErr := kfClient.ListCertificateStoreTypes() if vstErr != nil { log.Error().Err(vstErr).Msg("unable to list certificate store types") - validStoreTypes = getValidStoreTypes("", gitRef) + validStoreTypes = getValidStoreTypes("", gitRef, DefaultGitRepo) } else { for _, v := range *validStoreTypesResp { validStoreTypes = append(validStoreTypes, v.ShortName) @@ -360,6 +365,7 @@ var fetchStoreTypesCmd = &cobra.Command{ cmd.SilenceUsage = true // Specific flags gitRef, _ := cmd.Flags().GetString(FlagGitRef) + gitRepo, _ := cmd.Flags().GetString(FlagGitRepo) // Debug + expEnabled checks isExperimental := false @@ -372,7 +378,7 @@ var fetchStoreTypesCmd = &cobra.Command{ if gitRef == "" { gitRef = "main" } - templates, err := readStoreTypesConfig("", gitRef, offline) + templates, err := readStoreTypesConfig("", gitRef, gitRepo, offline) if err != nil { log.Error().Err(err).Send() return err @@ -480,15 +486,26 @@ func formatStoreTypes(sTypesList *[]interface{}) (map[string]interface{}, error) return output, nil } -func getStoreTypesInternet(gitRef string) (map[string]interface{}, error) { +func getStoreTypesInternet(gitRef string, repo string) (map[string]interface{}, error) { //resp, err := http.Get("https://raw.githubusercontent.com/keyfactor/kfutil/main/store_types.json") //resp, err := http.Get("https://raw.githubusercontent.com/keyfactor/kfctl/master/storetypes/storetypes.json") - baseUrl := "https://raw.githubusercontent.com/Keyfactor/kfutil/%s/store_types.json" + baseUrl := "https://raw.githubusercontent.com/Keyfactor/%s/%s/%s" if gitRef == "" { - gitRef = "main" + gitRef = DefaultGitRef + } + if repo == "" { + repo = DefaultGitRepo + } + + var fileName string + if repo == "kfutil" { + fileName = "store_types.json" + } else { + fileName = "integration-manifest.json" } - url := fmt.Sprintf(baseUrl, gitRef) + + url := fmt.Sprintf(baseUrl, repo, gitRef, fileName) log.Debug(). Str("url", url). Msg("Getting store types from internet") @@ -513,7 +530,23 @@ func getStoreTypesInternet(gitRef string) (map[string]interface{}, error) { var result []interface{} jErr := json.Unmarshal(body, &result) if jErr != nil { - return nil, jErr + log.Warn().Err(jErr).Msg("Unable to decode JSON file, attempting to parse an integration manifest") + // Attempt to parse as an integration manifest + var manifest IntegrationManifest + log.Debug().Msg("Decoding JSON file as integration manifest") + // Reset the file pointer + + mErr := json.Unmarshal(body, &manifest) + if mErr != nil { + return nil, jErr + } + log.Debug().Msg("Decoded JSON file as integration manifest") + sTypes := manifest.About.Orchestrator.StoreTypes + output := make(map[string]interface{}) + for _, st := range sTypes { + output[st.ShortName] = st + } + return output, nil } output, sErr := formatStoreTypes(&result) if sErr != nil { @@ -525,18 +558,20 @@ func getStoreTypesInternet(gitRef string) (map[string]interface{}, error) { } -func getValidStoreTypes(fp string, gitRef string) []string { +func getValidStoreTypes(fp string, gitRef string, gitRepo string) []string { log.Debug(). Str("file", fp). Str("gitRef", gitRef). + Str("gitRepo", gitRepo). Bool("offline", offline). Msg(DebugFuncEnter) log.Debug(). Str("file", fp). Str("gitRef", gitRef). + Str("gitRepo", gitRepo). Msg("Reading store types config.") - validStoreTypes, rErr := readStoreTypesConfig(fp, gitRef, offline) + validStoreTypes, rErr := readStoreTypesConfig(fp, gitRef, gitRepo, offline) if rErr != nil { log.Error().Err(rErr).Msg("unable to read store types") return nil @@ -549,7 +584,7 @@ func getValidStoreTypes(fp string, gitRef string) []string { return validStoreTypesList } -func readStoreTypesConfig(fp, gitRef string, offline bool) (map[string]interface{}, error) { +func readStoreTypesConfig(fp, gitRef string, gitRepo string, offline bool) (map[string]interface{}, error) { log.Debug().Str("file", fp).Str("gitRef", gitRef).Msg("Entering readStoreTypesConfig") var ( @@ -560,7 +595,7 @@ func readStoreTypesConfig(fp, gitRef string, offline bool) (map[string]interface log.Debug().Msg("Reading store types config from file") } else { log.Debug().Msg("Reading store types config from internet") - sTypes, stErr = getStoreTypesInternet(gitRef) + sTypes, stErr = getStoreTypesInternet(gitRef, gitRepo) } if stErr != nil || sTypes == nil || len(sTypes) == 0 { @@ -600,11 +635,11 @@ func readStoreTypesConfig(fp, gitRef string, offline bool) (map[string]interface } func init() { - defaultGitRef := "main" offline = true // temporarily set to true as it runs before the flag is set debugFlag = false // temporarily set to false as it runs before the flag is set var gitRef string - validTypesString := strings.Join(getValidStoreTypes("", defaultGitRef), ", ") + var gitRepo string + validTypesString := strings.Join(getValidStoreTypes("", DefaultGitRef, DefaultGitRepo), ", ") offline = false //revert this so that flag is not set to true by default RootCmd.AddCommand(storeTypesCmd) @@ -618,6 +653,14 @@ func init() { "The git branch or tag to reference when pulling store-types from the internet.", ) + fetchStoreTypesCmd.Flags().StringVarP( + &gitRepo, + FlagGitRepo, + "r", + DefaultGitRepo, + "The repository to pull store-type definitions from.", + ) + // LIST command storeTypesCmd.AddCommand(storesTypesListCmd) @@ -653,6 +696,14 @@ func init() { "main", "The git branch or tag to reference when pulling store-types from the internet.", ) + storesTypeCreateCmd.Flags().StringVarP( + &gitRepo, + FlagGitRepo, + "r", + DefaultGitRepo, + "The repository to pull store-types definitions from.", + ) + storesTypeCreateCmd.Flags().BoolVarP(&createAll, "all", "a", false, "Create all store types.") // UPDATE command diff --git a/cmd/storeTypes_get.go b/cmd/storeTypes_get.go index e630d113..8635ea3e 100644 --- a/cmd/storeTypes_get.go +++ b/cmd/storeTypes_get.go @@ -187,6 +187,7 @@ type StoreTypesGetOptions struct { storeTypeName string genericFormat bool gitRef string + gitRepo string storeTypeInterface interface{} outputType string outputToIntegrationManifest bool @@ -243,7 +244,7 @@ func (f *StoreTypesGetOptions) Validate() error { // Check inputs and prompt if necessary // The f.storeTypeInterface is used to pass the store type to the API if f.storeTypeID < 0 && f.storeTypeName == "" { - validStoreTypes := getValidStoreTypes("", f.gitRef) + validStoreTypes := getValidStoreTypes("", f.gitRef, DefaultGitRepo) prompt := &survey.Select{ Message: "Choose a store type:", Options: validStoreTypes, diff --git a/cmd/storesBulkOperations.go b/cmd/storesBulkOperations.go index ada8184a..aa24793b 100644 --- a/cmd/storesBulkOperations.go +++ b/cmd/storesBulkOperations.go @@ -77,7 +77,7 @@ func formatProperties(json *gabs.Container, reqPropertiesForStoreType []string) func serializeStoreFromTypeDef(storeTypeName string, input string) (string, error) { // check if storetypename is an integer - storeTypes, _ := readStoreTypesConfig("", "", offline) + storeTypes, _ := readStoreTypesConfig("", DefaultGitRef, DefaultGitRepo, offline) log.Debug(). Str("storeTypeName", storeTypeName). Msg("checking if storeTypeName is an integer") @@ -399,7 +399,7 @@ Store type IDs can be found by running the "store-types" command.`, validStoreTypesResp, vstErr := kfClient.ListCertificateStoreTypes() if vstErr != nil { log.Error().Err(vstErr).Msg("unable to list certificate store types") - validStoreTypes = getValidStoreTypes("", "main") + validStoreTypes = getValidStoreTypes("", DefaultGitRef, DefaultGitRepo) } else { for _, v := range *validStoreTypesResp { validStoreTypes = append(validStoreTypes, v.ShortName) diff --git a/docs/kfutil.md b/docs/kfutil.md index ed50166b..f3c47a38 100644 --- a/docs/kfutil.md +++ b/docs/kfutil.md @@ -45,4 +45,4 @@ A CLI wrapper around the Keyfactor Platform API. * [kfutil stores](kfutil_stores.md) - Keyfactor certificate stores APIs and utilities. * [kfutil version](kfutil_version.md) - Shows version of kfutil -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_completion.md b/docs/kfutil_completion.md index 580e5cd4..0b6c7a8e 100644 --- a/docs/kfutil_completion.md +++ b/docs/kfutil_completion.md @@ -44,4 +44,4 @@ See each sub-command's help for details on how to use the generated script. * [kfutil completion powershell](kfutil_completion_powershell.md) - Generate the autocompletion script for powershell * [kfutil completion zsh](kfutil_completion_zsh.md) - Generate the autocompletion script for zsh -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_completion_bash.md b/docs/kfutil_completion_bash.md index c9c719e0..deb93478 100644 --- a/docs/kfutil_completion_bash.md +++ b/docs/kfutil_completion_bash.md @@ -63,4 +63,4 @@ kfutil completion bash * [kfutil completion](kfutil_completion.md) - Generate the autocompletion script for the specified shell -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_completion_fish.md b/docs/kfutil_completion_fish.md index 2860cc5d..d61446d6 100644 --- a/docs/kfutil_completion_fish.md +++ b/docs/kfutil_completion_fish.md @@ -54,4 +54,4 @@ kfutil completion fish [flags] * [kfutil completion](kfutil_completion.md) - Generate the autocompletion script for the specified shell -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_completion_powershell.md b/docs/kfutil_completion_powershell.md index 93e007a8..fd4d1cdb 100644 --- a/docs/kfutil_completion_powershell.md +++ b/docs/kfutil_completion_powershell.md @@ -51,4 +51,4 @@ kfutil completion powershell [flags] * [kfutil completion](kfutil_completion.md) - Generate the autocompletion script for the specified shell -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_completion_zsh.md b/docs/kfutil_completion_zsh.md index c2faf3a1..b8a0c626 100644 --- a/docs/kfutil_completion_zsh.md +++ b/docs/kfutil_completion_zsh.md @@ -65,4 +65,4 @@ kfutil completion zsh [flags] * [kfutil completion](kfutil_completion.md) - Generate the autocompletion script for the specified shell -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_containers.md b/docs/kfutil_containers.md index 2964e485..e86ce53c 100644 --- a/docs/kfutil_containers.md +++ b/docs/kfutil_containers.md @@ -40,4 +40,4 @@ A collections of APIs and utilities for interacting with Keyfactor certificate s * [kfutil containers get](kfutil_containers_get.md) - Get certificate store container by ID or name. * [kfutil containers list](kfutil_containers_list.md) - List certificate store containers. -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_containers_get.md b/docs/kfutil_containers_get.md index 042be2c3..88f94f6a 100644 --- a/docs/kfutil_containers_get.md +++ b/docs/kfutil_containers_get.md @@ -43,4 +43,4 @@ kfutil containers get [flags] * [kfutil containers](kfutil_containers.md) - Keyfactor certificate store container API and utilities. -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_containers_list.md b/docs/kfutil_containers_list.md index e19825c8..d00b2df1 100644 --- a/docs/kfutil_containers_list.md +++ b/docs/kfutil_containers_list.md @@ -42,4 +42,4 @@ kfutil containers list [flags] * [kfutil containers](kfutil_containers.md) - Keyfactor certificate store container API and utilities. -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_export.md b/docs/kfutil_export.md index 726264e3..8407861d 100644 --- a/docs/kfutil_export.md +++ b/docs/kfutil_export.md @@ -54,4 +54,4 @@ kfutil export [flags] * [kfutil](kfutil.md) - Keyfactor CLI utilities -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_helm.md b/docs/kfutil_helm.md index 180c93b2..d79a1edc 100644 --- a/docs/kfutil_helm.md +++ b/docs/kfutil_helm.md @@ -45,4 +45,4 @@ kubectl helm uo | helm install -f - keyfactor-universal-orchestrator keyfactor/k * [kfutil](kfutil.md) - Keyfactor CLI utilities * [kfutil helm uo](kfutil_helm_uo.md) - Configure the Keyfactor Universal Orchestrator Helm Chart -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_helm_uo.md b/docs/kfutil_helm_uo.md index 35a86343..59eb497b 100644 --- a/docs/kfutil_helm_uo.md +++ b/docs/kfutil_helm_uo.md @@ -49,4 +49,4 @@ kfutil helm uo [-t ] [-o ] [-f ] [-e -e @,@ -o ./app/extension * [kfutil orchs](kfutil_orchs.md) - Keyfactor agents/orchestrators APIs and utilities. -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_orchs_get.md b/docs/kfutil_orchs_get.md index 7c80400d..72ec4591 100644 --- a/docs/kfutil_orchs_get.md +++ b/docs/kfutil_orchs_get.md @@ -43,4 +43,4 @@ kfutil orchs get [flags] * [kfutil orchs](kfutil_orchs.md) - Keyfactor agents/orchestrators APIs and utilities. -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_orchs_list.md b/docs/kfutil_orchs_list.md index 76a86398..978b1ae9 100644 --- a/docs/kfutil_orchs_list.md +++ b/docs/kfutil_orchs_list.md @@ -42,4 +42,4 @@ kfutil orchs list [flags] * [kfutil orchs](kfutil_orchs.md) - Keyfactor agents/orchestrators APIs and utilities. -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_orchs_logs.md b/docs/kfutil_orchs_logs.md index 9fa34cd9..1686c2ea 100644 --- a/docs/kfutil_orchs_logs.md +++ b/docs/kfutil_orchs_logs.md @@ -43,4 +43,4 @@ kfutil orchs logs [flags] * [kfutil orchs](kfutil_orchs.md) - Keyfactor agents/orchestrators APIs and utilities. -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_orchs_reset.md b/docs/kfutil_orchs_reset.md index 81bf2d7d..d4f3ffa8 100644 --- a/docs/kfutil_orchs_reset.md +++ b/docs/kfutil_orchs_reset.md @@ -43,4 +43,4 @@ kfutil orchs reset [flags] * [kfutil orchs](kfutil_orchs.md) - Keyfactor agents/orchestrators APIs and utilities. -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_pam.md b/docs/kfutil_pam.md index e4bd6659..8c16fb8f 100644 --- a/docs/kfutil_pam.md +++ b/docs/kfutil_pam.md @@ -47,4 +47,4 @@ programmatically create, delete, edit, and list PAM Providers. * [kfutil pam types-list](kfutil_pam_types-list.md) - Returns a list of all available PAM provider types. * [kfutil pam update](kfutil_pam_update.md) - Updates an existing PAM Provider, currently only supported from file. -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_pam_create.md b/docs/kfutil_pam_create.md index 8a737f07..c773937b 100644 --- a/docs/kfutil_pam_create.md +++ b/docs/kfutil_pam_create.md @@ -43,4 +43,4 @@ kfutil pam create [flags] * [kfutil pam](kfutil_pam.md) - Keyfactor PAM Provider APIs. -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_pam_delete.md b/docs/kfutil_pam_delete.md index 47589bc1..6e7d0144 100644 --- a/docs/kfutil_pam_delete.md +++ b/docs/kfutil_pam_delete.md @@ -43,4 +43,4 @@ kfutil pam delete [flags] * [kfutil pam](kfutil_pam.md) - Keyfactor PAM Provider APIs. -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_pam_get.md b/docs/kfutil_pam_get.md index d483dc17..a8140e74 100644 --- a/docs/kfutil_pam_get.md +++ b/docs/kfutil_pam_get.md @@ -43,4 +43,4 @@ kfutil pam get [flags] * [kfutil pam](kfutil_pam.md) - Keyfactor PAM Provider APIs. -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_pam_list.md b/docs/kfutil_pam_list.md index 6d8f60ef..ad133fdf 100644 --- a/docs/kfutil_pam_list.md +++ b/docs/kfutil_pam_list.md @@ -42,4 +42,4 @@ kfutil pam list [flags] * [kfutil pam](kfutil_pam.md) - Keyfactor PAM Provider APIs. -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_pam_types-create.md b/docs/kfutil_pam_types-create.md index b8197651..4294459d 100644 --- a/docs/kfutil_pam_types-create.md +++ b/docs/kfutil_pam_types-create.md @@ -50,4 +50,4 @@ kfutil pam types-create [flags] * [kfutil pam](kfutil_pam.md) - Keyfactor PAM Provider APIs. -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_pam_types-list.md b/docs/kfutil_pam_types-list.md index a16cc213..fd3b7c88 100644 --- a/docs/kfutil_pam_types-list.md +++ b/docs/kfutil_pam_types-list.md @@ -42,4 +42,4 @@ kfutil pam types-list [flags] * [kfutil pam](kfutil_pam.md) - Keyfactor PAM Provider APIs. -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_pam_update.md b/docs/kfutil_pam_update.md index 7f454502..fd13a7a5 100644 --- a/docs/kfutil_pam_update.md +++ b/docs/kfutil_pam_update.md @@ -43,4 +43,4 @@ kfutil pam update [flags] * [kfutil pam](kfutil_pam.md) - Keyfactor PAM Provider APIs. -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_status.md b/docs/kfutil_status.md index 913a0172..697ad956 100644 --- a/docs/kfutil_status.md +++ b/docs/kfutil_status.md @@ -42,4 +42,4 @@ kfutil status [flags] * [kfutil](kfutil.md) - Keyfactor CLI utilities -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_store-types.md b/docs/kfutil_store-types.md index 69ce1084..43296acc 100644 --- a/docs/kfutil_store-types.md +++ b/docs/kfutil_store-types.md @@ -43,4 +43,4 @@ A collections of APIs and utilities for interacting with Keyfactor certificate s * [kfutil store-types list](kfutil_store-types_list.md) - List certificate store types. * [kfutil store-types templates-fetch](kfutil_store-types_templates-fetch.md) - Fetches store type templates from Keyfactor's Github. -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_store-types_create.md b/docs/kfutil_store-types_create.md index ebd5e9d8..3e78704f 100644 --- a/docs/kfutil_store-types_create.md +++ b/docs/kfutil_store-types_create.md @@ -19,6 +19,7 @@ kfutil store-types create [flags] -h, --help help for create -l, --list List valid store types. -n, --name string Short name of the certificate store type to get. Valid choices are: AKV, AWS-ACM, Akamai, AppGwBin, AzureApp, AzureApp2, AzureAppGw, AzureSP, AzureSP2, BIPCamera, CiscoAsa, CitrixAdc, F5-BigIQ, F5-CA-REST, F5-SL-REST, F5-WS-REST, Fortigate, GCPLoadBal, GcpCertMgr, HCVKV, HCVKVJKS, HCVKVP12, HCVKVPEM, HCVKVPFX, HCVPKI, IISU, Imperva, K8SCert, K8SCluster, K8SJKS, K8SNS, K8SPKCS12, K8SSecret, K8STLSSecr, MOST, Nmap, PaloAlto, RFDER, RFJKS, RFKDB, RFORA, RFPEM, RFPkcs12, SAMPLETYPE, Signum, VMware-NSX, WinCerMgmt, WinCert, WinSql + -r, --repo string The repository to pull store-types definitions from. (default "kfutil") ``` ### Options inherited from parent commands @@ -47,4 +48,4 @@ kfutil store-types create [flags] * [kfutil store-types](kfutil_store-types.md) - Keyfactor certificate store types APIs and utilities. -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_store-types_delete.md b/docs/kfutil_store-types_delete.md index e035ddad..9cc5b011 100644 --- a/docs/kfutil_store-types_delete.md +++ b/docs/kfutil_store-types_delete.md @@ -46,4 +46,4 @@ kfutil store-types delete [flags] * [kfutil store-types](kfutil_store-types.md) - Keyfactor certificate store types APIs and utilities. -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_store-types_get.md b/docs/kfutil_store-types_get.md index ad937b79..77f68ca1 100644 --- a/docs/kfutil_store-types_get.md +++ b/docs/kfutil_store-types_get.md @@ -47,4 +47,4 @@ kfutil store-types get [-i | -n ] [-b * [kfutil store-types](kfutil_store-types.md) - Keyfactor certificate store types APIs and utilities. -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_store-types_list.md b/docs/kfutil_store-types_list.md index 0cece34d..d28e11a3 100644 --- a/docs/kfutil_store-types_list.md +++ b/docs/kfutil_store-types_list.md @@ -42,4 +42,4 @@ kfutil store-types list [flags] * [kfutil store-types](kfutil_store-types.md) - Keyfactor certificate store types APIs and utilities. -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_store-types_templates-fetch.md b/docs/kfutil_store-types_templates-fetch.md index e2522626..3e81a65e 100644 --- a/docs/kfutil_store-types_templates-fetch.md +++ b/docs/kfutil_store-types_templates-fetch.md @@ -15,6 +15,7 @@ kfutil store-types templates-fetch [flags] ``` -b, --git-ref string The git branch or tag to reference when pulling store-types from the internet. (default "main") -h, --help help for templates-fetch + -r, --repo string The repository to pull store-type definitions from. (default "kfutil") ``` ### Options inherited from parent commands @@ -43,4 +44,4 @@ kfutil store-types templates-fetch [flags] * [kfutil store-types](kfutil_store-types.md) - Keyfactor certificate store types APIs and utilities. -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_stores.md b/docs/kfutil_stores.md index c9f24788..77ac0ec0 100644 --- a/docs/kfutil_stores.md +++ b/docs/kfutil_stores.md @@ -44,4 +44,4 @@ A collections of APIs and utilities for interacting with Keyfactor certificate s * [kfutil stores inventory](kfutil_stores_inventory.md) - Commands related to certificate store inventory management * [kfutil stores list](kfutil_stores_list.md) - List certificate stores. -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_stores_delete.md b/docs/kfutil_stores_delete.md index c3d1924c..1182516c 100644 --- a/docs/kfutil_stores_delete.md +++ b/docs/kfutil_stores_delete.md @@ -45,4 +45,4 @@ kfutil stores delete [flags] * [kfutil stores](kfutil_stores.md) - Keyfactor certificate stores APIs and utilities. -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_stores_export.md b/docs/kfutil_stores_export.md index 5b52f32c..1409d259 100644 --- a/docs/kfutil_stores_export.md +++ b/docs/kfutil_stores_export.md @@ -46,4 +46,4 @@ kfutil stores export [flags] * [kfutil stores](kfutil_stores.md) - Keyfactor certificate stores APIs and utilities. -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_stores_get.md b/docs/kfutil_stores_get.md index 7277fa3d..b83e0f56 100644 --- a/docs/kfutil_stores_get.md +++ b/docs/kfutil_stores_get.md @@ -43,4 +43,4 @@ kfutil stores get [flags] * [kfutil stores](kfutil_stores.md) - Keyfactor certificate stores APIs and utilities. -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_stores_import.md b/docs/kfutil_stores_import.md index 4317133a..a4d0d4fd 100644 --- a/docs/kfutil_stores_import.md +++ b/docs/kfutil_stores_import.md @@ -40,4 +40,4 @@ Tools for generating import templates and importing certificate stores * [kfutil stores import csv](kfutil_stores_import_csv.md) - Create certificate stores from CSV file. * [kfutil stores import generate-template](kfutil_stores_import_generate-template.md) - For generating a CSV template with headers for bulk store creation. -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_stores_import_csv.md b/docs/kfutil_stores_import_csv.md index 6cf35320..7884fe57 100644 --- a/docs/kfutil_stores_import_csv.md +++ b/docs/kfutil_stores_import_csv.md @@ -50,4 +50,4 @@ kfutil stores import csv --file --store-type-id --store-t * [kfutil stores import](kfutil_stores_import.md) - Import a file with certificate store parameters and create them in keyfactor. -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_stores_inventory.md b/docs/kfutil_stores_inventory.md index 395a43ba..03221b03 100644 --- a/docs/kfutil_stores_inventory.md +++ b/docs/kfutil_stores_inventory.md @@ -41,4 +41,4 @@ Commands related to certificate store inventory management * [kfutil stores inventory remove](kfutil_stores_inventory_remove.md) - Removes a certificate from the certificate store inventory. * [kfutil stores inventory show](kfutil_stores_inventory_show.md) - Show the inventory of a certificate store. -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_stores_inventory_add.md b/docs/kfutil_stores_inventory_add.md index f8dd1945..1d673c89 100644 --- a/docs/kfutil_stores_inventory_add.md +++ b/docs/kfutil_stores_inventory_add.md @@ -56,4 +56,4 @@ kfutil stores inventory add [flags] * [kfutil stores inventory](kfutil_stores_inventory.md) - Commands related to certificate store inventory management -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_stores_inventory_remove.md b/docs/kfutil_stores_inventory_remove.md index b1ebf34e..2a351101 100644 --- a/docs/kfutil_stores_inventory_remove.md +++ b/docs/kfutil_stores_inventory_remove.md @@ -52,4 +52,4 @@ kfutil stores inventory remove [flags] * [kfutil stores inventory](kfutil_stores_inventory.md) - Commands related to certificate store inventory management -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_stores_inventory_show.md b/docs/kfutil_stores_inventory_show.md index 25eb9638..0aceca79 100644 --- a/docs/kfutil_stores_inventory_show.md +++ b/docs/kfutil_stores_inventory_show.md @@ -46,4 +46,4 @@ kfutil stores inventory show [flags] * [kfutil stores inventory](kfutil_stores_inventory.md) - Commands related to certificate store inventory management -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_stores_list.md b/docs/kfutil_stores_list.md index 84bf4f15..199cd04f 100644 --- a/docs/kfutil_stores_list.md +++ b/docs/kfutil_stores_list.md @@ -42,4 +42,4 @@ kfutil stores list [flags] * [kfutil stores](kfutil_stores.md) - Keyfactor certificate stores APIs and utilities. -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024 diff --git a/docs/kfutil_version.md b/docs/kfutil_version.md index a6ae00b7..b118dbe1 100644 --- a/docs/kfutil_version.md +++ b/docs/kfutil_version.md @@ -42,4 +42,4 @@ kfutil version [flags] * [kfutil](kfutil.md) - Keyfactor CLI utilities -###### Auto generated by spf13/cobra on 20-Nov-2024 +###### Auto generated by spf13/cobra on 9-Dec-2024