You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix(ci): Add KFC 11.x test labs
* fix(store-types): Store type create omits empty fields.
* fix(pam-types): `types-list` does not crash on nil httpResponse.
* chore: Update license year, and bump AKV runner go version
* fix(tests): Remove "ProviderTypeParams" from pam-types tests for KFC v11.0.0+
* fix(tests): Fix nil pointer issues on tests.
* feat(stores): `stores export` now allows for `--all` and user interactive exports
---------
Signed-off-by: sbailey <1661003+spbsoluble@users.noreply.github.com>
Co-authored-by: Keyfactor <keyfactor@keyfactor.github.io>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,26 @@
1
+
# v1.4.0
2
+
## Features
3
+
4
+
### Stores
5
+
-`stores import generate-template`: New sub CLI to generate a CSV template for bulk importing stores. [See docs](docs/kfutil_stores_import_generate-template.md)`.
6
+
-`stores delete`: Support for user interactive mode.
7
+
-`stores delete`: Support of delete from CSV file.
8
+
-`stores export`: Supports `--all` flag and user interactive mode
9
+
10
+
## Fixes
11
+
- Various null pointer references when nothing and/or empty inputs/responses are received.
12
+
- Installer script checksum check now validates properly. #119
13
+
-`stores import` sub CLI is now listed and documented #71
14
+
15
+
### Store Types
16
+
- Empty `storepath` values are no longer passed to the API. #56
17
+
18
+
### PAM Types
19
+
- Handle duplicate provider type that is already created without crashing. #139
20
+
21
+
## Docs
22
+
-[Examples for certificate store bulk operations](https://github.com/Keyfactor/kfutil/tree/epic_54795/examples/cert_stores/bulk_operations#readme)
Copy file name to clipboardExpand all lines: README.md
+71-23Lines changed: 71 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,46 @@
1
-
2
1
# Keyfactor Command Utility (kfutil)
3
2
4
3
`kfutil` is a go-lang CLI wrapper for Keyfactor Command API. It also includes other utility/helper functions around automating common Keyfactor Command operations.
5
4
6
5
#### Integration status: Production - Ready for use in production environments.
7
6
7
+
<!-- toc -->
8
+
9
+
-[About the Keyfactor API Client](#about-the-keyfactor-api-client)
10
+
-[Support for Keyfactor Command Utility (kfutil)](#support-for-keyfactor-command-utility-kfutil)
+[Bulk create cert store types](#bulk-create-cert-store-types)
29
+
*[Root of Trust](#root-of-trust)
30
+
+[Quickstart](#quickstart-1)
31
+
+[Generate Certificate List Template](#generate-certificate-list-template)
32
+
+[Generate Certificate Store List Template](#generate-certificate-store-list-template)
33
+
+[Run Root of Trust Audit](#run-root-of-trust-audit)
34
+
+[Run Root of Trust Reconcile](#run-root-of-trust-reconcile)
35
+
*[Certificate Store Inventory](#certificate-store-inventory)
36
+
+[Show the inventory of a certificate store](#show-the-inventory-of-a-certificate-store)
37
+
+[Add certificates to certificate stores](#add-certificates-to-certificate-stores)
38
+
+[Remove certificates from certificate stores](#remove-certificates-from-certificate-stores)
39
+
-[Development](#development)
40
+
*[Adding a new command](#adding-a-new-command)
41
+
42
+
<!-- tocstop -->
43
+
8
44
## About the Keyfactor API Client
9
45
10
46
This API client allows for programmatic management of Keyfactor resources.
@@ -13,18 +49,12 @@ This API client allows for programmatic management of Keyfactor resources.
13
49
14
50
Keyfactor Command Utility (kfutil) is open source and supported on best effort level for this tool/library/client. This means customers can report Bugs, Feature Requests, Documentation amendment or questions as well as requests for customer information required for setup that needs Keyfactor access to obtain. Such requests do not follow normal SLA commitments for response or resolution. If you have a support issue, please open a support ticket via the Keyfactor Support Portal at https://support.keyfactor.com/
15
51
16
-
###### To report a problem or suggest a new feature, use the **[Issues](../../issues)** tab. If you want to contribute actual bug fixes or proposed enhancements, use the **[Pull requests](../../pulls)** tab.
17
-
18
-
---
19
-
20
-
21
-
---
22
-
23
-
52
+
[!NOTE] To report a problem or suggest a new feature, use the **[Issues](../../issues)** tab. If you want to contribute actual bug fixes or proposed enhancements, use the **[Pull requests](../../pulls)** tab.
24
53
25
54
## Quickstart
26
55
27
-
### Prerequisites:
56
+
### Linux/MacOS
57
+
#### Prerequisites:
28
58
-[jq](https://stedolan.github.io/jq/download/) CLI tool, used to parse JSON output.
29
59
- Either
30
60
-[curl](https://curl.se/download.html) CLI tool, used to download the release files.
@@ -33,22 +63,24 @@ Keyfactor Command Utility (kfutil) is open source and supported on best effort l
33
63
-[openssl](https://www.openssl.org/source/) CLI tool, used to validate package checksum.
34
64
-`$HOME/.local/bin` in your `$PATH` and exists if not running as root, else `/usr/local/bin` if running as root.
kfutil stores import create --file <file name to import> --store-type-id <store type id> --store-type-name <store type name> --results-path <filepath for results> --dry-run <check fields only> [flags]
180
+
kfutil stores import csv --file <file name to import>
148
181
```
149
182
150
183
```bash
151
-
kfutil stores import --help
152
-
Toolfor generating import templates and importing certificate stores
184
+
kfutil stores import --help
185
+
Toolsfor generating import templates and importing certificate stores
153
186
154
187
Usage:
155
188
kfutil stores import [command]
156
189
157
190
Available Commands:
158
-
create Create certificate stores
191
+
csvCreate certificate stores from CSV file.
159
192
generate-template For generating a CSV template with headers for bulk store creation.
160
193
161
194
Flags:
162
195
-h, --help helpfor import
163
196
197
+
Global Flags:
198
+
--api-path string API Path to use for authenticating to Keyfactor Command. (default is KeyfactorAPI) (default "KeyfactorAPI")
199
+
--auth-provider-profile string The profile to use defined in the securely stored config. If not specified the config named 'default' will be used if it exists. (default "default")
200
+
--auth-provider-type string Provider type choices: (azid)
201
+
--config string Full path to config file in JSON format. (default is $HOME/.keyfactor/command_config.json)
202
+
--debug Enable debugFlag logging.
203
+
--domain string Domain to use for authenticating to Keyfactor Command.
204
+
--exp Enable expEnabled features. (USE AT YOUR OWN RISK, these features are not supported and may change or be removed at any time.)
205
+
--format text How to format the CLI output. Currently only text is supported. (default "text")
206
+
--hostname string Hostname to use for authenticating to Keyfactor Command.
207
+
--no-prompt Do not prompt for any user input and assume defaults or environmental variables are set.
208
+
--password string Password to use forauthenticating to Keyfactor Command. WARNING: Remember to delete your console history if providing kfcPassword herein plain text.
209
+
--profile string Use a specific profile from your config file. If not specified the config named 'default' will be used if it exists.
210
+
--username string Username to use for authenticating to Keyfactor Command.
211
+
164
212
Use "kfutil stores import [command] --help"for more information about a command.
165
213
```
166
214
@@ -203,7 +251,7 @@ For full documentation, see [stores rot](docs/kfutil_stores_rot.md).
203
251
The root of trust (rot) utility is a tool that allows you to bulk manage Keyfactor certificate stores and ensure that a
204
252
set of defined certificates are present in each store that meets a certain set of criteria or no criteria at all.
0 commit comments