Skip to content

Commit

Permalink
Update manifest and docs to 5.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbarron committed Sep 29, 2022
1 parent cb7aa0d commit f7b8653
Show file tree
Hide file tree
Showing 11 changed files with 703 additions and 56 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## 5.1.0
- Add `Add-TppAdaptableHash` to automate the updating of an adaptable script hash. Thanks [@wilddev65]!
- Add `New-VaasCertificate` to create new certificates with VaaS
- Add `Revoke-TppGrant` to revoke all grants for a specific user
- Update `Import-VaasCertificate` to accept a name for the application (wildcards supported)
- Add `Get-VenafiCertificate -All` for VaaS
- Update `Get-VenafiCertificate` to persist -ExcludeExpired and -ExcludeRevoked when using -All
- Fix parameter error with `Get-VaasIssuingTemplate` when piping multiple values


## 5.0.0
- Rewrite Get-TppAttribute
- Greatly simplified with far less parameters needed
Expand Down Expand Up @@ -440,4 +450,5 @@





6 changes: 3 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: 09/20/2022
# Generated on: 09/29/2022
#

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

# Version number of this module.
ModuleVersion = '5.1'
ModuleVersion = '5.1.0'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down Expand Up @@ -63,7 +63,7 @@ ScriptsToProcess = 'Classes\TppObject.ps1', 'Classes\TppPermission.ps1',
'Enum\TppConfigResult.ps1', 'Enum\TppEventSeverity.ps1',
'Enum\TppIdentityType.ps1', 'Enum\TppManagementType.ps1',
'Enum\TppMetadataResult.ps1', 'Enum\TppSecretStoreResult.ps1',
'Enum\TppWorkflowResult.ps1'
'Enum\TppWorkflowResult.ps1'

# Type files (.ps1xml) to be loaded when importing this module
# TypesToProcess = @()
Expand Down
11 changes: 11 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## 5.1.0
- Add `Add-TppAdaptableHash` to automate the updating of an adaptable script hash. Thanks [@wilddev65]!
- Add `New-VaasCertificate` to create new certificates with VaaS
- Add `Revoke-TppGrant` to revoke all grants for a specific user
- Update `Import-VaasCertificate` to accept a name for the application (wildcards supported)
- Add `Get-VenafiCertificate -All` for VaaS
- Update `Get-VenafiCertificate` to persist -ExcludeExpired and -ExcludeRevoked when using -All
- Fix parameter error with `Get-VaasIssuingTemplate` when piping multiple values


## 5.0.0
- Rewrite Get-TppAttribute
- Greatly simplified with far less parameters needed
Expand Down Expand Up @@ -440,4 +450,5 @@





167 changes: 167 additions & 0 deletions docs/functions/Add-TppAdaptableHash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
# Add-TppAdaptableHash

## SYNOPSIS
Adds or updates the hash value for an adaptable script

## SYNTAX

```
Add-TppAdaptableHash [-Path] <String> [[-Keyname] <String>] [-FilePath] <String> [[-VenafiSession] <PSObject>]
[-WhatIf] [-Confirm] [<CommonParameters>]
```

## DESCRIPTION
TPP stores a base64 encoded hash of the file contents of an adaptable script in the Secret Store.
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
a new or updated hash if required.
When updating an existing hash, it removes the old one from the Secret Store.

## EXAMPLES

### EXAMPLE 1
```
Add-TppAdaptableHash -Path $Path -FilePath 'C:\Program Files\Venafi\Scripts\AdaptableApp\AppDriver.ps1'
```

Update the hash on an adaptable app object.

Note: For an adaptable app or an onboard discovery, 'Path' must always be a policy folder as this is where
the hash is saved.

### EXAMPLE 2
```
Add-TppAdaptableHash -Path $Path -FilePath 'C:\Program Files\Venafi\Scripts\AdaptableLog\Generic-LogDriver.ps1'
```

Update the hash on an adaptable log object.

## PARAMETERS

### -Path
Required.
Path to the object to add or update the hash.
Note: For an adaptable app or an onboard discovery, 'Path' must always be a policy folder as this is where
the hash is saved.

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

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Keyname
The name of the Secret Encryption Key (SEK) to used when encrypting this item.
Default is "Software:Default"
```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: Software:Default
Accept pipeline input: False
Accept wildcard characters: False
```
### -FilePath
Required.
The full path to the adaptable script file.
This should normally be in a
'\<drive\>:\Program Files\Venafi\Scripts\\\<subdir\>' directory for TPP to recognize the script.
```yaml
Type: String
Parameter Sets: (All)
Aliases: File

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

Required: False
Position: 4
Default value: $VenafiSession
Accept pipeline input: False
Accept wildcard characters: False
```
### -WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Confirm
Prompts you for confirmation before running the cmdlet.
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

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
### None
## OUTPUTS
### None
## NOTES
## RELATED LINKS
[http://VenafiPS.readthedocs.io/en/latest/functions/Add-TppAdaptableHash/](http://VenafiPS.readthedocs.io/en/latest/functions/Add-TppAdaptableHash/)
[https://github.com/Venafi/VenafiPS/blob/main/VenafiPS/Public/Add-TppAdaptableHash.ps1](https://github.com/Venafi/VenafiPS/blob/main/VenafiPS/Public/Add-TppAdaptableHash.ps1)
[https://docs.venafi.com/Docs/current/TopNav/Content/SDK/WebSDK/r-SDK-POST-Secretstore-add.php](https://docs.venafi.com/Docs/current/TopNav/Content/SDK/WebSDK/r-SDK-POST-Secretstore-add.php)
[https://docs.venafi.com/Docs/currentSDK/TopNav/Content/SDK/WebSDK/r-SDK-POST-Secretstore-ownerdelete.php](https://docs.venafi.com/Docs/currentSDK/TopNav/Content/SDK/WebSDK/r-SDK-POST-Secretstore-ownerdelete.php)
[https://docs.venafi.com/Docs/current/TopNav/Content/SDK/WebSDK/r-SDK-POST-Secretstore-retrieve.php](https://docs.venafi.com/Docs/current/TopNav/Content/SDK/WebSDK/r-SDK-POST-Secretstore-retrieve.php)
2 changes: 1 addition & 1 deletion docs/functions/Export-VenafiCertificate.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Aliases: Path, id
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
```
Expand Down
50 changes: 22 additions & 28 deletions docs/functions/Get-VenafiCertificate.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Get certificate information
Get-VenafiCertificate -CertificateId <String> [-VenafiSession <PSObject>] [<CommonParameters>]
```

### TppOldVersions
### TppId
```
Get-VenafiCertificate -CertificateId <String> [-IncludeTppPreviousVersions] [-ExcludeExpired] [-ExcludeRevoked]
[-VenafiSession <PSObject>] [<CommonParameters>]
Expand All @@ -24,12 +24,18 @@ Get-VenafiCertificate -CertificateId <String> [-IncludeVaasOwner] [-VenafiSessio

### TppAll
```
Get-VenafiCertificate [-IncludeTppPreviousVersions] [-All] [-VenafiSession <PSObject>] [<CommonParameters>]
Get-VenafiCertificate [-All] [-IncludeTppPreviousVersions] [-ExcludeExpired] [-ExcludeRevoked]
[-VenafiSession <PSObject>] [<CommonParameters>]
```

### VaasAll
```
Get-VenafiCertificate [-IncludeVaasOwner] [-All] [-VenafiSession <PSObject>] [<CommonParameters>]
Get-VenafiCertificate [-All] [-IncludeVaasOwner] [-VenafiSession <PSObject>] [<CommonParameters>]
```

### All
```
Get-VenafiCertificate [-All] [-VenafiSession <PSObject>] [<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -89,7 +95,7 @@ For TPP, use the path or guid.

```yaml
Type: String
Parameter Sets: Id, TppOldVersions, VaasId
Parameter Sets: Id, TppId, VaasId
Aliases: Guid, Path

Required: True
Expand All @@ -99,14 +105,13 @@ Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
```
### -IncludeTppPreviousVersions
Returns details about previous (historical) versions of a certificate (only from TPP).
This option will add a property named PreviousVersions to the returned object.
### -All
Retrieve all certificates
```yaml
Type: SwitchParameter
Parameter Sets: TppOldVersions
Aliases: IncludePreviousVersions
Parameter Sets: TppAll, VaasAll, All
Aliases:

Required: True
Position: Named
Expand All @@ -115,12 +120,16 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -IncludeTppPreviousVersions
Returns details about previous (historical) versions of a certificate (only from TPP).
This option will add a property named PreviousVersions to the returned object.
```yaml
Type: SwitchParameter
Parameter Sets: TppAll
Parameter Sets: TppId, TppAll
Aliases: IncludePreviousVersions

Required: False
Required: True
Position: Named
Default value: False
Accept pipeline input: False
Expand All @@ -133,7 +142,7 @@ Can only be used with the IncludePreviousVersions parameter.
```yaml
Type: SwitchParameter
Parameter Sets: TppOldVersions
Parameter Sets: TppId, TppAll
Aliases:

Required: False
Expand All @@ -149,7 +158,7 @@ Can only be used with the IncludePreviousVersions parameter.
```yaml
Type: SwitchParameter
Parameter Sets: TppOldVersions
Parameter Sets: TppId, TppAll
Aliases:

Required: False
Expand All @@ -168,21 +177,6 @@ Type: SwitchParameter
Parameter Sets: VaasId, VaasAll
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -All
Retrieve all certificates
```yaml
Type: SwitchParameter
Parameter Sets: TppAll, VaasAll
Aliases:

Required: True
Position: Named
Default value: False
Expand Down
4 changes: 2 additions & 2 deletions docs/functions/Import-VaasCertificate.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Import a certificate

### EXAMPLE 2
```
Import-VaasCertificate -CertificatePath c:\www.VenafiPS.com.cer -Application 'a2f83b26-c712-4f46-be41-2e1fb901f20c'
Import-VaasCertificate -CertificatePath c:\www.VenafiPS.com.cer -Application MyApp
```

Import a certificate and assign an application
Expand Down Expand Up @@ -95,7 +95,7 @@ Accept wildcard characters: False
```
### -Application
Application to assign to this certificate
Application name (wildcards supported) or id to associate this certificate.
```yaml
Type: String[]
Expand Down
Loading

0 comments on commit f7b8653

Please sign in to comment.