Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invoke-TssRestApi with -noproxy #411

Open
freshjewbagel opened this issue Nov 8, 2024 · 2 comments
Open

Invoke-TssRestApi with -noproxy #411

freshjewbagel opened this issue Nov 8, 2024 · 2 comments
Labels
feature request New feature or request

Comments

@freshjewbagel
Copy link

freshjewbagel commented Nov 8, 2024

Summarize Functionality

PowerShell uses system proxy to access internal SS, this fails in our environment.

Invoke-TssRestApi wraps Invoke-RestMethod but I cannot figure out how to pass it -noproxy

How can I use this module against on-prem SS and force -noproxy?

PS C:\> get-module Thycotic.SecretServer

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Script     0.61.8                Thycotic.SecretServer               {Start-TssLog, Stop-TssLog, Write-TssLog, Add-Tss…

PS C:\> Import-Module Thycotic.SecretServer

PS C:\> $session = New-TssSession https://secretserver.com -UseWindowsAuth -Verbose
VERBOSE: Command invocation: New-TssSession -UseWindowsAuth:True -Verbose:True -SecretServer:True
VERBOSE: UseWindowsAuth provided, setting URL segment to use winauthwebservices
VERBOSE: Setting start time for session: 11/08/2024 15:04:08
VERBOSE: Attempting to retrieve Secret Server host version
VERBOSE: Command invocation: Get-TssVersion -TssSession:TssSessionObject -ErrorAction:TssSessionObject
VERBOSE: Performing the operation GET https://secretserver.com/winauthwebservices/api/v1/version
WARNING: Issue reading version of [https://secretserver.com/], this may be due to Hide Secret Server Version Numbers being disabled. Version support is limited in the module and may affect functionality of some functions.
VERBOSE: SecretServer host: https://secretserver.com/
VERBOSE: ApiUrl: https://secretserver.com/winauthwebservices/api/v1
VERBOSE: Outputing final object

PS C:\> Get-TssVersion -TssSession $session
WARNING: Issue getting version details for [https://secretserver.com/]
ErrorHandling.ps1: C:\Users\user\Documents\PowerShell\Modules\Thycotic.SecretServer\functions\version\Get-TssVersion.ps1:57
Line |
  57 |                  . $ErrorHandling $err
     |                  ~~~~~~~~~~~~~~~~~~~~~
     | The proxy tunnel request to proxy 'http://wwwproxy.com:8080/' failed with status code '403'."

Is there a command that is similar or close to what you are looking for?

No

Technical Details

No response

@freshjewbagel freshjewbagel added the feature request New feature or request label Nov 8, 2024
@freshjewbagel
Copy link
Author

Wow nothing?

@jagger
Copy link
Contributor

jagger commented Dec 19, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants