Comments (4)
We have two issues here. First, aws-vault tries to create new collection (KeepassXC database) if a collection called aws-vault
doesn't exist. We can fix it by adding the --secret-service-collection
to the command. The collection for KeepassXC is the name of your database without the file extension. If you password database is password.kdbx
the flag would be called aws-vault --secret-service-collection password
. (There are some quirks. E.g. a hyphen in the filename would be escaped).
Now the prompt is working, but aws-vault freezes afterwards. There's another bug in the go-libsecret library causing this: gsterjov/go-libsecret#5
To get it working we can use the patch from @Neverous. (thanks by the way 😁 )
- Clone the aws-vault repository
- Add the following to the end of the go.mod file:
replace (
github.com/gsterjov/go-libsecret => github.com/Neverous/go-libsecret v0.0.0-20230212130815-609c8590032b
)
- Run
go build
Now aws-vault should work with KeepassXC if you use it as follows
aws-vault --secret-service-collection YOUR_KEEPASSXC_DATABASE_FILENAME_WITHOUT_EXTENSION
I recommend adding this command as an alias.
from aws-vault.
Same problem here.
aws-vault --debug exec profile -- thing
2023/06/15 15:28:49 aws-vault v7.2.0
2023/06/15 15:28:49 Using prompt driver: terminal
2023/06/15 15:28:49 Loading config file /home/me/.aws/config
2023/06/15 15:28:49 Parsing config file /home/me/.aws/config
2023/06/15 15:28:49 [keyring] Considering backends: [secret-service]
2023/06/15 15:28:49 profile profile: using credential process
2023/06/15 15:28:49 Setting subprocess env: AWS_REGION=eu-west-1, AWS_DEFAULT_REGION=eu-west-1
As workaround AWS_VAULT_FILE_PASSPHRASE="" aws-vault --backend=file exec profile -- thing
can be used.
from aws-vault.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
from aws-vault.
Still using totally unmaintained go-libsecret
Line 35 in e22aea1
Related to automatically staled and closed #904 (comment)
from aws-vault.
Related Issues (20)
- [Bug] aws-vault wedges on 'dbus-launch', won't even run `aws-vault --help` or `aws-vault --version` HOT 2
- Usage with MongoDB Compass HOT 3
- Configure aws-vault to cache role tokens HOT 3
- Embedding aws-vault into a golang-written cli HOT 1
- Sponsorship HOT 3
- Unable to find steps to download for Linux ARM Machines HOT 2
- MFA does not seem to be working when using the login function HOT 2
- Can't use --prompt=terminal with --ec2-server on Linux HOT 2
- ECS Server URI needs to include the `get-credentials` path to support AWS SDK Libraries HOT 1
- Unable to decrypt credentials file when using pass backend HOT 5
- Docs out of date for latest version wrt to ykman HOT 1
- No build since March HOT 1
- Feature: import from `~/.aws/credentials` HOT 1
- Error when executing any AWS Vault Command on 7.2.0, in WSL Ubuntu on Windows 11 HOT 1
- mfa_process does not seem to be working with Windows
- Importing aws-vault as a library?
- please assist I am new to AWS-Vault HOT 1
- Using `exec` with invalid profile name does not error
- Role Chaining with source_identity broken in v7?
- assume a role with AWS-vault termporary credentials HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-vault.