Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Get-Credential does not work #13

Open
Jaykul opened this issue Jul 4, 2017 · 3 comments
Open

Get-Credential does not work #13

Jaykul opened this issue Jul 4, 2017 · 3 comments

Comments

@Jaykul
Copy link
Owner

Jaykul commented Jul 4, 2017

Neither, for that matter does anything else which needs to prompt for input.

To get this working I need to write a proper "Host" so it's not the highest priority.

The workaround (for me, at least) is to use the BetterCredentials and -Store the credentials from a regular PowerShell session so I can use them here.

@knoxyca
Copy link

knoxyca commented Jul 4, 2017

The workaround that I've used (albeit insecure) is:

$Password = 'P@ssword'
$Username = "UserName"
$credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $Username,$(convertTo-SecureString -AsPlainText -Force -String $Password)

I'm split as to if BetterCredentials in this case is insecure. Anyone with access to the Notebook will have access to the credentials of the user running the Notebook...

@Jaykul
Copy link
Owner Author

Jaykul commented Jul 5, 2017

Well, access to a notebook (e.g. readme.ipynb) doesn't mean you have access to my computer, account and thus credentials stored in my Windows Credential Vault -- there are hundreds of ways I could share that document with you...

@knoxyca
Copy link

knoxyca commented Jul 5, 2017

Good point. I was thinking more in the context of my having access to your jupyter instance. If I have access to your jupyter instance, then I have access to your information, but if I just have the notebook, then I don't really have the access (unless you take my workaround and store it in the notebook...).

For my use case the credential stored in the notebook is fine as the credentials aren't considered secure.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant