Skip to content

Commit

Permalink
Update manifest and docs to 4.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbarron committed Apr 29, 2022
1 parent 6d37860 commit 93c6bcc
Show file tree
Hide file tree
Showing 7 changed files with 146 additions and 15 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 4.2.4
- Add `Search-TppHistory` to find historical items by attribute value and their associated current item
- Fix `Move-TppObject` not appending object name when moving multiple objects to a new folder and passed via pipeline
- Update `Find-TppObject` to allow passing of empty string for `-Pattern` to find objects which don't have a value set


## 4.2.3
- Fix certain aliases not being exported

Expand Down Expand Up @@ -352,3 +358,4 @@




7 changes: 4 additions & 3 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: 04/22/2022
# Generated on: 04/29/2022
#

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

# Version number of this module.
ModuleVersion = '4.2.3'
ModuleVersion = '4.2.4'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down Expand Up @@ -100,7 +100,8 @@ FunctionsToExport = 'Add-TppCertificateAssociation', 'Convert-TppObject',
'Set-TppWorkflowTicketStatus', 'Test-ModuleHash', 'Test-TppIdentity',
'Test-TppObject', 'Test-TppToken', 'Write-TppLog', 'Get-VenafiTeam',
'Remove-VenafiTeam', 'Add-VenafiTeamMember', 'Add-VenafiTeamOwner',
'Remove-VenafiTeamMember', 'Remove-VenafiTeamOwner', 'New-VenafiTeam', 'Search-TppHistory'
'Remove-VenafiTeamMember', 'Remove-VenafiTeamOwner', 'New-VenafiTeam',
'Search-TppHistory'

# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
CmdletsToExport = @()
Expand Down
7 changes: 7 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 4.2.4
- Add `Search-TppHistory` to find historical items by attribute value and their associated current item
- Fix `Move-TppObject` not appending object name when moving multiple objects to a new folder and passed via pipeline
- Update `Find-TppObject` to allow passing of empty string for `-Pattern` to find objects which don't have a value set


## 4.2.3
- Fix certain aliases not being exported

Expand Down Expand Up @@ -352,3 +358,4 @@




16 changes: 12 additions & 4 deletions docs/functions/Move-TppObject.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,27 @@ Move-TppObject [-SourcePath] <String> [-TargetPath] <String> [[-VenafiSession] <
```

## DESCRIPTION
Move an object of any type
Move an object of any type from one policy to another.
A rename can be done at the same time as the move by providing a full target path including the new object name.

## EXAMPLES

### EXAMPLE 1
```
Move-TppObject -SourceDN '\VED\Policy\My Folder\mycert.company.com' -TargetDN '\VED\Policy\New Folder\mycert.company.com'
Moves mycert.company.com to a new Policy folder
Move object to a new Policy folder
```

### EXAMPLE 2
```
Find-VenafiCertificate -Path '\ved\policy\certs' | Move-TppObject -TargetDN '\VED\Policy\New Folder'
Move all objects found in 1 folder to another
```

## PARAMETERS

### -SourcePath
Full path to an object in TPP
Full path to an existing object in TPP

```yaml
Type: String
Expand All @@ -39,7 +46,8 @@ Accept wildcard characters: False
```
### -TargetPath
New path
New path.
This can either be an existing policy and the existing object name will be kept or a full path including a new object name.
```yaml
Type: String
Expand Down
22 changes: 14 additions & 8 deletions docs/functions/New-VenafiSession.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,53 +98,59 @@ Create token-based session using Windows Integrated authentication with a certai

### EXAMPLE 4
```
New-VenafiSession -Server venafitpp.mycompany.com -Credential $cred -ClientId MyApp -Scope @{'certificate'='manage'}
Create token-based session
```

### EXAMPLE 5
```
New-VenafiSession -Server venafitpp.mycompany.com -Certificate $myCert -ClientId MyApp -Scope @{'certificate'='manage'}
Create token-based session using a client certificate
```

### EXAMPLE 5
### EXAMPLE 6
```
New-VenafiSession -Server venafitpp.mycompany.com -AuthServer tppauth.mycompany.com -ClientId MyApp -Credential $cred
Create token-based session using oauth authentication where the vedauth and vedsdk are hosted on different servers
```

### EXAMPLE 6
### EXAMPLE 7
```
$sess = New-VenafiSession -Server venafitpp.mycompany.com -Credential $cred -PassThru
Create session and return the session object instead of setting to script scope variable
```

### EXAMPLE 7
### EXAMPLE 8
```
New-VenafiSession -Server venafitpp.mycompany.com -AccessToken $accessCred
Create session using an access token obtained outside this module
```

### EXAMPLE 8
### EXAMPLE 9
```
New-VenafiSession -Server venafitpp.mycompany.com -RefreshToken $refreshCred -ClientId MyApp
Create session using a refresh token
```

### EXAMPLE 9
### EXAMPLE 10
```
New-VenafiSession -Server venafitpp.mycompany.com -RefreshToken $refreshCred -ClientId MyApp -VaultRefreshTokenName TppRefresh
Create session using a refresh token and store the newly created refresh token in the vault
```

### EXAMPLE 10
### EXAMPLE 11
```
New-VenafiSession -Server venafitpp.mycompany.com -RefreshToken $refreshCred -ClientId MyApp -VaultRefreshTokenName TppRefresh -VaultMetadata
Create session using a refresh token, store the newly created refresh token in the vault, and store the server and clientid with the secret
```

### EXAMPLE 11
### EXAMPLE 12
```
New-VenafiSession -VaasKey $cred
Create session against Venafi as a Service
```

### EXAMPLE 12
### EXAMPLE 13
```
New-VenafiSession -VaultVaasKeyName vaas-key
Create session against Venafi as a Service with a key stored in a vault
Expand Down
101 changes: 101 additions & 0 deletions docs/functions/Search-TppHistory.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
# Search-TppHistory

## SYNOPSIS
Search TPP history for items with specific attributes

## SYNTAX

```
Search-TppHistory [[-Path] <String>] [-Attribute] <Hashtable> [[-VenafiSession] <PSObject>]
[<CommonParameters>]
```

## DESCRIPTION
Items in the secret store matching the key/value provided will be found and their details returned with their associated 'current' item.
As this function may return details on many items, optional parallel processing has been implemented.
Be sure to use PowerShell Core, v7 or greater, to take advantage.

## EXAMPLES

### EXAMPLE 1
```
Search-TppHistory -Attribute @{'ValidTo' = (Get-Date)}
Find historical items that are still active
```

### EXAMPLE 2
```
Search-TppHistory -Attribute @{'ValidTo' = (Get-Date)} -Path '\ved\policy\certs'
Find historical items that are still active and the current item starts with a specific path
```

## PARAMETERS

### -Path
Starting path to associated current items to limit the search.
The default is \VED\Policy.

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

Required: False
Position: 1
Default value: \VED\Policy
Accept pipeline input: False
Accept wildcard characters: False
```
### -Attribute
Name and value to search.
See https://docs.venafi.com/Docs/current/TopNav/Content/SDK/WebSDK/r-SDK-POST-Secretstore-lookupbyassociation.php for more details.
Note, ValidFrom will perform a greater than or equal comparison and ValidTo will perform a less than or equal comparison.
Currently, one 1 name/value pair can be used.
```yaml
Type: Hashtable
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
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 TPP token or VaaS key can also provided.
If providing a TPP token, an environment variable named TppServer must also be set.
```yaml
Type: PSObject
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: $script:VenafiSession
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
### None
## OUTPUTS
### PSCustomObject with the following properties:
### Name
### TypeName
### Path
### History
## NOTES
## RELATED LINKS
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ nav:
- Rename-TppObject: functions/Rename-TppObject.md
- Revoke-TppCertificate: functions/Revoke-TppCertificate.md
- Revoke-TppToken: functions/Revoke-TppToken.md
- Search-TppHistory: functions/Search-TppHistory.md
- Set-TppAttribute: functions/Set-TppAttribute.md
- Set-TppCodeSignProjectStatus: functions/Set-TppCodeSignProjectStatus.md
- Set-TppCredential: functions/Set-TppCredential.md
Expand Down

0 comments on commit 93c6bcc

Please sign in to comment.