Git Product home page Git Product logo

Comments (7)

mtibben avatar mtibben commented on May 17, 2024

Or even just aws-vault profiles and aws-vault sessions ? Although add and remove implicitly act on profiles.. Or maybe kinda like you said, list lists profiles, list --sessions lists sessions

from aws-vault.

mtibben avatar mtibben commented on May 17, 2024

Thinking about this again.. would a table layout make sense here? e.g.

$ aws-vault list
99designs  master   11111111111111111111
99designs  session  22222222222222222222
99designs  session  33333333333333333333
99designs  session  44444444444444444444
home       master   55555555555555555555
home       session  55555555555555555555

from aws-vault.

lox avatar lox commented on May 17, 2024

There are three different things, a profile, master keys and session keys. The relationship between profile and session master keys ends up being via source_profile. Confusing to represent and think about.

My big thing is that there isn't anything good to use to get a list of profiles from, which makes cli autocomplete hard.

from aws-vault.

mtibben avatar mtibben commented on May 17, 2024

Right... so for our subcommands we currently have

  add <profile>
  list
  rotate <profile>
  exec <profile> [<cmd>] [<args>...]
  remove <profile>
  login <profile>
  server

Given that all commands act on a profile, I would think list should just list profiles - that's the entity you're working with.

Then to see sessions you could just add

  sessions [profile]

which would list sessions, maybe in a table format like above?

from aws-vault.

lox avatar lox commented on May 17, 2024

Yeah, I think you are right.

from aws-vault.

lox avatar lox commented on May 17, 2024

So @mtibben, I guess the interesting thing about that is what is the source of profiles? Is it what profiles you have listed in your ~/.aws/config file, or is it the credentials you have in your keyring? Or both? Say if I have profile1,profile2 and profile3 in my ~/.aws/config and then I use aws-vault add profile4, should a subsequent list show profiles 1-3 or profiles 1-4?

from aws-vault.

lox avatar lox commented on May 17, 2024

It's hard to know which should be definitive, the profiles listed in ~/.aws/config or your keyring.

from aws-vault.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.