Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

afp write: Notify user about expiring credentials + easy way to get fresh ones #64

Open
matey-jack opened this issue Jul 19, 2016 · 4 comments

Comments

@matey-jack
Copy link
Contributor

I am mostly using "afp write" since I need credentials in my IDE and several open shell windows. Often commands (such as DataWario) fail late when there are expired credentials, so I want to avoid that situation.

I am currently working[1] on a small feature which uses python TK (TKinter) to show a count-down of validity for credentials in a small window which I can place whereever I want on my screen. The window shall have:

  • a display of remaining time in minutes (with red background when the time is < 5 minutes)
  • a button to delete credentials from .aws (end session)
  • a button to get fresh credentials to write to .aws (prolong session)

I am adding this issue so anyone can give feedback before I spend too much time on it.

Also, I only test on Ubuntu and would be happy about people testing it on Mac (and possibly further OS's).

[1] https://github.com/matey-jack

@alexanderluedeke
Copy link

Super Sache! :-)

On 07/19/2016 12:29 PM, Robert Jack Will wrote:

I am mostly using "afp write" since I need credentials in my IDE and
several open shell windows. Often commands (such as DataWario) fail
late when there are expired credentials, so I want to avoid that
situation.

I am currently working[1] on a small feature which uses python TK
(TKinter) to show a count-down of validity for credentials in a small
window which I can place whereever I want on my screen. The window
shall have:

  • a display of remaining time in minutes (with red background when
    the time is < 5 minutes)
  • a button to delete credentials from .aws (end session)
  • a button to get fresh credentials to write to .aws (prolong session)

I am adding this issue so anyone can give feedback before I spend too
much time on it.

Also, I only test on Ubuntu and would be happy about people testing it
on Mac (and possibly further OS's).

[1] https://github.com/matey-jack


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#64, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AAk9ZqV8CmvpvduSAvUMeCzjog8MUfktks5qXKb-gaJpZM4JPlnh.

Alexander Lüdeke (Marktsegment PPA, Team PPB, Developer)

Immobilien Scout GmbH
Andreasstraße 10
10243 Berlin
Fon +493024301-1353

[email protected]

Immobilien Scout GmbH - Ein Unternehmen der Scout24-Gruppe
Geschäftsführer: Judith Jungmann, Stephan Spaete
Vorsitzender des Aufsichtsrats: Gregory Ellis
Handelsregister: Amtsgericht Charlottenburg, HRB 69108
Sitz der Gesellschaft: Berlin

@esc
Copy link
Contributor

esc commented Jul 19, 2016

Just use the developer service thingy that works like alppaca or rewrite alppaca to work on your local machine, then you don't need to worry about refreshing credentials ever...

@matey-jack
Copy link
Contributor Author

Hi Valentin,
I had a look into the developer service and tried it out for my usecase (which is using aws-cli, cfn-sphere, and datawario on the shell, plus sometimes integration tests in Idea).

  • Datawario works with the developer service and could even be enhanced to recognize it automatically, since typing the long -D option on every call is a bit impractical.
  • cfn-sphere could maybe be enhanced to support it
  • aws-cli is a harder bit and seems to much work to hack something in there.
  • finally, Java Unit Tests are easy to configure transparently via Maven or Idea.

@esc
Copy link
Contributor

esc commented Jul 25, 2016

AFAICT: all Amazon SDKs should actually be able to use the developer-service:

https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#config-settings-and-precedence

So, in essence, you shouldn't have to do anything for all of your use-cases.

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

No branches or pull requests

3 participants