Skip to content

Commit

Permalink
Set-TssConfigurationSecurity - new command
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmelton committed Sep 2, 2021
1 parent ef033a0 commit 8c0c4e8
Show file tree
Hide file tree
Showing 5 changed files with 533 additions and 9 deletions.
13 changes: 7 additions & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,19 @@
"Authn",
"Cmdlet",
"Compatiblity",
"Inconsolata",
"MANATARMS",
"MSSQLSERVER",
"Minimap",
"Paren",
"Pscmdlet",
"dbatools",
"dbowner",
"Fips",
"gitlens",
"Inconsolata",
"MANATARMS",
"minimap",
"Minimap",
"MSSQLSERVER",
"notcontains",
"params",
"Paren",
"Pscmdlet",
"scrollback",
"sysnative"
]
Expand Down
294 changes: 294 additions & 0 deletions docs/commands/configurations/Set-TssConfigurationSecurity.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,294 @@
# Set-TssConfigurationSecurity

## SYNOPSIS
Set Security Configuration

## SYNTAX

```
Set-TssConfigurationSecurity [-TssSession] <Session> [-AuditTlsErrors] [-AuditTlsErrorsDebug]
[-CertificatePolicyOption <String>] [-CertificateId <String>] [-FileRestriction] [-FileExtension <String>]
[-MaxFileSize <String>] [-MaxFileSizeSupported] [-FrameBlocking] [-Fips] [-ForceHttps] [-HideVersion]
[-WpfRequireDomainMatch] [-WhatIf] [-Confirm] [<CommonParameters>]
```

## DESCRIPTION
Set Security Configuration

## EXAMPLES

### EXAMPLE 1
```
$session = New-TssSession -SecretServer https://alpha -Credential $ssCred
Set-TssConfigurationSecurity -TssSession $session -ForceHttps
```

Enable Force HTTPS

### EXAMPLE 2
```
$session = New-TssSession -SecretServer https://alpha -Credential $ssCred
Set-TssConfigurationSecurity -TssSession $session -ForceHttps:$false
```

Disabling Force HTTPS

## PARAMETERS

### -TssSession
TssSession object created by New-TssSession for authentication

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

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```
### -AuditTlsErrors
Apply TLS Certificate Chain Policy and Error Auditing
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -AuditTlsErrorsDebug
Enable TLS Debugging and connection tracking
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -CertificatePolicyOption
Certificate chain policy options
```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -CertificateId
Client Certificate ID
```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -FileRestriction
Enable file restrictions
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -FileExtension
File extensions to restrict
```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -MaxFileSize
Max file size in bytes
```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -MaxFileSizeSupported
Max allowed by ASP.NET
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -FrameBlocking
Enable frame blocking
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -Fips
Enable FIPS compliance
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -ForceHttps
Enable Force HTTPS
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -HideVersion
Hide Version number
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -WpfRequireDomainMatch
Web Password Filler (WPF) requires full domain match
```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
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
## OUTPUTS
## NOTES
Requires TssSession object returned by New-TssSession
## RELATED LINKS
[https://thycotic-ps.github.io/thycotic.secretserver/commands/Folder name/Set-TssConfigurationSecurity](https://thycotic-ps.github.io/thycotic.secretserver/commands/Folder name/Set-TssConfigurationSecurity)
[https://github.com/thycotic-ps/thycotic.secretserver/blob/main/src/functions/Folder name/Set-TssConfigurationSecurity.ps1](https://github.com/thycotic-ps/thycotic.secretserver/blob/main/src/functions/Folder name/Set-TssConfigurationSecurity.ps1)
7 changes: 4 additions & 3 deletions src/Thycotic.SecretServer.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Shawn Melton
#
# Generated on: 9/1/2021
# Generated on: 9/2/2021
#

@{
Expand Down Expand Up @@ -137,8 +137,9 @@ FunctionsToExport = 'Add-TssEventPipeline', 'Add-TssFolderPermission',
'Search-TssSecretPolicy', 'Search-TssSecretTemplate',
'Search-TssSystemLog', 'Search-TssUser', 'Search-TssWorkflowTemplate',
'Set-TssConfigurationAutoExport', 'Set-TssConfigurationGeneral',
'Set-TssConfigurationLocalUserPassword', 'Set-TssFolder',
'Set-TssSecret', 'Set-TssSecretExpiration', 'Set-TssSecretField',
'Set-TssConfigurationLocalUserPassword',
'Set-TssConfigurationSecurity', 'Set-TssFolder', 'Set-TssSecret',
'Set-TssSecretExpiration', 'Set-TssSecretField',
'Set-TssSecretPolicy', 'Set-TssSecretRpcAssociated',
'Set-TssSecretRpcPrivileged', 'Set-TssSecretSecurity',
'Set-TssSecretTemplate', 'Show-TssCurrentUser',
Expand Down
Loading

0 comments on commit 8c0c4e8

Please sign in to comment.