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

When I aws-okta add and set a password with a space character, it fails #58

Closed
Chili-Man opened this issue Jun 29, 2018 · 7 comments
Closed
Assignees

Comments

@Chili-Man
Copy link

I'm running Ubuntu 18.04, and am using the 0.19.0 binary that has been published here on GitHub.

When I try running aws-okta add, it always fails with the Failed to set credentials in your keyring when I input a password with a space character in it. However, it works fine if the password I input does not have any space characters in it (I havent tried any other whitespace characters though).

@nickatsegment
Copy link
Contributor

I'm able to repro on Mac. Will take a look

@nickatsegment nickatsegment self-assigned this Jul 19, 2018
@nickatsegment
Copy link
Contributor

Nope, I take that back. I cleared my keyring and now can't repro :(

I can't repro on Linux either actually. I'm running Ubuntu 18.04 in a Docker container. I was able to add an org/user/pass that was all spaces.

If you delete ~/.aws-okta (maybe make a backup), does it still happen?

@Chili-Man
Copy link
Author

Chili-Man commented Jul 20, 2018

@nickatsegment yeah I'm able to get it to work on the Ubuntu 18.04 container, but not with the desktop it seems.

I did some more digging and noticed this in my syslog:

Jul 20 00:04:17 salsa dbus-daemon[3379]: [session uid=1000 pid=3379] Activated service 'org.kde.kwalletd' failed: Failed to execute program org.kde.kwalletd: No such file or directory

Seems that other projects have experienced this symptom on Ubuntu 18.04:
owncloud/client#6455

so it mayhaps mean that https://github.com/99designs/keyring needs to get updated to support whatever changes happened in Ubuntu 18.04. I'll try to dig deeper as time permits

@nickatsegment
Copy link
Contributor

If you're able to build from master, maybe give that a go with -d. It'll actually log the underlying error: https://github.com/segmentio/aws-okta/blob/master/cmd/add.go#L89

@Chili-Man
Copy link
Author

@nickatsegment I was actually able to get a little but farther with building it from the master branch, it asked for my MFA code this time, but still failed to set the credentials in the keyring:

DEBU[0181] Failed to add user to keyring: Failed to execute program org.kde.kwalletd: No such file or directory 
Failed to set credentials in your keyring

@nickatsegment
Copy link
Contributor

@Chili-Man I assume you don't actually want to use kwallet, right? Which backend are you using? Are you using the --backend flag? If you're not, try specifying it.

@Chili-Man
Copy link
Author

@nickatsegment I was able to get it to work with the latest 0.19.4 version; thanks for the help!

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

2 participants