Comments (6)
I think we would need a change to the formatting logic to customize the output of null
. I was able to override the value via env; however, the null
is in quotes which does not match reality.
Repro Steps
export AEMM_METADATA_VALUES_IAM_SECURITY_CREDENTIALS_TOKEN=null
./ec2-metadata-mock
curl localhost:1338/latest/meta-data/iam/security-credentials/baskinc-role
:
curl localhost:1338/latest/meta-data/iam/security-credentials/baskinc-role
{
"Code": "Success",
"LastUpdated": "2020-04-02T18:50:40Z",
"Type": "AWS-HMAC",
"AccessKeyId": "12345678901",
"SecretAccessKey": "v/12345678901",
"Token": "null", --> real IMDS shows no quotes
"Expiration": "2020-04-02T00:49:51Z"
}%
from amazon-ec2-metadata-mock.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want this issue to never become stale, please ask a maintainer to apply the "stalebot-ignore" label.
from amazon-ec2-metadata-mock.
Hi, any chance to figure this issue out or possible workaround?
from amazon-ec2-metadata-mock.
@richardgalestok per my explanation, this would require a code change. I'll remove stale
because we should align null output with IMDS; however, I'm not sure if we'll be able to get to it this year.
from amazon-ec2-metadata-mock.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want this issue to never become stale, please ask a maintainer to apply the "stalebot-ignore" label.
from amazon-ec2-metadata-mock.
This issue was closed because it has become stale with no activity.
from amazon-ec2-metadata-mock.
Related Issues (20)
- Cannot simulate 404 w/Rebalance Recommendation
- standard_init_linux.go:228: exec user process caused: exec format error HOT 3
- Deploy Helm Chart HOT 3
- Add `tags/instance` path HOT 2
- Emulate specifying `PUT` response hop limit HOT 1
- /latest/user-data ? HOT 2
- Conform the real IMDS by not listing dirs
- Dump all metadata to a file HOT 3
- Userdata formatting HOT 1
- Userdata in getHandlerPairs()? HOT 1
- marketplaceProductCodes field is typed as a string instead of a list of strings HOT 1
- Please document how to serve real credentials in the mocked data HOT 11
- Optionally support the removal of instances tags within returned metadata HOT 2
- [bug] cannot add a new tag using config overrides HOT 3
- Provide this mock as a Java library HOT 2
- [feature request] Watch config file for changes and reload HOT 2
- Programmatic use in Go tests HOT 2
- Incorrect Content-Type response header HOT 4
- IAM credentials should have realistic values HOT 2
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 amazon-ec2-metadata-mock.