You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I coincidentally discovered this issue while trying some newer functionality available in recent versions of aws-vault.
Here's the correct output using a manual go build . from the archive downloaded into hostddir/sources:
❯ ./aws-vault --backend=file --debug login sso-dev
2021/01/05 15:00:54 aws-vault dev
2021/01/05 15:00:54 [keyring] Considering backends: [file]
2021/01/05 15:00:54 Loading config file $HOME/.aws/config
2021/01/05 15:00:54 Parsing config file $HOME/.aws/config
2021/01/05 15:00:54 [keyring] Expanded file dir to $HOME/.awsvault/keys/
2021/01/05 15:00:54 [keyring] Expanded file dir to $HOME/.awsvault/keys/
2021/01/05 15:00:54 [keyring] Expanded file dir to $HOME/.awsvault/keys/
2021/01/05 15:00:54 [keyring] Expanded file dir to $HOME/.awsvault/keys/
2021/01/05 15:00:54 [keyring] Expanded file dir to $HOME/.awsvault/keys/
2021/01/05 15:00:55 Created new OIDC client (expires at: 2021-04-05 16:00:54 +0200 CEST)
2021/01/05 15:00:55 Created OIDC device code for https://xxxx.awsapps.com/start (expires in: 600s)
2021/01/05 15:00:55 Opening SSO authorization page in browser
Opening the SSO authorization page in your default browser (use Ctrl-C to abort)
https://device.sso.eu-west-1.amazonaws.com/?user_code=XXXX
Actual behavior
Incorrect output from the binary built by the package.
❯ /usr/bin/aws-vault --backend=file --debug login sso-dev
2021/01/05 15:04:39 [keyring] Considering backends: [file]
2021/01/05 15:04:39 Loading config file $HOME/.aws/config
2021/01/05 15:04:39 Parsing config file $HOME/.aws/config
2021/01/05 15:04:39 Skipping session token and using master credentials directly
2021/01/05 15:04:39 Looking up keyring for sso-dev
2021/01/05 15:04:39 [keyring] Expanded file dir to $HOME/.awsvault/keys/
2021/01/05 15:04:39 Error from keyring The specified item could not be found in the keyring
2021/01/05 15:04:39 Failed to find credentials for profile "sso-dev" in keyring
aws-vault: error: Failed to get credentials for sso-dev: The specified item could not be found in the keyring
Steps to reproduce the behavior
It's sufficient to search for the string Skipping session token in the resulting aws-vault binary because it was removed from the source in 2019 but shows up in the latest void-packages build:
grep 'Skipping session token' /usr/bin/aws-vault
grep: /usr/bin/aws-vault: binary file matches # we don't want this
Additional information
I tracked the issue down to the go modules that get populated during the xbps-src build.
The output of go mod graph | grep 99designs/aws-vault reveals an old v4.5.1 version of the module being pulled in.
This doesn't appear when we just run go build . in the source directory, so there must be something in xbps-src's go build method that causes this. I'll do some more investigation and add anything I find here.
The text was updated successfully, but these errors were encountered:
System
Expected behavior
I coincidentally discovered this issue while trying some newer functionality available in recent versions of aws-vault.
Here's the correct output using a manual
go build .
from the archive downloaded intohostddir/sources
:Actual behavior
Incorrect output from the binary built by the package.
Steps to reproduce the behavior
It's sufficient to search for the string
Skipping session token
in the resulting aws-vault binary because it was removed from the source in 2019 but shows up in the latest void-packages build:Additional information
I tracked the issue down to the go modules that get populated during the
xbps-src
build.The output of
go mod graph | grep 99designs/aws-vault
reveals an old v4.5.1 version of the module being pulled in.This doesn't appear when we just run
go build .
in the source directory, so there must be something in xbps-src's go build method that causes this. I'll do some more investigation and add anything I find here.The text was updated successfully, but these errors were encountered: