Skip to content

Commit

Permalink
Make token auth a selection
Browse files Browse the repository at this point in the history
  • Loading branch information
leefine02 authored and leefine02 committed Oct 16, 2023
1 parent 7a9886e commit 5771dee
Show file tree
Hide file tree
Showing 3 changed files with 324 additions and 2 deletions.
2 changes: 1 addition & 1 deletion F5Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public F5Client(CertificateStore certificateStore, string serverUserName, string
UseSSL = useSSL;
PFXPassword = pfxPassword;
IgnoreSSLWarning = ignoreSSLWarning;
UseTokenAuth = UseTokenAuth;
UseTokenAuth = useTokenAuth;
Inventory = inventory;

if (logger == null)
Expand Down
322 changes: 321 additions & 1 deletion integration-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,327 @@
"supportsReenrollment": false,
"supportsInventory": true,
"platformSupport": "Unused"
}
},
"store_types": {
"F5-SL-REST": {
"Name": "F5 SSL Profiles REST",
"ShortName": "F5-SL-REST",
"Capability": "F5-SL-REST",
"SupportedOperations": {
"Add": true,
"Create": false,
"Discovery": true,
"Enrollment": false,
"Remove": true
},
"Properties": [
{
"Name": "PrimaryNode",
"DisplayName": "Primary Node",
"Type": "String",
"DependsOn": "PrimaryNodeOnlineRequired",
"DefaultValue": "",
"Required": true
},
{
"Name": "PrimaryNodeCheckRetryWaitSecs",
"DisplayName": "Primary Node Check Retry Wait Seconds",
"Type": "String",
"DependsOn": "PrimaryNodeOnlineRequired",
"DefaultValue": "120",
"Required": true
},
{
"Name": "PrimaryNodeCheckRetryMax",
"DisplayName": "Primary Node Check Retry Maximum",
"Type": "String",
"DependsOn": "PrimaryNodeOnlineRequired",
"DefaultValue": "3",
"Required": true
},
{
"Name": "F5Version",
"DisplayName": "Version of F5",
"Type": "MultipleChoice",
"DependsOn": "",
"DefaultValue": "v12,v13,v14,v15",
"Required": true
},
{
"Name": "ServerUsername",
"DisplayName": "Server Username",
"Type": "Secret",
"DependsOn": "",
"DefaultValue": null,
"Required": false
},
{
"Name": "ServerPassword",
"DisplayName": "Server Password",
"Type": "Secret",
"DependsOn": "",
"DefaultValue": null,
"Required": false
},
{
"Name": "ServerUseSsl",
"DisplayName": "Use SSL",
"Type": "Bool",
"DependsOn": "",
"DefaultValue": "true",
"Required": true
},
{
"Name": "PrimaryNodeOnlineRequired",
"DisplayName": "Primary Node Online Required",
"Type": "Bool",
"DependsOn": "",
"DefaultValue": "",
"Required": true
},
{
"Name": "IgnoreSSLWarning",
"DisplayName": "Ignore SSL Warning",
"Type": "Bool",
"DependsOn": "",
"DefaultValue": "False",
"Required": true
},
{
"Name": "UseTokenAuth",
"DisplayName": "Use Token Authentication",
"Type": "Bool",
"DependsOn": "",
"DefaultValue": "false",
"Required": true
}
],
"EntryParameters": [],
"PasswordOptions": {
"EntrySupported": false,
"StoreRequired": false,
"Style": "Default"
},
"PrivateKeyAllowed": "Optional",
"JobProperties": [],
"ServerRequired": true,
"PowerShell": false,
"BlueprintAllowed": true,
"CustomAliasAllowed": "Required"
},
"F5-WS-REST": {
"Name": "F5 WS Profiles REST",
"ShortName": "F5-WS-REST",
"Capability": "F5-WS-REST",
"SupportedOperations": {
"Add": true,
"Create": false,
"Discovery": false,
"Enrollment": false,
"Remove": false
},
"Properties": [
{
"Name": "PrimaryNode",
"DisplayName": "Primary Node",
"Type": "String",
"DependsOn": "PrimaryNodeOnlineRequired",
"DefaultValue": "",
"Required": true
},
{
"Name": "PrimaryNodeCheckRetryWaitSecs",
"DisplayName": "Primary Node Check Retry Wait Seconds",
"Type": "String",
"DependsOn": "PrimaryNodeOnlineRequired",
"DefaultValue": "120",
"Required": true
},
{
"Name": "PrimaryNodeCheckRetryMax",
"DisplayName": "Primary Node Check Retry Maximum",
"Type": "String",
"DependsOn": "PrimaryNodeOnlineRequired",
"DefaultValue": "3",
"Required": true
},
{
"Name": "F5Version",
"DisplayName": "Version of F5",
"Type": "MultipleChoice",
"DependsOn": "",
"DefaultValue": "v12,v13,v14,v15",
"Required": true
},
{
"Name": "ServerUsername",
"DisplayName": "Server Username",
"Type": "Secret",
"DependsOn": "",
"DefaultValue": null,
"Required": false
},
{
"Name": "ServerPassword",
"DisplayName": "Server Password",
"Type": "Secret",
"DependsOn": "",
"DefaultValue": null,
"Required": false
},
{
"Name": "ServerUseSsl",
"DisplayName": "Use SSL",
"Type": "Bool",
"DependsOn": "",
"DefaultValue": "true",
"Required": true
},
{
"Name": "PrimaryNodeOnlineRequired",
"DisplayName": "Primary Node Online Required",
"Type": "Bool",
"DependsOn": "",
"DefaultValue": "",
"Required": true
},
{
"Name": "IgnoreSSLWarning",
"DisplayName": "Ignore SSL Warning",
"Type": "Bool",
"DependsOn": "",
"DefaultValue": "False",
"Required": true
},
{
"Name": "UseTokenAuth",
"DisplayName": "Use Token Authentication",
"Type": "Bool",
"DependsOn": "",
"DefaultValue": "false",
"Required": true
}
],
"EntryParameters": [],
"PasswordOptions": {
"EntrySupported": false,
"StoreRequired": false,
"Style": "Default"
},
"PrivateKeyAllowed": "Required",
"JobProperties": [],
"ServerRequired": true,
"PowerShell": false,
"BlueprintAllowed": true,
"CustomAliasAllowed": "Forbidden"
},
"F5-CA-REST": {
"Name": "F5 CA Profiles REST",
"ShortName": "F5-CA-REST",
"Capability": "F5-CA-REST",
"SupportedOperations": {
"Add": true,
"Create": false,
"Discovery": true,
"Enrollment": false,
"Remove": true
},
"Properties": [
{
"Name": "PrimaryNode",
"DisplayName": "Primary Node",
"Type": "String",
"DependsOn": "PrimaryNodeOnlineRequired",
"DefaultValue": "",
"Required": true
},
{
"Name": "PrimaryNodeCheckRetryWaitSecs",
"DisplayName": "Primary Node Check Retry Wait Seconds",
"Type": "String",
"DependsOn": "PrimaryNodeOnlineRequired",
"DefaultValue": "120",
"Required": true
},
{
"Name": "PrimaryNodeCheckRetryMax",
"DisplayName": "Primary Node Check Retry Maximum",
"Type": "String",
"DependsOn": "PrimaryNodeOnlineRequired",
"DefaultValue": "3",
"Required": true
},
{
"Name": "F5Version",
"DisplayName": "Version of F5",
"Type": "MultipleChoice",
"DependsOn": "",
"DefaultValue": "v12,v13,v14,v15",
"Required": true
},
{
"Name": "ServerUsername",
"DisplayName": "Server Username",
"Type": "Secret",
"DependsOn": "",
"DefaultValue": null,
"Required": false
},
{
"Name": "ServerPassword",
"DisplayName": "Server Password",
"Type": "Secret",
"DependsOn": "",
"DefaultValue": null,
"Required": false
},
{
"Name": "ServerUseSsl",
"DisplayName": "Use SSL",
"Type": "Bool",
"DependsOn": "",
"DefaultValue": "true",
"Required": true
},
{
"Name": "PrimaryNodeOnlineRequired",
"DisplayName": "Primary Node Online Required",
"Type": "Bool",
"DependsOn": "",
"DefaultValue": "",
"Required": true
},
{
"Name": "IgnoreSSLWarning",
"DisplayName": "Ignore SSL Warning",
"Type": "Bool",
"DependsOn": "",
"DefaultValue": "False",
"Required": true
},
{
"Name": "UseTokenAuth",
"DisplayName": "Use Token Authentication",
"Type": "Bool",
"DependsOn": "",
"DefaultValue": "false",
"Required": true
}
],
"EntryParameters": [],
"PasswordOptions": {
"EntrySupported": false,
"StoreRequired": false,
"Style": "Default"
},
"PrivateKeyAllowed": "Forbidden",
"JobProperties": [],
"ServerRequired": true,
"PowerShell": false,
"BlueprintAllowed": true,
"CustomAliasAllowed": "Required"
}
}
}
}
}
2 changes: 2 additions & 0 deletions readme_source.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ If you choose to manually create a F5 store In Keyfactor Command rather than run

- **Ignore SSL Warning** - Optional. Select this if you wish to ignore SSL warnings from F5 that occur during API calls when the site does not have a trusted certificate with the proper SAN bound to it. If you choose not to add this custom field, the default value of False will be assumed and SSL warnings will cause errors during orchestrator extension jobs.

- **Use Token Authentication** - Optional. Select this if you wish to use F5's token authentiation instead of basic authentication for all API requests. If you choose not to add this custom field, the default value of False will be assumed and basic authentication will be used for all API requests for all jobs. Setting this value to True will enable an initial basic authenticated request to acquire an authentication token, which will then be used for all subsequent API requests.

- **Orchestrator** – Required. Select the orchestrator you wish to use to manage this store

- **Inventory Schedule** – Set a schedule for running Inventory jobs or none, if you choose not to schedule Inventory at this time.
Expand Down

0 comments on commit 5771dee

Please sign in to comment.