Skip to content

Commit 6627bc3

Browse files
committed
chore(docs): Update docs
Signed-off-by: spbsoluble <[email protected]>
1 parent 1e31f7d commit 6627bc3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+218
-109
lines changed

README.md

Lines changed: 83 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
21
# Keyfactor Command Utility (kfutil)
32

4-
`kfutil` is a go-lang CLI wrapper for Keyfactor Command API. It also includes other utility/helper functions around automating common Keyfactor Command operations.
3+
`kfutil` is a go-lang CLI wrapper for Keyfactor Command API. It also includes other utility/helper functions around
4+
automating common Keyfactor Command operations.
55

66
#### Integration status: Production - Ready for use in production environments.
77

@@ -11,21 +11,21 @@ This API client allows for programmatic management of Keyfactor resources.
1111

1212
## Support for Keyfactor Command Utility (kfutil)
1313

14-
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-
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-
14+
Keyfactor Command Utility (kfutil) is open source and supported on best effort level for this tool/library/client. This
15+
means customers can report Bugs, Feature Requests, Documentation amendment or questions as well as requests for customer
16+
information required for setup that needs Keyfactor access to obtain. Such requests do not follow normal SLA commitments
17+
for response or resolution. If you have a support issue, please open a support ticket via the Keyfactor Support Portal
18+
at https://support.keyfactor.com/
2319

20+
To report a problem or suggest a new feature, use the **[Issues](../../issues)** tab. If you want to contribute actual
21+
bug fixes or proposed enhancements, use the **[Pull requests](../../pulls)** tab.
2422

2523
## Quickstart
2624

2725
### Linux/MacOS
26+
2827
#### Prerequisites:
28+
2929
- [jq](https://stedolan.github.io/jq/download/) CLI tool, used to parse JSON output.
3030
- Either
3131
- [curl](https://curl.se/download.html) CLI tool, used to download the release files.
@@ -35,47 +35,92 @@ Keyfactor Command Utility (kfutil) is open source and supported on best effort l
3535
- `$HOME/.local/bin` in your `$PATH` and exists if not running as root, else `/usr/local/bin` if running as root.
3636

3737
#### Installation:
38+
3839
```bash
3940
bash <(curl -s https://raw.githubusercontent.com/Keyfactor/kfutil/main/install.sh)
4041
````
4142

4243
### Windows
44+
4345
#### Prerequisites:
46+
4447
- Powershell 5.1 or later
4548

4649
#### Installation:
50+
4751
```powershell
4852
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/Keyfactor/kfutil/main/install.ps1" -OutFile "install.ps1"
4953
# Install kfutil to $HOME/AppData/Local/Microsoft/WindowsApps.
5054
# Use Get-Help .\install.ps1 -Full for help and examples.
5155
.\install.ps1
5256
```
5357

54-
## Environmental Variables
58+
## Environment Variables
59+
60+
### Global
61+
62+
| Name | Description | Default |
63+
|-------------------------------|-----------------------------------------------------------------------------------------------------------------|----------------------------------------|
64+
| KEYFACTOR_HOSTNAME | Keyfactor Command hostname without protocol and port | |
65+
| KEYFACTOR_PORT | Keyfactor Command port | `443` |
66+
| KEYFACTOR_API_PATH | Keyfactor Command API Path | `KeyfactorAPI` |
67+
| KEYFACTOR_SKIP_VERIFY | Skip TLS verification when connecting to Keyfactor Command | `false` |
68+
| KEYFACTOR_CA_CERT | Either a file path or PEM encoded string to a CA certificate to trust when communicating with Keyfactor Command | |
69+
| KEYFACTOR_CLIENT_TIMEOUT | Timeout for HTTP client requests to Keyfactor Command | `60s` |
70+
| KEYFACTOR_AUTH_CONFIG_FILE | Path to a JSON file containing the authentication configuration | `$HOME/.keyfactor/command_config.json` |
71+
| KEYFACTOR_AUTH_CONFIG_PROFILE | Profile to use from the authentication configuration file | `default` |
72+
73+
### Basic Auth
74+
75+
Currently, only Active Directory `Basic` authentication is supported.
76+
77+
| Name | Description | Default |
78+
|--------------------|---------------------------------------------------------------------------------------------|---------|
79+
| KEYFACTOR_USERNAME | Active Directory username to authenticate to Keyfactor Command API | |
80+
| KEYFACTOR_PASSWORD | Password associated with Active Directory username to authenticate to Keyfactor Command API | |
81+
| KEYFACTOR_DOMAIN | Active Directory domain of user. Can be implied from username if it contains `@` or `\\` | |
82+
83+
### oAuth Client Credentials
84+
85+
| Name | Description | Default |
86+
|------------------------------|---------------------------------------------------------------------------------------------------------------------------------|----------|
87+
| KEYFACTOR_AUTH_CLIENT_ID | Keyfactor Auth Client ID | |
88+
| KEYFACTOR_AUTH_CLIENT_SECRET | Keyfactor Auth Client Secret | |
89+
| KEYFACTOR_AUTH_TOKEN_URL | URL to request an access token from Keyfactor Auth | |
90+
| KEYFACTOR_AUTH_SCOPES | Scopes to request when authenticating to Keyfactor Command API | `openid` |
91+
| KEYFACTOR_AUTH_ACCESS_TOKEN | Access token to use to authenticate to Keyfactor Command API. This can be supplied directly or generated via client credentials | |
92+
93+
### kfutil specific
5594

5695
All the variables listed below need to be set in your environment. The `kfutil` command will look for these variables
57-
and use them if they are set. If they are not set, the utility will fail to connect to Keyfactor.
58-
59-
| Variable Name | Description |
60-
|--------------------|------------------------------------------------------------------------------------------|
61-
| KEYFACTOR_HOSTNAME | The hostname of your Keyfactor instance. ex: `my.domain.com` |
62-
| KEYFACTOR_USERNAME | The username to use to connect to Keyfactor. Do not include the domain. ex: `myusername` |
63-
| KEYFACTOR_PASSWORD | The password to use to connect to Keyfactor. ex: `mypassword` |
64-
| KEYFACTOR_DOMAIN | The domain to use to connect to Keyfactor. ex: `mydomain` |
65-
| KEYFACTOR_API_PATH | The path to the Keyfactor API. Defaults to `/KeyfactorAPI`. |
66-
| KFUTIL_EXP | Set to `1` or `true` to enable experimental features. |
67-
| KFUTIL_DEBUG | Set to `1` or `true` to enable debug logging. |
96+
and use them if they are set.
97+
98+
| Variable Name | Description |
99+
|---------------|-------------------------------------------------------|
100+
| KFUTIL_EXP | Set to `1` or `true` to enable experimental features. |
101+
| KFUTIL_DEBUG | Set to `1` or `true` to enable debug logging. |
68102

69103
### Linux/MacOS:
70104

105+
#### Active Directory Basic Authentication
106+
71107
```bash
72108
export KEYFACTOR_HOSTNAME="<mykeyfactorhost.mydomain.com>"
73-
export KEYFACTOR_USERNAME="<myusername>" # Do not include domain
109+
export KEYFACTOR_USERNAME="<myusername>"
74110
export KEYFACTOR_PASSWORD="<mypassword>"
75-
export KEYFACTOR_DOMAIN="<mykeyfactordomain>"
111+
export KEYFACTOR_DOMAIN="<mykeyfactordomain>" # Optional if username contains domain
76112
```
77113

78-
Additional variables:
114+
#### oAuth Client Credentials
115+
116+
```bash
117+
export KEYFACTOR_HOSTNAME="<mykeyfactorhost.mydomain.com>"
118+
export KEYFACTOR_AUTH_CLIENT_ID="<my-oauth2-client-id"
119+
export KEYFACTOR_AUTH_CLIENT_SECRET="<my-oauth2-client-secret>"
120+
export KEYFACTOR_AUTH_TOKEN_URL="<mykeyfactorhost.mydomain.com>/protocol/openid-connect/token"
121+
```
122+
123+
#### Additional variables
79124

80125
```bash
81126
export KEYFACTOR_API_PATH="/KeyfactorAPI" # Defaults to /KeyfactorAPI if not set ex. my.domain.com/KeyfactorAPI
@@ -85,14 +130,25 @@ export KFUTIL_DEBUG=0 # Set to 1 or true to enable debug logging
85130

86131
### Windows Powershell:
87132

133+
#### Active Directory Basic Authentication
134+
88135
```powershell
89136
$env:KEYFACTOR_HOSTNAME = "<mykeyfactorhost.mydomain.com>"
90137
$env:KEYFACTOR_USERNAME = "<myusername>" # Do not include domain
91138
$env:KEYFACTOR_PASSWORD = "<mypassword>"
92139
$env:KEYFACTOR_DOMAIN = "<mykeyfactordomain>"
93140
```
94141

95-
Additional variables:
142+
#### oAuth Client Credentials
143+
144+
```powershell
145+
$env:KEYFACTOR_HOSTNAME = "<mykeyfactorhost.mydomain.com>"
146+
$env:KEYFACTOR_AUTH_CLIENT_ID = "<my-oauth2-client>"
147+
$env:KEYFACTOR_AUTH_CLIENT_SECRET = "<my-oauth2-client-secret>"
148+
$env:KEYFACTOR_AUTH_TOKEN_URL = "<mykeyfactorhost.mydomain.com>/protocol/openid-connect/token"
149+
```
150+
151+
#### Additional variables:
96152

97153
```bash
98154
$env:KEYFACTOR_API_PATH="/KeyfactorAPI" # Defaults to /KeyfactorAPI if not set ex. my.domain.com/KeyfactorAPI
@@ -135,8 +191,6 @@ For full documentation on the `logout` command, see the [logout](docs/kfutil_log
135191
kfutil logout
136192
```
137193

138-
## Commands
139-
140194
### Bulk operations
141195

142196
#### Bulk create cert stores
@@ -439,5 +493,3 @@ alternatively you can specify the parent command
439493
```bash
440494
cobra-cli add <my-new-command> -p '<parent>Cmd'
441495
```
442-
443-

docs/kfutil.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ A CLI wrapper around the Keyfactor Platform API.
4343
* [kfutil stores](kfutil_stores.md) - Keyfactor certificate stores APIs and utilities.
4444
* [kfutil version](kfutil_version.md) - Shows version of kfutil
4545

46-
###### Auto generated by spf13/cobra on 8-Sep-2024
46+
###### Auto generated by spf13/cobra on 4-Nov-2024

docs/kfutil_completion.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ See each sub-command's help for details on how to use the generated script.
4242
* [kfutil completion powershell](kfutil_completion_powershell.md) - Generate the autocompletion script for powershell
4343
* [kfutil completion zsh](kfutil_completion_zsh.md) - Generate the autocompletion script for zsh
4444

45-
###### Auto generated by spf13/cobra on 8-Sep-2024
45+
###### Auto generated by spf13/cobra on 4-Nov-2024

docs/kfutil_completion_bash.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ kfutil completion bash
6161

6262
* [kfutil completion](kfutil_completion.md) - Generate the autocompletion script for the specified shell
6363

64-
###### Auto generated by spf13/cobra on 8-Sep-2024
64+
###### Auto generated by spf13/cobra on 4-Nov-2024

docs/kfutil_completion_fish.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ kfutil completion fish [flags]
5252

5353
* [kfutil completion](kfutil_completion.md) - Generate the autocompletion script for the specified shell
5454

55-
###### Auto generated by spf13/cobra on 8-Sep-2024
55+
###### Auto generated by spf13/cobra on 4-Nov-2024

docs/kfutil_completion_powershell.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ kfutil completion powershell [flags]
4949

5050
* [kfutil completion](kfutil_completion.md) - Generate the autocompletion script for the specified shell
5151

52-
###### Auto generated by spf13/cobra on 8-Sep-2024
52+
###### Auto generated by spf13/cobra on 4-Nov-2024

docs/kfutil_completion_zsh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ kfutil completion zsh [flags]
6363

6464
* [kfutil completion](kfutil_completion.md) - Generate the autocompletion script for the specified shell
6565

66-
###### Auto generated by spf13/cobra on 8-Sep-2024
66+
###### Auto generated by spf13/cobra on 4-Nov-2024

docs/kfutil_containers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ A collections of APIs and utilities for interacting with Keyfactor certificate s
3838
* [kfutil containers get](kfutil_containers_get.md) - Get certificate store container by ID or name.
3939
* [kfutil containers list](kfutil_containers_list.md) - List certificate store containers.
4040

41-
###### Auto generated by spf13/cobra on 8-Sep-2024
41+
###### Auto generated by spf13/cobra on 4-Nov-2024

docs/kfutil_containers_get.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ kfutil containers get [flags]
4141

4242
* [kfutil containers](kfutil_containers.md) - Keyfactor certificate store container API and utilities.
4343

44-
###### Auto generated by spf13/cobra on 8-Sep-2024
44+
###### Auto generated by spf13/cobra on 4-Nov-2024

docs/kfutil_containers_list.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ kfutil containers list [flags]
4040

4141
* [kfutil containers](kfutil_containers.md) - Keyfactor certificate store container API and utilities.
4242

43-
###### Auto generated by spf13/cobra on 8-Sep-2024
43+
###### Auto generated by spf13/cobra on 4-Nov-2024

0 commit comments

Comments
 (0)