AdRoll / hologram

Easy, painless AWS credentials on developer laptops.
Apache License 2.0
803 stars 42 forks source link

Persisted role state across agent restarts? #41

Open copumpkin opened 9 years ago

copumpkin commented 9 years ago

I noticed that if I restart a computer running the hologram agent that the user must type hologram use again to reacquire role credentials. Could the "current role" state be persisted to disk somehow?

gaylatea commented 9 years ago

It would get overwritten by the launchd boot program that runs hologram me on startup, so something needs to be done about this. Your suggestion here reminds me that I want to find a way to make the agent run as the current user, not as root like it presently does. That would make things like this more possible.

copumpkin commented 9 years ago

If we address #38 by unifying the two interfaces (hologram me = hologram use with no role), the persisted state falls out of that nicely: if the state is empty, that translates to hologram use with no role, which is like hologram me. If the state is set to something, then hologram use passes that something along and you get a proper role.