Comments (2)
After looking at this a little more, I don't think this would be immediately supported with a user provided token like I outlined above.
-
The actual call for gathering instance credentials is an
Http::
call, so the above config would be usinghttp
orcurl
. Not entirely sure which syntax is used -
the actual call to the AWS IP doesn't seem to populate any headers, user provided or otherwise. Not sure if this is as easy as just expanding that call out a bit or more logic would have to be added
from arbiter.
As a work around, one can still retrieve credentials manually outside of arbiter and pass them in via config file.
TOKEN=$(curl -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600")
CREDS=$(curl -H "X-aws-ec2-metadata-token: $TOKEN" -v http://169.254.169.254/latest/meta-data/iam/security-credentials/your-role-name-here)
you can then use jq
to parse them into a config file
echo $CREDS | jq '.["SecretAccessKey"] as $secret |
.["AccessKeyId"] as $access |
.["Token"] as $token |
{ arbiter:
{s3: {
access: $access,
secret: $secret,
token: $token
}
}
}' > config.json
from arbiter.
Related Issues (14)
- Wrong slashes in path replacement HOT 1
- Streaming copy interface
- google cloud storage HOT 6
- fs.cpp: Implement dir/remove on Windows
- Window globbing HOT 1
- Arbiter signs headers that don't exist
- Time calculation is off HOT 12
- Planning bug investigation - S3 permissions/signing failed on S3 path with spaces HOT 1
- Arbiter Ctor Does Too Much HOT 1
- OneDrive driver CI Loop
- Protocol errors in libcurl
- explicit return type on lambda expression
- Support AWS instance profiles 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 arbiter.