Comments (7)
PLus 1 to this issue...
--exec -- docker compose up
produces the following error:
docker: 'composeup' is not a docker command.
I'm on v0.20.5
It seems like its broken since v0.20.4
from granted.
I think the fix should work as long as the command to execute is the last variable. According to the read
man page, the last variable should contain the whole remainder of the line, no matter if the separator appears in it or not.
from granted.
@abusch You're right, that's convenient, though the fix was a bit more nuanced as arguments with spaces need to be maintained as single arguments so have to be shell escaped: #584
from granted.
I suspect this might have something to do with the strings.Join(execCfg.Args, "")
in this line (which probably should be strings.Join(execCfg.Args, " ")
).
from granted.
Thanks for raising this @abusch
For now you should be able to run assume --exec -- aws dynamodb list-tables
Using --
after the exec flag means you don't need to use quotes around your command.
I will look into the issue with the quoted exec syntax
from granted.
Unfortunately, using --
doesn't seem to work, neither with bash
nor fish
. I'm getting the same issue.
from granted.
I think @abusch correctly identified the root-cause as #549, I confirmed this by running assumego --verbose <profile> --exec -- aws sts get-caller-identity
which shows that the multiple separate arguments are being correctly parsed:
[DEBUG] exec config:&{aws [sts get-caller-identity]}
However when the GrantedExec
output is generated the final argument GRANTED_12
is the concatenated values:
GrantedExec <key> <secret> None us-west-2 None false None None None None aws stsget-caller-identity
Unfortunately I don't think fixing this is as easy as switching from ""
to " "
though because the IFS=' ' read
line would read the additional arguments as different variables (ex: GRANTED_13
, GRANTED_14
, etc)...
from granted.
Related Issues (20)
- Getting "invalid cross-device link" on registry sync (linux) HOT 8
- Feature request: Add a flag or configuration to map between a profile and a specific Chrome session HOT 1
- CustomSSOBrowserPath not working for Safari
- Support customising user-facing error messages
- --mfa-token not registering from CLI, only from prompt HOT 3
- Panic error when granted_sso_start_url or granted_sso_region aren't defined
- Support populating required variable with fixed value
- Deleting auto created chrome profile causes assume -c to stop working HOT 1
- Panic interface {} is nil, not string
- Security Vulnerability - Lateral Movement HOT 4
- AWS command hanging after assume when running on WSL HOT 1
- Feature request: Introducing “sudo” functionality into Granted HOT 1
- Update documentation - Granted does not work with Session Manager Plugin out of the box
- Assumed Role - Randomized UserId gntd-<random-suffix>
- Support refreshable AWS SSO sessions HOT 1
- Unclear warning with no way to quiet the error text. HOT 2
- Registry: MOTD
- Add the role that was retrieved to the error message when role assumption fails (AWS)
- Feature Request: Automatically populate [Default] with assumed profile HOT 7
- IAM Federated logins (console) should have easily attributable username in Cloudtrail list view.
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 granted.