vagrant-ec2-metadata 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +2 -1
- data/lib/vagrant-ec2-metadata/server.rb +9 -2
- data/lib/vagrant-ec2-metadata/version.rb +1 -1
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 822b3d6ab4f2fc4b4f5eb512bcf398dcfec40b72dbd69de8f9280323fc10d9d4
|
|
4
|
+
data.tar.gz: cab8260dcffeac0157ec521d8b71a90bb2d658ae2a2969b3d44ca20237cf5c9f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 133835fd1741a1dfc7607f302b94b36ca0c9af234838c9b6ee5075e95c5131444b2abb773a49e987e894f29c8026e6a1757976fe0c5084ea61321dada7c366d2
|
|
7
|
+
data.tar.gz: 80aba68130cc15c815f68c409e43ac6e0bf3e64b4d7ded6e1deee9bff8183ace8c60566a0b3bb687ee7bb7d482c228e6e3629771c3718a4334fbf79787ffe403
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
�W,��>h�Ե(� �r�/�[���'-�v?9��2��=���M�]&�ղ��+�BJ��J��E�<X���xLjl<�V��߱���F��Y�Y*�nT��1�rbW?Gg�Ѡ�}��nG���l&|���%��ua�`�\����2n�J.�:�"(JK��ID5e�/�T��L��/tS��*3(�2����6=�`�%��(���۵ܳ��Gp+�Xnj
|
|
2
|
+
4�ْ�`�d�l�X����d�6s��Q
|
|
@@ -32,9 +32,16 @@ module VagrantEc2Metadata
|
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
# This endpoint is all we handle right now
|
|
35
|
-
|
|
35
|
+
if !req.path.start_with?("/latest/meta-data/iam/security-credentials")
|
|
36
|
+
res.status = 404
|
|
37
|
+
next
|
|
38
|
+
end
|
|
36
39
|
|
|
37
|
-
if req.path == "/latest/meta-data/iam/security-credentials
|
|
40
|
+
if req.path == "/latest/meta-data/iam/security-credentials"
|
|
41
|
+
# The Go SDK sends the request here first, then gets redirected to the correct path.. https://github.com/aws/aws-sdk-go/pull/2002
|
|
42
|
+
res.status = 301
|
|
43
|
+
res["Location"] = "/latest/meta-data/iam/security-credentials/"
|
|
44
|
+
elsif req.path == "/latest/meta-data/iam/security-credentials/"
|
|
38
45
|
res.body = "role"
|
|
39
46
|
else
|
|
40
47
|
sts = ::Aws::STS::Client.new(profile: @config.profile)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vagrant-ec2-metadata
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stefan Sundin
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
E04BZKo2WzOTzSDymo97Yu4YFgyc98umMyeaCvPk4YmdNzqSanAXpY2bnsyu0CF5
|
|
32
32
|
Td0=
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date:
|
|
34
|
+
date: 2018-06-20 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: aws-sdk-core
|
|
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
92
92
|
version: '0'
|
|
93
93
|
requirements: []
|
|
94
94
|
rubyforge_project:
|
|
95
|
-
rubygems_version: 2.
|
|
95
|
+
rubygems_version: 2.7.7
|
|
96
96
|
signing_key:
|
|
97
97
|
specification_version: 4
|
|
98
98
|
summary: Easily provide vagrant machines with AWS credentials.
|
metadata.gz.sig
CHANGED
|
Binary file
|