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

aws-vault login --browser-profile #253

Open
FernandoMiguel opened this issue May 10, 2018 · 3 comments
Open

aws-vault login --browser-profile #253

FernandoMiguel opened this issue May 10, 2018 · 3 comments
Labels

Comments

@FernandoMiguel
Copy link
Collaborator

Regularly I have the need to have multiple roles open at the same time.

To achieve this, I've hacked some bash alias that opens a new browser and STS to that role
https://github.com/FernandoMiguel/aws-vault-quick-guide#chrome-profile

it's hacky , and so far I've been using disposable browser profiles. Ideally they should be permanent so you can have favourite bookmarks, etc.... I'll improve my hack later for that.

but what would be really cool is for aws-vault to manage this directly via go, where users can just pass a pre-existing browsers profiles
aws-vault login --browser-profile ~/Library/Application Support/Google/Chrome/Profile 2
or just aws-vault login --browser-profile Profile 2

@stale
Copy link

stale bot commented Jun 23, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jun 23, 2019
@stale stale bot closed this as completed Jun 30, 2019
@FernandoMiguel
Copy link
Collaborator Author

This is still desirable

@mtibben mtibben closed this as not planned Won't fix, can't repro, duplicate, stale Feb 21, 2023
@mtibben mtibben reopened this Feb 28, 2023
@mtibben mtibben added feature and removed stale labels Feb 28, 2023
@out-of-mana
Copy link

out-of-mana commented Mar 6, 2024

This is how I achieve the same basic thing with a minimum of effort.

It requires you to have two browsers open side by side, one with your default profile, and one incognito/private. Greatly reduces "One of these things is not like the other" snipe hunts.

function avl {
    # Just login to the environment automatically

    aws-vault login $1 --prompt=terminal -d 8h
}

function avli {
    # instead of logging in, just generate the URL 
    # and copy it to my OSX clipboard. Replace 'pbcopy'
    # with whatever your OS demands of you to copy text
    # to the clipboard programatically
    #
    # Paste this link into your incognito/private browser.
    # NOTE: If I spent 10 minutes on this, I bet you could
    # find the CLI flags to run the browser in incognito/private
    # mode.

    aws-vault login $1 --prompt=terminal -d 8h -s \ 
       | pbcopy
}

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

No branches or pull requests

3 participants