diff --git a/.github/workflows/keyfactor-bootstrap-workflow.yml b/.github/workflows/keyfactor-starter-workflow.yml
similarity index 73%
rename from .github/workflows/keyfactor-bootstrap-workflow.yml
rename to .github/workflows/keyfactor-starter-workflow.yml
index 6d8de53..61ea7a0 100644
--- a/.github/workflows/keyfactor-bootstrap-workflow.yml
+++ b/.github/workflows/keyfactor-starter-workflow.yml
@@ -1,4 +1,4 @@
-name: Keyfactor Bootstrap Workflow
+name: Keyfactor Bootstrap Workflow
on:
workflow_dispatch:
@@ -11,9 +11,10 @@ on:
jobs:
call-starter-workflow:
- uses: keyfactor/actions/.github/workflows/starter.yml@v2
+ uses: keyfactor/actions/.github/workflows/starter.yml@3.1.2
secrets:
token: ${{ secrets.V2BUILDTOKEN}}
APPROVE_README_PUSH: ${{ secrets.APPROVE_README_PUSH}}
gpg_key: ${{ secrets.KF_GPG_PRIVATE_KEY }}
gpg_pass: ${{ secrets.KF_GPG_PASSPHRASE }}
+ scan_token: ${{ secrets.SAST_TOKEN }}
diff --git a/.gitignore b/.gitignore
index dfcfd56..7e03d23 100644
--- a/.gitignore
+++ b/.gitignore
@@ -348,3 +348,4 @@ MigrationBackup/
# Ionide (cross platform F# VS Code tools) working folder
.ionide/
+
diff --git a/F5WafOrchestrator.sln b/F5WafOrchestrator.sln
index 6d9f3f1..d5e7da0 100644
--- a/F5WafOrchestrator.sln
+++ b/F5WafOrchestrator.sln
@@ -1,8 +1,9 @@
Microsoft Visual Studio Solution File, Format Version 12.00
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "F5WafOrchestrator", "F5WafOrchestrator\F5WafOrchestrator.csproj", "{3645725A-2C84-4536-9A04-4F4CEDF30B21}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "F5WafOrchestrator.Tests", "F5WafOrchestrator.Tests\F5WafOrchestrator.Tests.csproj", "{E53E4095-667E-4F26-B596-28DC0E5CEEED}"
+# Visual Studio Version 17
+VisualStudioVersion = 17.11.35312.102
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "F5WafOrchestrator", "F5WafOrchestrator\F5WafOrchestrator.csproj", "{3645725A-2C84-4536-9A04-4F4CEDF30B21}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -12,12 +13,11 @@ Global
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3645725A-2C84-4536-9A04-4F4CEDF30B21}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3645725A-2C84-4536-9A04-4F4CEDF30B21}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3645725A-2C84-4536-9A04-4F4CEDF30B21}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{3645725A-2C84-4536-9A04-4F4CEDF30B21}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3645725A-2C84-4536-9A04-4F4CEDF30B21}.Release|Any CPU.Build.0 = Release|Any CPU
- {3645725A-2C84-4536-9A04-4F4CEDF30B21}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
- {E53E4095-667E-4F26-B596-28DC0E5CEEED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {E53E4095-667E-4F26-B596-28DC0E5CEEED}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {E53E4095-667E-4F26-B596-28DC0E5CEEED}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {E53E4095-667E-4F26-B596-28DC0E5CEEED}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
diff --git a/F5WafOrchestrator/CA/Discovery.cs b/F5WafOrchestrator/CA/Discovery.cs
index 1f52c0b..9a04d51 100644
--- a/F5WafOrchestrator/CA/Discovery.cs
+++ b/F5WafOrchestrator/CA/Discovery.cs
@@ -18,6 +18,10 @@
using Keyfactor.Orchestrators.Extensions;
using Microsoft.Extensions.Logging;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
namespace Keyfactor.Extensions.Orchestrator.F5WafOrchestrator.CA;
public class Discovery : Job, IDiscoveryJobExtension
diff --git a/F5WafOrchestrator/CA/Inventory.cs b/F5WafOrchestrator/CA/Inventory.cs
index 7a4a388..780c086 100644
--- a/F5WafOrchestrator/CA/Inventory.cs
+++ b/F5WafOrchestrator/CA/Inventory.cs
@@ -18,6 +18,10 @@
using Keyfactor.Orchestrators.Extensions;
using Microsoft.Extensions.Logging;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
namespace Keyfactor.Extensions.Orchestrator.F5WafOrchestrator.CA;
public class Inventory : Job, IInventoryJobExtension
diff --git a/F5WafOrchestrator/CA/Management.cs b/F5WafOrchestrator/CA/Management.cs
index 43db82b..c16609d 100644
--- a/F5WafOrchestrator/CA/Management.cs
+++ b/F5WafOrchestrator/CA/Management.cs
@@ -18,6 +18,8 @@
using Keyfactor.Orchestrators.Extensions;
using Microsoft.Extensions.Logging;
+using System;
+
namespace Keyfactor.Extensions.Orchestrator.F5WafOrchestrator.CA;
public class Management : Job, IManagementJobExtension
diff --git a/F5WafOrchestrator/F5WafClient.cs b/F5WafOrchestrator/F5WafClient.cs
index f017abe..a10de07 100644
--- a/F5WafOrchestrator/F5WafClient.cs
+++ b/F5WafOrchestrator/F5WafClient.cs
@@ -12,6 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+using System;
+using System.IO;
+using System.Linq;
+using System.Collections.Generic;
using System.Net.Http.Headers;
using System.Text;
using System.Text.Json;
@@ -24,8 +28,7 @@
using Newtonsoft.Json.Linq;
using Org.BouncyCastle.Pkcs;
using System.Net;
-using Org.BouncyCastle.Asn1.Ocsp;
-using System.Xml.Linq;
+using System.Net.Http;
namespace Keyfactor.Extensions.Orchestrator.F5WafOrchestrator.Client;
diff --git a/F5WafOrchestrator/F5WafOrchestrator.csproj b/F5WafOrchestrator/F5WafOrchestrator.csproj
index e2ce2df..84d1728 100644
--- a/F5WafOrchestrator/F5WafOrchestrator.csproj
+++ b/F5WafOrchestrator/F5WafOrchestrator.csproj
@@ -1,13 +1,10 @@
- false
- net6.0
- true
- enable
- enable
- Keyfactor.Extensions.Orchestrator.F5WafOrchestrator
- latest
+ true
+ net6.0;net8.0
+ true
+ disable
@@ -19,31 +16,10 @@
-
-
Always
-
-
- ..\..\..\..\..\..\Program Files\Keyfactor\Keyfactor Orchestrator\BouncyCastle.Crypto.dll
-
-
-
-
-
-
- $(BaseOutputPath)
- false
- false
-
-
-
-
-
-
-
diff --git a/F5WafOrchestrator/TLS/Discovery.cs b/F5WafOrchestrator/TLS/Discovery.cs
index f0306cf..0f006ee 100644
--- a/F5WafOrchestrator/TLS/Discovery.cs
+++ b/F5WafOrchestrator/TLS/Discovery.cs
@@ -18,6 +18,10 @@
using Keyfactor.Orchestrators.Extensions;
using Microsoft.Extensions.Logging;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
namespace Keyfactor.Extensions.Orchestrator.F5WafOrchestrator.TLS;
public class Discovery : Job, IDiscoveryJobExtension
diff --git a/F5WafOrchestrator/TLS/Inventory.cs b/F5WafOrchestrator/TLS/Inventory.cs
index d75c47c..8cbe16a 100644
--- a/F5WafOrchestrator/TLS/Inventory.cs
+++ b/F5WafOrchestrator/TLS/Inventory.cs
@@ -17,6 +17,10 @@
using Keyfactor.Orchestrators.Common.Enums;
using Keyfactor.Orchestrators.Extensions;
using Microsoft.Extensions.Logging;
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
using System.Text.RegularExpressions;
namespace Keyfactor.Extensions.Orchestrator.F5WafOrchestrator.TLS;
diff --git a/F5WafOrchestrator/TLS/Management.cs b/F5WafOrchestrator/TLS/Management.cs
index 076df2b..1220dc4 100644
--- a/F5WafOrchestrator/TLS/Management.cs
+++ b/F5WafOrchestrator/TLS/Management.cs
@@ -18,6 +18,8 @@
using Keyfactor.Orchestrators.Extensions;
using Microsoft.Extensions.Logging;
+using System;
+
namespace Keyfactor.Extensions.Orchestrator.F5WafOrchestrator.TLS;
public class Management : Job, IManagementJobExtension
diff --git a/README.md b/README.md
index e737332..80b78ca 100644
--- a/README.md
+++ b/README.md
@@ -1,240 +1,436 @@
+
+ F5 WAF Universal Orchestrator Extension
+
+
+
+
+
+
+
+
+
-# F5 WAF
+
+
+
+ Support
+
+ ·
+
+ Installation
+
+ ·
+
+ License
+
+ ·
+
+ Related Integrations
+
+
-The F5 WAF Orchestrator is an extension to the Keyfactor Universal Orchestrator. It Integrates with Multi-Cloud App Connect, which is F5 Distributed Cloud's service for connecting apps across clouds and within on premise installationss using load balancers. The purpose of the F5 WAF orchestrator is to manage the TLS and CA Root certificates. The TLS certificates may be bound to load balancers. The orchestrator facilitates the inventory, addition, renewal, and removal of these certificates as well as the discovery of namespaces (certificate stores) within the F5 Multi-Cloud App Connect instance.
+## Overview
-#### Integration status: Production - Ready for use in production environments.
+The F5 WAF Orchestrator extension remotely manages TLS and CA Root certificates uploaded to F5 Distributed Multi-Cloud App Connect, which is the F5 platform that manages WAF services. Certificates bound to Http Load Balancers within Multi-Cloud App Connect can be renewed/replaced, but they cannot be removed. Certificate store types f5WafTls and f5WafCa are used to manage stores containing TLS and CA Root certificates, respectively.
-## About the Keyfactor Universal Orchestrator Extension
+The F5 WAF Universal Orchestrator extension implements 2 Certificate Store Types. Depending on your use case, you may elect to use one, or both of these Certificate Store Types. Descriptions of each are provided below.
-This repository contains a Universal Orchestrator Extension which is a plugin to the Keyfactor Universal Orchestrator. Within the Keyfactor Platform, Orchestrators are used to manage “certificate stores” — collections of certificates and roots of trust that are found within and used by various applications.
+F5 WAF TLS (f5WafTls)
-The Universal Orchestrator is part of the Keyfactor software distribution and is available via the Keyfactor customer portal. For general instructions on installing Extensions, see the “Keyfactor Command Orchestrator Installation and Configuration Guide” section of the Keyfactor documentation. For configuration details of this specific Extension see below in this readme.
-The Universal Orchestrator is the successor to the Windows Orchestrator. This Orchestrator Extension plugin only works with the Universal Orchestrator and does not work with the Windows Orchestrator.
+### f5WafTls
-## Support for F5 WAF
+The f5WafTls certificate store type is used to manage F5 Distributed Multi-Cloud App Connect TLS certificates.
-F5 WAF is supported by Keyfactor for Keyfactor customers. If you have a support issue, please open a support ticket via the Keyfactor Support Portal at https://support.keyfactor.com
+Use cases supported:
+1. Discovery of TLS stores. Discovery for F5 WAF returns any discoverable namespaces in the F5 WAF instance.
+2. Inventory of a TLS store. All TLS certificates, bound or unbound, within a namespace will be returned to Keyfactor Command.
+3. Management-Add. Add a new certificate or renew an existing one. Renew will work for both bound and unbound certificates. All existing binding will remain in place, bound to the same alias with the newly replaced/renewed certificate.
+4. Management-Delete. Remove an existing certificate. Will only work for unbound certificates.
+
-###### 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.
+F5 WAF CA (f5WafCa)
----
+### f5WafCa
----
+The f5WafCa certificate store type is used to manage F5 Distributed Multi-Cloud App Connect CA Root certificates.
+Use cases supported:
+1. Discovery of TLS stores. Discovery for F5 WAF returns any discoverable namespaces in the F5 WAF instance.
+2. Inventory of a TLS store. All CA Root certificates within a namespace will be returned to Keyfactor Command.
+3. Management-Add. Add a new certificate or renew an existing one.
+4. Management-Delete. Remove an existing certificate. Please note, for CA Root certicates, deleting an existing certificate will replace ALL instances of the same certificate and not only the one represented by the intended alias. This is an F5 WAF feature that the integration has no control over.
+
-## Keyfactor Version Supported
+## Compatibility
-The minimum version of the Keyfactor Universal Orchestrator Framework needed to run this version of the extension is 10.4.1
-## Platform Specific Notes
+This integration is compatible with Keyfactor Universal Orchestrator version 10.4.1 and later.
-The Keyfactor Universal Orchestrator may be installed on either Windows or Linux based platforms. The certificate operations supported by a capability may vary based what platform the capability is installed on. The table below indicates what capabilities are supported based on which platform the encompassing Universal Orchestrator is running.
-| Operation | Win | Linux |
-|-----|-----|------|
-|Supports Management Add|✓ |✓ |
-|Supports Management Remove|✓ |✓ |
-|Supports Create Store| | |
-|Supports Discovery|✓ |✓ |
-|Supports Reenrollment| | |
-|Supports Inventory|✓ |✓ |
+## Support
+The F5 WAF Universal Orchestrator extension is supported by Keyfactor for Keyfactor customers. If you have a support issue, please open a support ticket with your Keyfactor representative. If you have a support issue, please open a support ticket via the Keyfactor Support Portal at https://support.keyfactor.com.
+
+> 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.
+## Requirements & Prerequisites
-## PAM Integration
+Before installing the F5 WAF Universal Orchestrator extension, we recommend that you install [kfutil](https://github.com/Keyfactor/kfutil). Kfutil is a command-line tool that simplifies the process of creating store types, installing extensions, and instantiating certificate stores in Keyfactor Command.
-This orchestrator extension has the ability to connect to a variety of supported PAM providers to allow for the retrieval of various client hosted secrets right from the orchestrator server itself. This eliminates the need to set up the PAM integration on Keyfactor Command which may be in an environment that the client does not want to have access to their PAM provider.
-The secrets that this orchestrator extension supports for use with a PAM Provider are:
+F5 Multi-Cloud App Connect uses API tokens to authenticate when calling APIs. API Tokens can be created through the F5 Distributed Cloud Console. Once logged in, select Multi-Cloud App Connect from the options under "Common services". Next, select Account Services from the pull down at the top right of the screen, and select "Account Settings". From there, click on "Credentials" on the left nav and "Add Credentials" on the subsequent screen. In the form shown, select "API Token" from the Credential Type dropdown, and enter the name of the credential and the expiration date. Please note that credentials can only be created for up to 90 day periods of time. After 90 days, a new API token will need to be generated and replaced in your F5 WAF certificate store(s). Clicking Generate will then show the value of the newly created API Token. Copy this and save to a safe place, as this will be the value you will enter in the Server Password field when setting up your certificate store. If you forget or lose this token value, there is no way to access it again in the F5 Distributed Cloud portal. You will need to create a new API Token.
-|Name|Description|
-|----|-----------|
-|ServerUsername|The user id that will be used to authenticate to the F5 WAF API endpoints|
-|ServerPassword|The API token that will be used to authenticate to the F5 WAF API endpoints|
-
+
+
+
+
+
+
-It is not necessary to use a PAM Provider for all of the secrets available above. If a PAM Provider should not be used, simply enter in the actual value to be used, as normal.
-If a PAM Provider will be used for one of the fields above, start by referencing the [Keyfactor Integration Catalog](https://keyfactor.github.io/integrations-catalog/content/pam). The GitHub repo for the PAM Provider to be used contains important information such as the format of the `json` needed. What follows is an example but does not reflect the `json` values for all PAM Providers as they have different "instance" and "initialization" parameter names and values.
+## Create Certificate Store Types
-General PAM Provider Configuration
-
+To use the F5 WAF Universal Orchestrator extension, you **must** create the Certificate Store Types required for your usecase. This only needs to happen _once_ per Keyfactor Command instance.
+The F5 WAF Universal Orchestrator extension implements 2 Certificate Store Types. Depending on your use case, you may elect to use one, or both of these Certificate Store Types.
+F5 WAF TLS (f5WafTls)
-### Example PAM Provider Setup
-To use a PAM Provider to resolve a field, in this example the __Server Password__ will be resolved by the `Hashicorp-Vault` provider, first install the PAM Provider extension from the [Keyfactor Integration Catalog](https://keyfactor.github.io/integrations-catalog/content/pam) on the Universal Orchestrator.
+* **Create f5WafTls using kfutil**:
-Next, complete configuration of the PAM Provider on the UO by editing the `manifest.json` of the __PAM Provider__ (e.g. located at extensions/Hashicorp-Vault/manifest.json). The "initialization" parameters need to be entered here:
+ ```shell
+ # F5 WAF TLS
+ kfutil store-types create f5WafTls
+ ```
-~~~ json
- "Keyfactor:PAMProviders:Hashicorp-Vault:InitializationInfo": {
- "Host": "http://127.0.0.1:8200",
- "Path": "v1/secret/data",
- "Token": "xxxxxx"
- }
-~~~
+* **Create f5WafTls manually in the Command UI**:
+ Create f5WafTls manually in the Command UI
-After these values are entered, the Orchestrator needs to be restarted to pick up the configuration. Now the PAM Provider can be used on other Orchestrator Extensions.
+ Create a store type called `f5WafTls` with the attributes in the tables below:
-### Use the PAM Provider
-With the PAM Provider configured as an extenion on the UO, a `json` object can be passed instead of an actual value to resolve the field with a PAM Provider. Consult the [Keyfactor Integration Catalog](https://keyfactor.github.io/integrations-catalog/content/pam) for the specific format of the `json` object.
+ #### Basic Tab
+ | Attribute | Value | Description |
+ | --------- | ----- | ----- |
+ | Name | F5 WAF TLS | Display name for the store type (may be customized) |
+ | Short Name | f5WafTls | Short display name for the store type |
+ | Capability | f5WafTls | Store type name orchestrator will register with. Check the box to allow entry of value |
+ | Supports Add | ✅ Checked | Check the box. Indicates that the Store Type supports Management Add |
+ | Supports Remove | ✅ Checked | Check the box. Indicates that the Store Type supports Management Remove |
+ | Supports Discovery | ✅ Checked | Check the box. Indicates that the Store Type supports Discovery |
+ | Supports Reenrollment | 🔲 Unchecked | Indicates that the Store Type supports Reenrollment |
+ | Supports Create | 🔲 Unchecked | Indicates that the Store Type supports store creation |
+ | Needs Server | ✅ Checked | Determines if a target server name is required when creating store |
+ | Blueprint Allowed | ✅ Checked | Determines if store type may be included in an Orchestrator blueprint |
+ | Uses PowerShell | 🔲 Unchecked | Determines if underlying implementation is PowerShell |
+ | Requires Store Password | 🔲 Unchecked | Enables users to optionally specify a store password when defining a Certificate Store. |
+ | Supports Entry Password | 🔲 Unchecked | Determines if an individual entry within a store can have a password. |
-To have the __Server Password__ field resolved by the `Hashicorp-Vault` provider, the corresponding `json` object from the `Hashicorp-Vault` extension needs to be copied and filed in with the correct information:
+ The Basic tab should look like this:
-~~~ json
-{"Secret":"my-kv-secret","Key":"myServerPassword"}
-~~~
+ 
-This text would be entered in as the value for the __Server Password__, instead of entering in the actual password. The Orchestrator will attempt to use the PAM Provider to retrieve the __Server Password__. If PAM should not be used, just directly enter in the value for the field.
-
-
+ #### Advanced Tab
+ | Attribute | Value | Description |
+ | --------- | ----- | ----- |
+ | Supports Custom Alias | Required | Determines if an individual entry within a store can have a custom Alias. |
+ | Private Key Handling | Required | This determines if Keyfactor can send the private key associated with a certificate to the store. Required because IIS certificates without private keys would be invalid. |
+ | PFX Password Style | Default | 'Default' - PFX password is randomly generated, 'Custom' - PFX password may be specified when the enrollment job is created (Requires the Allow Custom Password application setting to be enabled.) |
+ The Advanced tab should look like this:
+ 
+ #### Custom Fields Tab
+ Custom fields operate at the certificate store level and are used to control how the orchestrator connects to the remote target server containing the certificate store to be managed. The following custom fields should be added to the store type:
----
+ | Name | Display Name | Description | Type | Default Value/Options | Required |
+ | ---- | ------------ | ---- | --------------------- | -------- | ----------- |
+ | ServerUsername | Server Username | Not used, but a value is required. Enter anything into this field. | Secret | | 🔲 Unchecked |
+ | ServerPassword | Server Password | The API Token configured in the F5 Distributed Cloud instance's Account Settings. Please see [Creating an F5 WAF API Token](#requirements-&-prerequisites). | Secret | | 🔲 Unchecked |
+ The Custom Fields tab should look like this:
-## Overview
-The F5 WAF Orchestrator extension remotely manages TLS and CA Root certificates uploaded to F5 Distributed Multi-Cloud App Connect, which is the F5 platform that manages WAF services. Certificates bound to Http Load Balancers within Multi-Cloud App Connect can be renewed/replaced, but they cannot be removed. Certificate store types f5WafTls and f5WafCa are used to manage stores containing TLS and CA Root certificates, respectively.
+ 
-
-f5WafTls
-The f5WafTls certificate store type is used to manage F5 Distributed Multi-Cloud App Connect TLS certificates.
-
-Use cases supported:
-1. Discovery of TLS stores. Discovery for F5 WAF returns any discoverable namespaces in the F5 WAF instance.
-2. Inventory of a TLS store. All TLS certificates, bound or unbound, within a namespace will be returned to Keyfactor Command.
-3. Management-Add. Add a new certificate or renew an existing one. Renew will work for both bound and unbound certificates. All existing binding will remain in place, bound to the same alias with the newly replaced/renewed certificate.
-4. Management-Delete. Remove an existing certificate. Will only work for unbound certificates.
+
-
-f5WafCa
+F5 WAF CA (f5WafCa)
-The f5WafCa certificate store type is used to manage F5 Distributed Multi-Cloud App Connect CA Root certificates.
-Use cases supported:
-1. Discovery of TLS stores. Discovery for F5 WAF returns any discoverable namespaces in the F5 WAF instance.
-2. Inventory of a TLS store. All CA Root certificates within a namespace will be returned to Keyfactor Command.
-3. Management-Add. Add a new certificate or renew an existing one.
-4. Management-Delete. Remove an existing certificate. Please note, for CA Root certicates, deleting an existing certificate will replace ALL instances of the same certificate and not only the one represented by the intended alias. This is an F5 WAF feature that the integration has no control over.
+* **Create f5WafCa using kfutil**:
+
+ ```shell
+ # F5 WAF CA
+ kfutil store-types create f5WafCa
+ ```
+
+* **Create f5WafCa manually in the Command UI**:
+ Create f5WafCa manually in the Command UI
+
+ Create a store type called `f5WafCa` with the attributes in the tables below:
+
+ #### Basic Tab
+ | Attribute | Value | Description |
+ | --------- | ----- | ----- |
+ | Name | F5 WAF CA | Display name for the store type (may be customized) |
+ | Short Name | f5WafCa | Short display name for the store type |
+ | Capability | f5WafCa | Store type name orchestrator will register with. Check the box to allow entry of value |
+ | Supports Add | ✅ Checked | Check the box. Indicates that the Store Type supports Management Add |
+ | Supports Remove | ✅ Checked | Check the box. Indicates that the Store Type supports Management Remove |
+ | Supports Discovery | ✅ Checked | Check the box. Indicates that the Store Type supports Discovery |
+ | Supports Reenrollment | 🔲 Unchecked | Indicates that the Store Type supports Reenrollment |
+ | Supports Create | 🔲 Unchecked | Indicates that the Store Type supports store creation |
+ | Needs Server | ✅ Checked | Determines if a target server name is required when creating store |
+ | Blueprint Allowed | ✅ Checked | Determines if store type may be included in an Orchestrator blueprint |
+ | Uses PowerShell | 🔲 Unchecked | Determines if underlying implementation is PowerShell |
+ | Requires Store Password | 🔲 Unchecked | Enables users to optionally specify a store password when defining a Certificate Store. |
+ | Supports Entry Password | 🔲 Unchecked | Determines if an individual entry within a store can have a password. |
+
+ The Basic tab should look like this:
+
+ 
+
+ #### Advanced Tab
+ | Attribute | Value | Description |
+ | --------- | ----- | ----- |
+ | Supports Custom Alias | Required | Determines if an individual entry within a store can have a custom Alias. |
+ | Private Key Handling | Forbidden | This determines if Keyfactor can send the private key associated with a certificate to the store. Required because IIS certificates without private keys would be invalid. |
+ | PFX Password Style | Default | 'Default' - PFX password is randomly generated, 'Custom' - PFX password may be specified when the enrollment job is created (Requires the Allow Custom Password application setting to be enabled.) |
+
+ The Advanced tab should look like this:
+
+ 
+
+ #### Custom Fields Tab
+ Custom fields operate at the certificate store level and are used to control how the orchestrator connects to the remote target server containing the certificate store to be managed. The following custom fields should be added to the store type:
+
+ | Name | Display Name | Description | Type | Default Value/Options | Required |
+ | ---- | ------------ | ---- | --------------------- | -------- | ----------- |
+ | ServerUsername | Server Username | Not used, but a value is required. Enter anything into this field. | Secret | | 🔲 Unchecked |
+ | ServerPassword | Server Password | The API Token configured in the F5 Distributed Cloud instance's Account Settings. Please see [Creating an F5 WAF API Token](#requirements-&-prerequisites). | Secret | | 🔲 Unchecked |
+
+ The Custom Fields tab should look like this:
+
+ 
+
+
+
-## F5 WAF Orchestrator Extension Installation
+## Installation
-1. Refer to the [Creating Certificate Store Types](#creating-certificate-store-types) section to create the certificate store types you wish to manage.
-2. Stop the Keyfactor Universal Orchestrator Service on the server you plan to install this extension to run on.
-3. In the Keyfactor Orchestrator installation folder (by convention usually C:\Program Files\Keyfactor\Keyfactor Orchestrator for a Windows install or /opt/keyfactor/orchestrator/ for a Linux install), find the "Extensions" folder. Underneath that, create a new folder named "F5Waf". You may choose to use a different name if you wish.
-4. Download the latest version of the F5 WAF orchestrator extension from [GitHub](https://github.com/Keyfactor/f5-waf-orchestrator). Click on the "Latest" release link on the right hand side of the main page and download the first zip file.
-5. Copy the contents of the download installation zip file to the folder created in step 3.
-6. (Optional) If you decide to create one or more certificate store types with short names different than the suggested values, edit the manifest.json file in the folder you created in step 3, and modify each "ShortName" in each "Certstores.{ShortName}.{Operation}" line with the ShortName you used to create the respective certificate store type.
-7. Start the Keyfactor Universal Orchestrator Service.
+1. **Download the latest F5 WAF Universal Orchestrator extension from GitHub.**
+ Navigate to the [F5 WAF Universal Orchestrator extension GitHub version page](https://github.com/Keyfactor/f5-waf-orchestrator/releases/latest). Refer to the compatibility matrix below to determine whether the `net6.0` or `net8.0` asset should be downloaded. Then, click the corresponding asset to download the zip archive.
+ | Universal Orchestrator Version | Latest .NET version installed on the Universal Orchestrator server | `rollForward` condition in `Orchestrator.runtimeconfig.json` | `f5-waf-orchestrator` .NET version to download |
+ | --------- | ----------- | ----------- | ----------- |
+ | Older than `11.0.0` | | | `net6.0` |
+ | Between `11.0.0` and `11.5.1` (inclusive) | `net6.0` | | `net6.0` |
+ | Between `11.0.0` and `11.5.1` (inclusive) | `net8.0` | `Disable` | `net6.0` |
+ | Between `11.0.0` and `11.5.1` (inclusive) | `net8.0` | `LatestMajor` | `net8.0` |
+ | `11.6` _and_ newer | `net8.0` | | `net8.0` |
-## Creating Certificate Store Types
+ Unzip the archive containing extension assemblies to a known location.
-Below are the two certificate store types that the F5 WAF Orchestator Extension manages. To create a new Certificate Store Type in Keyfactor Command, first click on settings (the gear icon on the top right) => Certificate Store Types => Add. Next, follow the instructions under each store type you wish to set up.
+ > **Note** If you don't see an asset with a corresponding .NET version, you should always assume that it was compiled for `net6.0`.
-
-f5WafTls - TLS certificates in a namespace
+2. **Locate the Universal Orchestrator extensions directory.**
-- Basic Tab:
+ * **Default on Windows** - `C:\Program Files\Keyfactor\Keyfactor Orchestrator\extensions`
+ * **Default on Linux** - `/opt/keyfactor/orchestrator/extensions`
+
+3. **Create a new directory for the F5 WAF Universal Orchestrator extension inside the extensions directory.**
+
+ Create a new directory called `f5-waf-orchestrator`.
+ > The directory name does not need to match any names used elsewhere; it just has to be unique within the extensions directory.
- - **Name** – Required. The display name you wish to use for the new Certificate Store Type.
- - **Short Name** – Required. Suggested value - **f5WafTls**. If you choose to use a different value you must make the corresponding modification to the manifest.json file. See [F5 WAF Orchestrator Extension Installation](#f5-waf-orchestrator-extension-installation), step 6 above.
- - **Custom Capability** - Unchecked
- - **Supported Job Types** - Inventory, Add, Remove, and Discovery should all be checked.
- - **Needs Server** - Checked
- - **Blueprint Allowed** - Checked if you wish to make use of blueprinting. Please refer to the Keyfactor Command Reference Guide for more details on this feature.
- - **Uses PowerShell** - Unchecked
- - **Requires Store Password** - Unchecked
- - **Supports Entry Password** - Unchecked
+4. **Copy the contents of the downloaded and unzipped assemblies from __step 2__ to the `f5-waf-orchestrator` directory.**
-- Advanced Tab:
+5. **Restart the Universal Orchestrator service.**
- - **Store Path Type** - Freeform
- - **Supports Custom Alias** - Required.
- - **Private Key Handling** - Required.
- - **PFX Password Style** - Default
+ Refer to [Starting/Restarting the Universal Orchestrator service](https://software.keyfactor.com/Core-OnPrem/Current/Content/InstallingAgents/NetCoreOrchestrator/StarttheService.htm).
-- Custom Fields Tab:
- - no additional custom fields
+6. **(optional) PAM Integration**
-- Entry Parameters Tab:
+ The F5 WAF Universal Orchestrator extension is compatible with all supported Keyfactor PAM extensions to resolve PAM-eligible secrets. PAM extensions running on Universal Orchestrators enable secure retrieval of secrets from a connected PAM provider.
- - no additional entry parameters
+ To configure a PAM provider, [reference the Keyfactor Integration Catalog](https://keyfactor.github.io/integrations-catalog/content/pam) to select an extension, and follow the associated instructions to install it on the Universal Orchestrator (remote).
-
-
-f5WafCa - CA Root certificates in a namespace
+> The above installation steps can be supplimented by the [official Command documentation](https://software.keyfactor.com/Core-OnPrem/Current/Content/InstallingAgents/NetCoreOrchestrator/CustomExtensions.htm?Highlight=extensions).
-- Basic Tab:
- - **Name** – Required. The display name you wish to use for the new Certificate Store Type.
- - **Short Name** – Required. Suggested value - **f5WafCa**. If you choose to use a different value you must make the corresponding modification to the manifest.json file. See [F5 WAF Orchestrator Extension Installation](#f5-waf-orchestrator-extension-installation), step 6 above.
- - **Custom Capability** - Unchecked
- - **Supported Job Types** - Inventory, Add, Remove, and Discovery should all be checked.
- - **Needs Server** - Checked
- - **Blueprint Allowed** - Checked if you wish to make use of blueprinting. Please refer to the Keyfactor Command Reference Guide for more details on this feature.
- - **Uses PowerShell** - Unchecked
- - **Requires Store Password** - Unchecked
- - **Supports Entry Password** - Unchecked
-- Advanced Tab:
+## Defining Certificate Stores
- - **Store Path Type** - Freeform
- - **Supports Custom Alias** - Required.
- - **Private Key Handling** - Forbidden.
- - **PFX Password Style** - Default
+The F5 WAF Universal Orchestrator extension implements 2 Certificate Store Types, each of which implements different functionality. Refer to the individual instructions below for each Certificate Store Type that you deemed necessary for your use case from the installation section.
-- Custom Fields Tab:
+F5 WAF TLS (f5WafTls)
- - no additional custom fields
-- Entry Parameters Tab:
+* **Manually with the Command UI**
- - no additional entry parameters
+ Create Certificate Stores manually in the UI
-
+ 1. **Navigate to the _Certificate Stores_ page in Keyfactor Command.**
+ Log into Keyfactor Command, toggle the _Locations_ dropdown, and click _Certificate Stores_.
-## Creating Certificate Stores and Scheduling Discovery Jobs
+ 2. **Add a Certificate Store.**
-When creating new certificate stores or scheduling discovery jobs in Keyfactor Command, there are a few fields that are important to highlight here:
+ Click the Add button to add a new Certificate Store. Use the table below to populate the **Attributes** in the **Add** form.
+ | Attribute | Description |
+ | --------- | ----------- |
+ | Category | Select "F5 WAF TLS" or the customized certificate store name from the previous step. |
+ | Container | Optional container to associate certificate store with. |
+ | Client Machine | The URL for the F5 Distributed Cloud instance (typically ending in '.console.ves.volterra.io'). |
+ | Store Path | The Multi-Cloud App Connect namespace containing the certificates you wish to manage. |
+ | Orchestrator | Select an approved orchestrator capable of managing `f5WafTls` certificates. Specifically, one with the `f5WafTls` capability. |
+ | ServerUsername | Not used, but a value is required. Enter anything into this field. |
+ | ServerPassword | The API Token configured in the F5 Distributed Cloud instance's Account Settings. Please see [Creating an F5 WAF API Token](#requirements-&-prerequisites). |
-
-Certificate Stores
-The following table describes the required and optional fields for the `f5WafTls` and `f5WafCa` certificate store types when creating a certificate store.
+
-In Keyfactor Command, navigate to Certificate Stores from the Locations Menu. Click the Add button to create a new Certificate Store.
+
+
+* **Using kfutil**
+
+ Create Certificate Stores with kfutil
+
+ 1. **Generate a CSV template for the f5WafTls certificate store**
+
+ ```shell
+ kfutil stores import generate-template --store-type-name f5WafTls --outpath f5WafTls.csv
+ ```
+ 2. **Populate the generated CSV file**
+
+ Open the CSV file, and reference the table below to populate parameters for each **Attribute**.
+ | Attribute | Description |
+ | --------- | ----------- |
+ | Category | Select "F5 WAF TLS" or the customized certificate store name from the previous step. |
+ | Container | Optional container to associate certificate store with. |
+ | Client Machine | The URL for the F5 Distributed Cloud instance (typically ending in '.console.ves.volterra.io'). |
+ | Store Path | The Multi-Cloud App Connect namespace containing the certificates you wish to manage. |
+ | Orchestrator | Select an approved orchestrator capable of managing `f5WafTls` certificates. Specifically, one with the `f5WafTls` capability. |
+ | ServerUsername | Not used, but a value is required. Enter anything into this field. |
+ | ServerPassword | The API Token configured in the F5 Distributed Cloud instance's Account Settings. Please see [Creating an F5 WAF API Token](#requirements-&-prerequisites). |
+
+
+
+
+ 3. **Import the CSV file to create the certificate stores**
+
+ ```shell
+ kfutil stores import csv --store-type-name f5WafTls --file f5WafTls.csv
+ ```
+
+
+> The content in this section can be supplimented by the [official Command documentation](https://software.keyfactor.com/Core-OnPrem/Current/Content/ReferenceGuide/Certificate%20Stores.htm?Highlight=certificate%20store).
-| Attribute | Description |
-| --------- |------------------------------------------------------------------------------------------------------------------------------------------------|
-| Category | Select either f5WafTls or f5WafCa depending on whether you want to manage TLS certificates or Root CA certificates. |
-| Container | Optional container to associate certificate store with. |
-| Client Machine | The URL for the F5 Distributed Cloud instance (typically ending in '.console.ves.volterra.io'). |
-| Store Path | The Multi-Cloud App Connect namespace containing the certificates you wish to manage. |
-| Orchestrator | Select an approved orchestrator capable of managing F5 WAF certificates. Specifically, one with the f5WafTls and f5WafCa capabilities. |
-| Server Username | The username used to log in to the F5 Distributed Cloud instance (typically an email). |
-| Server Password | The API Token configured in the F5 Distributed Cloud instance's Account Settings. Please see [Creating an F5 WAF API Token](#creating-an-f5-waf-api-token) for more details on creating this token. |
-| Use SSL | Not used for this integration, so either setting is fine. |
-
-Discovery Jobs
+F5 WAF CA (f5WafCa)
+
+
+* **Manually with the Command UI**
+
+ Create Certificate Stores manually in the UI
+
+ 1. **Navigate to the _Certificate Stores_ page in Keyfactor Command.**
+
+ Log into Keyfactor Command, toggle the _Locations_ dropdown, and click _Certificate Stores_.
+
+ 2. **Add a Certificate Store.**
+
+ Click the Add button to add a new Certificate Store. Use the table below to populate the **Attributes** in the **Add** form.
+ | Attribute | Description |
+ | --------- | ----------- |
+ | Category | Select "F5 WAF CA" or the customized certificate store name from the previous step. |
+ | Container | Optional container to associate certificate store with. |
+ | Client Machine | The URL for the F5 Distributed Cloud instance (typically ending in '.console.ves.volterra.io'). |
+ | Store Path | The Multi-Cloud App Connect namespace containing the certificates you wish to manage. |
+ | Orchestrator | Select an approved orchestrator capable of managing `f5WafCa` certificates. Specifically, one with the `f5WafCa` capability. |
+ | ServerUsername | Not used, but a value is required. Enter anything into this field. |
+ | ServerPassword | The API Token configured in the F5 Distributed Cloud instance's Account Settings. Please see [Creating an F5 WAF API Token](#requirements-&-prerequisites). |
+
+
+
+
+ Attributes eligible for retrieval by a PAM Provider on the Universal Orchestrator
+
+ If a PAM provider was installed _on the Universal Orchestrator_ in the [Installation](#Installation) section, the following parameters can be configured for retrieval _on the Universal Orchestrator_.
+ | Attribute | Description |
+ | --------- | ----------- |
+ | ServerPassword | The API Token configured in the F5 Distributed Cloud instance's Account Settings. Please see [Creating an F5 WAF API Token](#requirements-&-prerequisites). |
+
+ Please refer to the **Universal Orchestrator (remote)** usage section ([PAM providers on the Keyfactor Integration Catalog](https://keyfactor.github.io/integrations-catalog/content/pam)) for your selected PAM provider for instructions on how to load attributes orchestrator-side.
+
+ > Any secret can be rendered by a PAM provider _installed on the Keyfactor Command server_. The above parameters are specific to attributes that can be fetched by an installed PAM provider running on the Universal Orchestrator server itself.
+
+
+
+
+
+* **Using kfutil**
+
+ Create Certificate Stores with kfutil
+
+ 1. **Generate a CSV template for the f5WafCa certificate store**
+
+ ```shell
+ kfutil stores import generate-template --store-type-name f5WafCa --outpath f5WafCa.csv
+ ```
+ 2. **Populate the generated CSV file**
+
+ Open the CSV file, and reference the table below to populate parameters for each **Attribute**.
+ | Attribute | Description |
+ | --------- | ----------- |
+ | Category | Select "F5 WAF CA" or the customized certificate store name from the previous step. |
+ | Container | Optional container to associate certificate store with. |
+ | Client Machine | The URL for the F5 Distributed Cloud instance (typically ending in '.console.ves.volterra.io'). |
+ | Store Path | The Multi-Cloud App Connect namespace containing the certificates you wish to manage. |
+ | Orchestrator | Select an approved orchestrator capable of managing `f5WafCa` certificates. Specifically, one with the `f5WafCa` capability. |
+ | ServerUsername | Not used, but a value is required. Enter anything into this field. |
+ | ServerPassword | The API Token configured in the F5 Distributed Cloud instance's Account Settings. Please see [Creating an F5 WAF API Token](#requirements-&-prerequisites). |
+
+
+
+
+ Attributes eligible for retrieval by a PAM Provider on the Universal Orchestrator
+
+ If a PAM provider was installed _on the Universal Orchestrator_ in the [Installation](#Installation) section, the following parameters can be configured for retrieval _on the Universal Orchestrator_.
+ | Attribute | Description |
+ | --------- | ----------- |
+ | ServerPassword | The API Token configured in the F5 Distributed Cloud instance's Account Settings. Please see [Creating an F5 WAF API Token](#requirements-&-prerequisites). |
+
+
+ > Any secret can be rendered by a PAM provider _installed on the Keyfactor Command server_. The above parameters are specific to attributes that can be fetched by an installed PAM provider running on the Universal Orchestrator server itself.
+
+
+
+ 3. **Import the CSV file to create the certificate stores**
+
+ ```shell
+ kfutil stores import csv --store-type-name f5WafCa --file f5WafCa.csv
+ ```
+
+
+> The content in this section can be supplimented by the [official Command documentation](https://software.keyfactor.com/Core-OnPrem/Current/Content/ReferenceGuide/Certificate%20Stores.htm?Highlight=certificate%20store).
+
+
+
+
+## Discovering Certificate Stores with the Discovery Job
The following table describes the required and optional fields to schedule a Discovery job for the `f5WafTls` and `f5WafCa` certificate store types.
In Keyfactor Command, navigate to Certificate Stores from the Locations Menu and then click on the Discover tab.
@@ -245,8 +441,8 @@ In Keyfactor Command, navigate to Certificate Stores from the Locations Menu and
| Orchestrator | Select an approved orchestrator capable of managing F5 WAF certificates. Specifically, one with the f5WafTls and f5WafCa capabilities. |
| Schedule | Enter the schedule for when you want the job to run |
| Client Machine | The URL for the F5 Distributed Cloud instance (typically ending in '.console.ves.volterra.io'. |
-| Server Username | The username used to log in to the F5 Distributed Cloud instance (typically an email). |
-| Server Password | The API Token configured in the F5 Distributed Cloud instance's Account Settings. Please see [Creating an F5 WAF API Token](#creating-an-f5-waf-api-token) for more details on creating this token. |
+| Server Username | This is not used but required in the UI. Enter any value. |
+| Server Password | The API Token configured in the F5 Distributed Cloud instance's Account Settings. Please see [Requirements](#requirements) for more details on creating this token. |
| Directories to Search | Not used for this integration. Leave Blank. |
| Directories to ignore | Not used for this integration. Leave Blank. |
| Extensions | Not used for this integration. Leave Blank. |
@@ -257,21 +453,15 @@ In Keyfactor Command, navigate to Certificate Stores from the Locations Menu and
Discovery jobs will return all known namespaces for this F5 WAF instance. Please note that because Keyfactor Command has a restriction on multiple certificate stores having the same Client Machine and Store Path, certificate stores for f5WafTls will return stores with a "tls-" prefixed to the beginning of the store path (namespace); while f5WafCA stores will have "ca-" prefixed. Any jobs that run for stores with these prefixes will have these prefixes removed before calling any F5 WAF APIs. What this means is a store path (namespace) for an f5WafTls store of "tls-namespace1" will be the same as one labeled "namespace1".
-
-## Creating an F5 WAF API Token
-In lieu of providing a server password when setting up an F5 WAF certificate store, F5 Multi-Cloud App Connect uses API tokens combined with the user id to authenticate when calling APIs. API Tokens can be created through the F5 Distributed Cloud Console after logging in with the ID you wish to use for the Keyfactor certificate store. Once logged in, select Multi-Cloud App Connect from the options under "Common services". Next, select Account Services from the pull down at the top right of the screen, and select "Account Settings". From there, click on "Credentials" on the left nav and "Add Credentials" on the subsequent screen. In the form shown, select "API Token" from the Credential Type dropdown, and enter the name of the credential and the expiration date. Please note that credentials can only be created for up to 90 day periods of time. After 90 days, a new API token will need to be generated and replaced in your F5 WAF certificate store(s). Clicking Generate will then show the value of the newly created API Token. Copy this and save to a safe place, as this will be the value you will enter in the Server Password field when setting up your certificate store. If you forget or lose this token value, there is no way to access it again in the F5 Distributed Cloud portal. You will need to create a new API Token.
-
-
-
-
-
-
+## License
-When creating cert store type manually, that store property names and entry parameter names are case sensitive
+Apache License 2.0, see [LICENSE](LICENSE).
+## Related Integrations
+See all [Keyfactor Universal Orchestrator extensions](https://github.com/orgs/Keyfactor/repositories?q=orchestrator).
\ No newline at end of file
diff --git a/docsource/content.md b/docsource/content.md
new file mode 100644
index 0000000..476aa28
--- /dev/null
+++ b/docsource/content.md
@@ -0,0 +1,40 @@
+## Overview
+
+The F5 WAF Orchestrator extension remotely manages TLS and CA Root certificates uploaded to F5 Distributed Multi-Cloud App Connect, which is the F5 platform that manages WAF services. Certificates bound to Http Load Balancers within Multi-Cloud App Connect can be renewed/replaced, but they cannot be removed. Certificate store types f5WafTls and f5WafCa are used to manage stores containing TLS and CA Root certificates, respectively.
+
+
+## Requirements
+
+F5 Multi-Cloud App Connect uses API tokens to authenticate when calling APIs. API Tokens can be created through the F5 Distributed Cloud Console. Once logged in, select Multi-Cloud App Connect from the options under "Common services". Next, select Account Services from the pull down at the top right of the screen, and select "Account Settings". From there, click on "Credentials" on the left nav and "Add Credentials" on the subsequent screen. In the form shown, select "API Token" from the Credential Type dropdown, and enter the name of the credential and the expiration date. Please note that credentials can only be created for up to 90 day periods of time. After 90 days, a new API token will need to be generated and replaced in your F5 WAF certificate store(s). Clicking Generate will then show the value of the newly created API Token. Copy this and save to a safe place, as this will be the value you will enter in the Server Password field when setting up your certificate store. If you forget or lose this token value, there is no way to access it again in the F5 Distributed Cloud portal. You will need to create a new API Token.
+
+
+
+
+
+
+
+
+
+## Discovery
+
+The following table describes the required and optional fields to schedule a Discovery job for the `f5WafTls` and `f5WafCa` certificate store types.
+
+In Keyfactor Command, navigate to Certificate Stores from the Locations Menu and then click on the Discover tab.
+
+| Attribute | Description |
+| --------- |------------------------------------------------------------------------------------------------------------------------------------------------|
+| Category | Select either F5WafTls or F5WafCa depending on whether you want to return namespaces for TLS certificates or CA Root certificates. |
+| Orchestrator | Select an approved orchestrator capable of managing F5 WAF certificates. Specifically, one with the f5WafTls and f5WafCa capabilities. |
+| Schedule | Enter the schedule for when you want the job to run |
+| Client Machine | The URL for the F5 Distributed Cloud instance (typically ending in '.console.ves.volterra.io'. |
+| Server Username | This is not used but required in the UI. Enter any value. |
+| Server Password | The API Token configured in the F5 Distributed Cloud instance's Account Settings. Please see Requirements & Prerequisites for more information on creating this token. |
+| Directories to Search | Not used for this integration. Leave Blank. |
+| Directories to ignore | Not used for this integration. Leave Blank. |
+| Extensions | Not used for this integration. Leave Blank. |
+| File name patterns to match | Not used for this integration. Leave Blank. |
+| Follow SymLinks | Not used for this integration. Leave Unchecked. |
+| Follow SymLinks | Not used for this integration. Leave Unchecked. |
+| Use SSL? | Not used for this integration. Leave Unchecked. |
+
+Discovery jobs will return all known namespaces for this F5 WAF instance. Please note that because Keyfactor Command has a restriction on multiple certificate stores having the same Client Machine and Store Path, certificate stores for f5WafTls will return stores with a "tls-" prefixed to the beginning of the store path (namespace); while f5WafCA stores will have "ca-" prefixed. Any jobs that run for stores with these prefixes will have these prefixes removed before calling any F5 WAF APIs. What this means is a store path (namespace) for an f5WafTls store of "tls-namespace1" will be the same as one labeled "namespace1".
\ No newline at end of file
diff --git a/docsource/f5wafca.md b/docsource/f5wafca.md
new file mode 100644
index 0000000..7a70db8
--- /dev/null
+++ b/docsource/f5wafca.md
@@ -0,0 +1,9 @@
+## Overview
+
+The f5WafCa certificate store type is used to manage F5 Distributed Multi-Cloud App Connect CA Root certificates.
+
+Use cases supported:
+1. Discovery of TLS stores. Discovery for F5 WAF returns any discoverable namespaces in the F5 WAF instance.
+2. Inventory of a TLS store. All CA Root certificates within a namespace will be returned to Keyfactor Command.
+3. Management-Add. Add a new certificate or renew an existing one.
+4. Management-Delete. Remove an existing certificate. Please note, for CA Root certicates, deleting an existing certificate will replace ALL instances of the same certificate and not only the one represented by the intended alias. This is an F5 WAF feature that the integration has no control over.
\ No newline at end of file
diff --git a/docsource/f5waftls.md b/docsource/f5waftls.md
new file mode 100644
index 0000000..c8df687
--- /dev/null
+++ b/docsource/f5waftls.md
@@ -0,0 +1,9 @@
+## Overview
+
+The f5WafTls certificate store type is used to manage F5 Distributed Multi-Cloud App Connect TLS certificates.
+
+Use cases supported:
+1. Discovery of TLS stores. Discovery for F5 WAF returns any discoverable namespaces in the F5 WAF instance.
+2. Inventory of a TLS store. All TLS certificates, bound or unbound, within a namespace will be returned to Keyfactor Command.
+3. Management-Add. Add a new certificate or renew an existing one. Renew will work for both bound and unbound certificates. All existing binding will remain in place, bound to the same alias with the newly replaced/renewed certificate.
+4. Management-Delete. Remove an existing certificate. Will only work for unbound certificates.
\ No newline at end of file
diff --git a/integration-manifest.json b/integration-manifest.json
index 7cd4ebc..c7e110e 100644
--- a/integration-manifest.json
+++ b/integration-manifest.json
@@ -6,6 +6,7 @@
"link_github": true,
"update_catalog": true,
"release_dir": "F5WafOrchestrator/bin/Release",
+ "release_project": "F5WafOrchestrator/F5WafOrchestrator.csproj",
"support_level": "kf-supported",
"description": "The F5 WAF Orchestrator is an extension to the Keyfactor Universal Orchestrator. It Integrates with Multi-Cloud App Connect, which is F5 Distributed Cloud's service for connecting apps across clouds and within on premise installationss using load balancers. The purpose of the F5 WAF orchestrator is to manage the TLS and CA Root certificates. The TLS certificates may be bound to load balancers. The orchestrator facilitates the inventory, addition, renewal, and removal of these certificates as well as the discovery of namespaces (certificate stores) within the F5 Multi-Cloud App Connect instance.",
"about": {
@@ -13,26 +14,8 @@
"UOFramework": "10.4.1",
"pam_support": true,
"keyfactor_platform_version": "9.10",
- "win": {
- "supportsCreateStore": false,
- "supportsDiscovery": true,
- "supportsManagementAdd": true,
- "supportsManagementRemove": true,
- "supportsReenrollment": false,
- "supportsInventory": true,
- "platformSupport": "Unused"
- },
- "linux": {
- "supportsCreateStore": false,
- "supportsDiscovery": true,
- "supportsManagementAdd": true,
- "supportsManagementRemove": true,
- "supportsReenrollment": false,
- "supportsInventory": true,
- "platformSupport": "Unused"
- },
- "store_types": {
- "f5WafTls": {
+ "store_types": [
+ {
"Name": "F5 WAF TLS",
"ShortName": "f5WafTls",
"Capability": "f5WafTls",
@@ -43,7 +26,28 @@
"Enrollment": false,
"Remove": true
},
- "Properties": [],
+ "Properties": [
+ {
+ "Name": "ServerUsername",
+ "DisplayName": "Server Username",
+ "Type": "Secret",
+ "DependsOn": "",
+ "DefaultValue": "",
+ "Required": false,
+ "IsPAMEligible": false,
+ "Description": "Not used, but a value is required. Enter anything into this field."
+ },
+ {
+ "Name": "ServerPassword",
+ "DisplayName": "Server Password",
+ "Type": "Secret",
+ "DependsOn": "",
+ "DefaultValue": "",
+ "Required": false,
+ "IsPAMEligible": false,
+ "Description": "The API Token configured in the F5 Distributed Cloud instance's Account Settings. Please review Requirements & Prerequisites for more information on creating this API token."
+ }
+ ],
"EntryParameters": [],
"PasswordOptions": {
"EntrySupported": false,
@@ -55,9 +59,11 @@
"ServerRequired": true,
"PowerShell": false,
"BlueprintAllowed": true,
- "CustomAliasAllowed": "Required"
+ "CustomAliasAllowed": "Required",
+ "ClientMachineDescription": "The URL for the F5 Distributed Cloud instance (typically ending in '.console.ves.volterra.io').",
+ "StorePathDescription": "The Multi-Cloud App Connect namespace containing the certificates you wish to manage."
},
- "f5WafCa": {
+ {
"Name": "F5 WAF CA",
"ShortName": "f5WafCa",
"Capability": "f5WafCa",
@@ -68,7 +74,28 @@
"Enrollment": false,
"Remove": true
},
- "Properties": [],
+ "Properties": [
+ {
+ "Name": "ServerUsername",
+ "DisplayName": "Server Username",
+ "Type": "Secret",
+ "DependsOn": "",
+ "DefaultValue": "",
+ "Required": false,
+ "IsPAMEligible": false,
+ "Description": "Not used, but a value is required. Enter anything into this field."
+ },
+ {
+ "Name": "ServerPassword",
+ "DisplayName": "Server Password",
+ "Type": "Secret",
+ "DependsOn": "",
+ "DefaultValue": "",
+ "Required": false,
+ "IsPAMEligible": true,
+ "Description": "The API Token configured in the F5 Distributed Cloud instance's Account Settings. Please review Requirements & Prerequisites for more information on creating this API token."
+ }
+ ],
"EntryParameters": [],
"PasswordOptions": {
"EntrySupported": false,
@@ -80,9 +107,11 @@
"ServerRequired": true,
"PowerShell": false,
"BlueprintAllowed": true,
- "CustomAliasAllowed": "Required"
+ "CustomAliasAllowed": "Required",
+ "ClientMachineDescription": "The URL for the F5 Distributed Cloud instance (typically ending in '.console.ves.volterra.io').",
+ "StorePathDescription": "The Multi-Cloud App Connect namespace containing the certificates you wish to manage."
}
- }
+ ]
}
}
}
diff --git a/readme-src/readme-pam-support.md b/readme-src/readme-pam-support.md
deleted file mode 100644
index afa937b..0000000
--- a/readme-src/readme-pam-support.md
+++ /dev/null
@@ -1,5 +0,0 @@
-|Name|Description|
-|----|-----------|
-|ServerUsername|The user id that will be used to authenticate to the F5 WAF API endpoints|
-|ServerPassword|The API token that will be used to authenticate to the F5 WAF API endpoints|
-
diff --git a/readme_source.md b/readme_source.md
deleted file mode 100644
index bacb491..0000000
--- a/readme_source.md
+++ /dev/null
@@ -1,173 +0,0 @@
-## Overview
-The F5 WAF Orchestrator extension remotely manages TLS and CA Root certificates uploaded to F5 Distributed Multi-Cloud App Connect, which is the F5 platform that manages WAF services. Certificates bound to Http Load Balancers within Multi-Cloud App Connect can be renewed/replaced, but they cannot be removed. Certificate store types f5WafTls and f5WafCa are used to manage stores containing TLS and CA Root certificates, respectively.
-
-
-f5WafTls
-
-The f5WafTls certificate store type is used to manage F5 Distributed Multi-Cloud App Connect TLS certificates.
-
-Use cases supported:
-1. Discovery of TLS stores. Discovery for F5 WAF returns any discoverable namespaces in the F5 WAF instance.
-2. Inventory of a TLS store. All TLS certificates, bound or unbound, within a namespace will be returned to Keyfactor Command.
-3. Management-Add. Add a new certificate or renew an existing one. Renew will work for both bound and unbound certificates. All existing binding will remain in place, bound to the same alias with the newly replaced/renewed certificate.
-4. Management-Delete. Remove an existing certificate. Will only work for unbound certificates.
-
-
-
-
-f5WafCa
-
-The f5WafCa certificate store type is used to manage F5 Distributed Multi-Cloud App Connect CA Root certificates.
-
-Use cases supported:
-1. Discovery of TLS stores. Discovery for F5 WAF returns any discoverable namespaces in the F5 WAF instance.
-2. Inventory of a TLS store. All CA Root certificates within a namespace will be returned to Keyfactor Command.
-3. Management-Add. Add a new certificate or renew an existing one.
-4. Management-Delete. Remove an existing certificate. Please note, for CA Root certicates, deleting an existing certificate will replace ALL instances of the same certificate and not only the one represented by the intended alias. This is an F5 WAF feature that the integration has no control over.
-
-
-
-
-## F5 WAF Orchestrator Extension Installation
-
-1. Refer to the [Creating Certificate Store Types](#creating-certificate-store-types) section to create the certificate store types you wish to manage.
-2. Stop the Keyfactor Universal Orchestrator Service on the server you plan to install this extension to run on.
-3. In the Keyfactor Orchestrator installation folder (by convention usually C:\Program Files\Keyfactor\Keyfactor Orchestrator for a Windows install or /opt/keyfactor/orchestrator/ for a Linux install), find the "Extensions" folder. Underneath that, create a new folder named "F5Waf". You may choose to use a different name if you wish.
-4. Download the latest version of the F5 WAF orchestrator extension from [GitHub](https://github.com/Keyfactor/f5-waf-orchestrator). Click on the "Latest" release link on the right hand side of the main page and download the first zip file.
-5. Copy the contents of the download installation zip file to the folder created in step 3.
-6. (Optional) If you decide to create one or more certificate store types with short names different than the suggested values, edit the manifest.json file in the folder you created in step 3, and modify each "ShortName" in each "Certstores.{ShortName}.{Operation}" line with the ShortName you used to create the respective certificate store type.
-7. Start the Keyfactor Universal Orchestrator Service.
-
-
-## Creating Certificate Store Types
-
-Below are the two certificate store types that the F5 WAF Orchestator Extension manages. To create a new Certificate Store Type in Keyfactor Command, first click on settings (the gear icon on the top right) => Certificate Store Types => Add. Next, follow the instructions under each store type you wish to set up.
-
-
-f5WafTls - TLS certificates in a namespace
-
-- Basic Tab:
-
- - **Name** – Required. The display name you wish to use for the new Certificate Store Type.
- - **Short Name** – Required. Suggested value - **f5WafTls**. If you choose to use a different value you must make the corresponding modification to the manifest.json file. See [F5 WAF Orchestrator Extension Installation](#f5-waf-orchestrator-extension-installation), step 6 above.
- - **Custom Capability** - Unchecked
- - **Supported Job Types** - Inventory, Add, Remove, and Discovery should all be checked.
- - **Needs Server** - Checked
- - **Blueprint Allowed** - Checked if you wish to make use of blueprinting. Please refer to the Keyfactor Command Reference Guide for more details on this feature.
- - **Uses PowerShell** - Unchecked
- - **Requires Store Password** - Unchecked
- - **Supports Entry Password** - Unchecked
-
-- Advanced Tab:
-
- - **Store Path Type** - Freeform
- - **Supports Custom Alias** - Required.
- - **Private Key Handling** - Required.
- - **PFX Password Style** - Default
-
-- Custom Fields Tab:
-
- - no additional custom fields
-
-- Entry Parameters Tab:
-
- - no additional entry parameters
-
-
-
-
-f5WafCa - CA Root certificates in a namespace
-
-- Basic Tab:
-
- - **Name** – Required. The display name you wish to use for the new Certificate Store Type.
- - **Short Name** – Required. Suggested value - **f5WafCa**. If you choose to use a different value you must make the corresponding modification to the manifest.json file. See [F5 WAF Orchestrator Extension Installation](#f5-waf-orchestrator-extension-installation), step 6 above.
- - **Custom Capability** - Unchecked
- - **Supported Job Types** - Inventory, Add, Remove, and Discovery should all be checked.
- - **Needs Server** - Checked
- - **Blueprint Allowed** - Checked if you wish to make use of blueprinting. Please refer to the Keyfactor Command Reference Guide for more details on this feature.
- - **Uses PowerShell** - Unchecked
- - **Requires Store Password** - Unchecked
- - **Supports Entry Password** - Unchecked
-
-- Advanced Tab:
-
- - **Store Path Type** - Freeform
- - **Supports Custom Alias** - Required.
- - **Private Key Handling** - Forbidden.
- - **PFX Password Style** - Default
-
-- Custom Fields Tab:
-
- - no additional custom fields
-
-- Entry Parameters Tab:
-
- - no additional entry parameters
-
-
-
-
-## Creating Certificate Stores and Scheduling Discovery Jobs
-
-When creating new certificate stores or scheduling discovery jobs in Keyfactor Command, there are a few fields that are important to highlight here:
-
-
-Certificate Stores
-
-The following table describes the required and optional fields for the `f5WafTls` and `f5WafCa` certificate store types when creating a certificate store.
-
-In Keyfactor Command, navigate to Certificate Stores from the Locations Menu. Click the Add button to create a new Certificate Store.
-
-| Attribute | Description |
-| --------- |------------------------------------------------------------------------------------------------------------------------------------------------|
-| Category | Select either f5WafTls or f5WafCa depending on whether you want to manage TLS certificates or Root CA certificates. |
-| Container | Optional container to associate certificate store with. |
-| Client Machine | The URL for the F5 Distributed Cloud instance (typically ending in '.console.ves.volterra.io'). |
-| Store Path | The Multi-Cloud App Connect namespace containing the certificates you wish to manage. |
-| Orchestrator | Select an approved orchestrator capable of managing F5 WAF certificates. Specifically, one with the f5WafTls and f5WafCa capabilities. |
-| Server Username | The username used to log in to the F5 Distributed Cloud instance (typically an email). |
-| Server Password | The API Token configured in the F5 Distributed Cloud instance's Account Settings. Please see [Creating an F5 WAF API Token](#creating-an-f5-waf-api-token) for more details on creating this token. |
-| Use SSL | Not used for this integration, so either setting is fine. |
-
-
-
-
-Discovery Jobs
-
-The following table describes the required and optional fields to schedule a Discovery job for the `f5WafTls` and `f5WafCa` certificate store types.
-
-In Keyfactor Command, navigate to Certificate Stores from the Locations Menu and then click on the Discover tab.
-
-| Attribute | Description |
-| --------- |------------------------------------------------------------------------------------------------------------------------------------------------|
-| Category | Select either F5WafTls or F5WafCa depending on whether you want to return namespaces for TLS certificates or CA Root certificates. |
-| Orchestrator | Select an approved orchestrator capable of managing F5 WAF certificates. Specifically, one with the f5WafTls and f5WafCa capabilities. |
-| Schedule | Enter the schedule for when you want the job to run |
-| Client Machine | The URL for the F5 Distributed Cloud instance (typically ending in '.console.ves.volterra.io'. |
-| Server Username | The username used to log in to the F5 Distributed Cloud instance (typically an email). |
-| Server Password | The API Token configured in the F5 Distributed Cloud instance's Account Settings. Please see [Creating an F5 WAF API Token](#creating-an-f5-waf-api-token) for more details on creating this token. |
-| Directories to Search | Not used for this integration. Leave Blank. |
-| Directories to ignore | Not used for this integration. Leave Blank. |
-| Extensions | Not used for this integration. Leave Blank. |
-| File name patterns to match | Not used for this integration. Leave Blank. |
-| Follow SymLinks | Not used for this integration. Leave Unchecked. |
-| Follow SymLinks | Not used for this integration. Leave Unchecked. |
-| Use SSL? | Not used for this integration. Leave Unchecked. |
-
-Discovery jobs will return all known namespaces for this F5 WAF instance. Please note that because Keyfactor Command has a restriction on multiple certificate stores having the same Client Machine and Store Path, certificate stores for f5WafTls will return stores with a "tls-" prefixed to the beginning of the store path (namespace); while f5WafCA stores will have "ca-" prefixed. Any jobs that run for stores with these prefixes will have these prefixes removed before calling any F5 WAF APIs. What this means is a store path (namespace) for an f5WafTls store of "tls-namespace1" will be the same as one labeled "namespace1".
-
-
-
-
-## Creating an F5 WAF API Token
-
-In lieu of providing a server password when setting up an F5 WAF certificate store, F5 Multi-Cloud App Connect uses API tokens combined with the user id to authenticate when calling APIs. API Tokens can be created through the F5 Distributed Cloud Console after logging in with the ID you wish to use for the Keyfactor certificate store. Once logged in, select Multi-Cloud App Connect from the options under "Common services". Next, select Account Services from the pull down at the top right of the screen, and select "Account Settings". From there, click on "Credentials" on the left nav and "Add Credentials" on the subsequent screen. In the form shown, select "API Token" from the Credential Type dropdown, and enter the name of the credential and the expiration date. Please note that credentials can only be created for up to 90 day periods of time. After 90 days, a new API token will need to be generated and replaced in your F5 WAF certificate store(s). Clicking Generate will then show the value of the newly created API Token. Copy this and save to a safe place, as this will be the value you will enter in the Server Password field when setting up your certificate store. If you forget or lose this token value, there is no way to access it again in the F5 Distributed Cloud portal. You will need to create a new API Token.
-
-
-
-
-
-
-
-