Skip to content

Commit

Permalink
Update manifest and docs to 5.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbarron committed Oct 31, 2022
1 parent 643d60f commit a5b4d21
Show file tree
Hide file tree
Showing 15 changed files with 513 additions and 70 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
## 5.2.0
- Add `Find-VaasObject` to search for ActivityLog, Machine, MachineIdentity, CertificateRequest, and CertificateInstance
- Add `-IssueDateBefore` and `IssueDateAfter` to `Find-VenafiCertificate` for TPP
- Add `New-TppObject -Force` to create missing parent policy folders
- Supercharge New-TppPolicy
- Add `-Name` to provide a list of policy folders to create
- Add `-Attribute` and `-PolicyAttribute` to set both kinds of attributes at policy creation time
- Add `-Force` to create missing parent policy folders
- Update messaging for `Export-VenafiCertificate` when using parameters for the wrong platform, [#149](https://github.com/Venafi/VenafiPS/issues/149)
- Update `New-VaasApplication -Owner` to accept a name in addition to guid
- Update VaaS searching to be aware of fields/values case sensitivity and adjust where needed. Eg., certificatestatus as opposed to certificateStatus.
- Fix `Find-TppObject` parameter sets to disallow -Recursive when -Path not provided, [#153](https://github.com/Venafi/VenafiPS/issues/153)
- Fix `Find-VenafiCertificate -Issuer` not working due to missing quotes, [#146](https://github.com/Venafi/VenafiPS/issues/146)
- Fix `Invoke-VenafiRestMethod -FullResponse` consuming certain errors instead of throwing them, [#152](https://github.com/Venafi/VenafiPS/issues/152)
- Fix `Get-VaasIssuingTemplate -All` not executing under certain circumstances



## 5.1.1
- Minor bugfix

Expand Down Expand Up @@ -455,5 +473,6 @@






4 changes: 2 additions & 2 deletions VenafiPS/VenafiPS.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Venafi
#
# Generated on: 09/30/2022
# Generated on: 10/31/2022
#

@{
Expand All @@ -12,7 +12,7 @@
RootModule = 'VenafiPS.psm1'

# Version number of this module.
ModuleVersion = '5.2'
ModuleVersion = '5.2.0'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
19 changes: 19 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
## 5.2.0
- Add `Find-VaasObject` to search for ActivityLog, Machine, MachineIdentity, CertificateRequest, and CertificateInstance
- Add `-IssueDateBefore` and `IssueDateAfter` to `Find-VenafiCertificate` for TPP
- Add `New-TppObject -Force` to create missing parent policy folders
- Supercharge New-TppPolicy
- Add `-Name` to provide a list of policy folders to create
- Add `-Attribute` and `-PolicyAttribute` to set both kinds of attributes at policy creation time
- Add `-Force` to create missing parent policy folders
- Update messaging for `Export-VenafiCertificate` when using parameters for the wrong platform, [#149](https://github.com/Venafi/VenafiPS/issues/149)
- Update `New-VaasApplication -Owner` to accept a name in addition to guid
- Update VaaS searching to be aware of fields/values case sensitivity and adjust where needed. Eg., certificatestatus as opposed to certificateStatus.
- Fix `Find-TppObject` parameter sets to disallow -Recursive when -Path not provided, [#153](https://github.com/Venafi/VenafiPS/issues/153)
- Fix `Find-VenafiCertificate -Issuer` not working due to missing quotes, [#146](https://github.com/Venafi/VenafiPS/issues/146)
- Fix `Invoke-VenafiRestMethod -FullResponse` consuming certain errors instead of throwing them, [#152](https://github.com/Venafi/VenafiPS/issues/152)
- Fix `Get-VaasIssuingTemplate -All` not executing under certain circumstances



## 5.1.1
- Minor bugfix

Expand Down Expand Up @@ -455,5 +473,6 @@






6 changes: 3 additions & 3 deletions docs/functions/Add-TppAdaptableHash.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This is referenced by
the Attribute 'PowerShell Script Hash Vault Id' on the DN of the adaptable script.
This script retrieves the hash (if
present) from the Secret Store and compares it to the hash of the file in one of the scripts directories.
It then adds
It then adds
a new or updated hash if required.
When updating an existing hash, it removes the old one from the Secret Store.

Expand Down Expand Up @@ -78,7 +78,7 @@ Accept wildcard characters: False
### -FilePath
Required.
The full path to the adaptable script file.
This should normally be in a
This should normally be in a
'\<drive\>:\Program Files\Venafi\Scripts\\\<subdir\>' directory for TPP to recognize the script.
```yaml
Expand All @@ -96,7 +96,7 @@ Accept wildcard characters: False
### -VenafiSession
Authentication for the function.
The value defaults to the script session object $VenafiSession created by New-VenafiSession.
A TPP token or VaaS key can also provided.
A TPP token can also provided.
If providing a TPP token, an environment variable named TPP_SERVER must also be set.
```yaml
Expand Down
11 changes: 6 additions & 5 deletions docs/functions/Export-VenafiCertificate.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Get certificate data

## SYNTAX

### Vaas (Default)
### All (Default)
```
Export-VenafiCertificate -CertificateId <String> -Format <String> [-VenafiSession <PSObject>]
[<CommonParameters>]
Expand All @@ -20,7 +20,7 @@ Export-VenafiCertificate -CertificateId <String> -Format <String> [-OutPath <Str

### TppJks
```
Export-VenafiCertificate -CertificateId <String> -Format <String> [-IncludeChain] -FriendlyName <String>
Export-VenafiCertificate -CertificateId <String> [-IncludeChain] -FriendlyName <String>
[-PrivateKeyPassword <SecureString>] -KeystorePassword <SecureString> [-VenafiSession <PSObject>]
[<CommonParameters>]
```
Expand Down Expand Up @@ -82,11 +82,11 @@ Accept wildcard characters: False
### -Format
Certificate format.
For Venafi as a Service, you can provide either PEM, DER, or JKS.
For TPP, Base64, Base64 (PKCS#8), DER, JKS, PKCS #7, or PKCS #12.
For TPP, you can provide Base64, Base64 (PKCS#8), DER, JKS, PKCS #7, or PKCS #12.
```yaml
Type: String
Parameter Sets: (All)
Parameter Sets: All, Tpp
Aliases:

Required: True
Expand Down Expand Up @@ -162,7 +162,8 @@ Accept wildcard characters: False
### -IncludePrivateKey
DEPRECATED.
Provide a value for -PrivateKeyPassword.
Provide a value for -PrivateKeyPassword.
TPP only.
```yaml
Type: SwitchParameter
Expand Down
198 changes: 198 additions & 0 deletions docs/functions/Find-VaasObject.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
# Find-VaasObject

## SYNOPSIS
Find different objects on VaaS

## SYNTAX

```
Find-VaasObject [-Type] <String> [[-Filter] <ArrayList>] [[-Order] <PSObject[]>] [[-VenafiSession] <PSObject>]
[-IncludeTotalCount] [-Skip <UInt64>] [-First <UInt64>] [<CommonParameters>]
```

## DESCRIPTION
Find objects of type ActivityLog, Machine, MachineIdentity, CertificateRequest, CertificateInstance on VaaS.
Supports -First for page size and -IncludeTotalCount to retrieve all by paging.
The max page size is 1000.
To find certificate objects, use Find-VenafiCertificate.

## EXAMPLES

### EXAMPLE 1
```
Find-VaasObject -Type CertificateInstance
```

Get first 1000 records

### EXAMPLE 2
```
Find-VaasObject -Type CertificateInstance -First 50
```

Get first 50 records

### EXAMPLE 3
```
Find-VaasObject -Type CertificateInstance -First 500 -IncludeTotalCount
```

Get all records paging 500 at a time

### EXAMPLE 4
```
Find-VaasObject -Type ActivityLog -Filter @('activityType', 'eq', 'Notifications') -First 10
```

Retrieve 10 records matching the field name

### EXAMPLE 5
```
Find-VaasObject -Type ActivityLog -Filter @('activityType', 'eq', 'Notifications') -First 10 -Order @{'activityDate'='desc'}
```

Retrieve the most recent 10 records matching the field name

### EXAMPLE 6
```
Find-VaasObject -Filter @('and', @('activityDate', 'gt', (get-date).AddMonths(-1)), @('or', @('userId', 'eq', 'ab0feb46-8df7-47e7-8da9-f47ab314f26a'), @('userId', 'eq', '933c28de-6352-46f3-bc12-bd96077e8eae')))
```

Advanced filtering of results.
This filter will find log entries by 1 of 2 people within the last month.

## PARAMETERS

### -Type
Type of object to retrieve.
Can be ActivityLog, Machine, MachineIdentity, CertificateRequest, or CertificateInstance.

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Filter
Array or multidimensional array of fields and values to filter on.
Each array should be of the format @('operator', @(field, comparison operator, value), @(field2, comparison operator2, value2)).
Nested filters are supported.
For a complete list of comparison operators, see https://docs.venafi.cloud/api/about-api-search-operators/.
```yaml
Type: ArrayList
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Order
Array of fields to order on.
For each item in the array, you can provide a field name by itself; this will default to ascending.
You can also provide a hashtable with the field name as the key and either asc or desc as the value.
```yaml
Type: PSObject[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -VenafiSession
Authentication for the function.
The value defaults to the script session object $VenafiSession created by New-VenafiSession.
A VaaS key can also provided.
```yaml
Type: PSObject
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: $script:VenafiSession
Accept pipeline input: False
Accept wildcard characters: False
```
### -IncludeTotalCount
Reports the total number of objects in the data set (an integer) followed by the selected objects.
If the cmdlet cannot determine the total count, it displays "Unknown total count." The integer has an Accuracy property that indicates the reliability of the total count value.
The value of Accuracy ranges from 0.0 to 1.0 where 0.0 means that the cmdlet could not count the objects, 1.0 means that the count is exact, and a value between 0.0 and 1.0 indicates an increasingly reliable estimate.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Skip
Ignores the specified number of objects and then gets the remaining objects.
Enter the number of objects to skip.
```yaml
Type: UInt64
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -First
Gets only the specified number of objects.
Enter the number of objects to get.
```yaml
Type: UInt64
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
## OUTPUTS
### PSCustomObject
## NOTES
## RELATED LINKS
[http://VenafiPS.readthedocs.io/en/latest/functions/Find-VaasObject/](http://VenafiPS.readthedocs.io/en/latest/functions/Find-VaasObject/)
[https://github.com/Venafi/VenafiPS/blob/main/VenafiPS/Public/Find-VaasObject.ps1](https://github.com/Venafi/VenafiPS/blob/main/VenafiPS/Public/Find-VaasObject.ps1)
Loading

0 comments on commit a5b4d21

Please sign in to comment.