Skip to content

The-Migus-Group/TSS-API-Scripts

Repository files navigation

TSS-API-Scripts

Wrapper scripts that The Migus Group use to implement scripting and automation use-cases for Thycotic Secret Server users.

NOTE: Thycotic recommends their PowerShell Module which they distribute via PSGallery for automation use-cases. It fully integrates Secret Server with PowerShell.

Example Usage

Set up the Environment

Using Initialize.ps1

Interactively
. .\Initialize.ps1

cmdlet Initialize.ps1 at command pipeline position 1
Supply values for the following parameters:
Credential
User: admin
Password for user admin: ************

Url: https://tssweb
Using Parameters
. .\Initialize.ps1 -Credential (Get-Credential) -Url 'https://tssweb'

Or

. .\Initialize.ps1 -Credential (Get-Credential) -Tenant 'mytenant'

Using the SDK Client for DevOps

  1. Put the three scripts in a folder that is in your $env:Path
  2. Download and extract the Secret Server SDK for DevOps
Set some defaults
$PSDefaultParameterValues['Invoke-Tss.ps1:ExePath'] = "C:\secretserver-sdk-*-win-x64\tss.exe"
$PSDefaultParameterValues['Invoke-Tss.ps1:ConfigDirPath'] = "${env:USERPROFILE}\.tss"
$PSDefaultParameterValues['Invoke-SecretServer.ps1:BaseUrl'] = 'https://my.local/SecretServer'
$PSDefaultParameterValues['Invoke-SecretServer.ps1:AccessToken'] = { Invoke-Tss.ps1 token }

Set-Alias -Name 'tss' -Value Invoke-Tss
Initialize the SDK Client
tss init -- -k '...' -r Rule -u https://my.local/SecretServer/

Call Secret Server

Invoke-SecretServer.ps1 /version

About

Thycotic Secret Server REST API Scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published