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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b39fa813ecb66b687b5bfdd5be62352fae5e4e0d
4
- data.tar.gz: 2da7b1319f80aecdecf9c6922bde2530aefdfd26
2
+ SHA256:
3
+ metadata.gz: 822b3d6ab4f2fc4b4f5eb512bcf398dcfec40b72dbd69de8f9280323fc10d9d4
4
+ data.tar.gz: cab8260dcffeac0157ec521d8b71a90bb2d658ae2a2969b3d44ca20237cf5c9f
5
5
  SHA512:
6
- metadata.gz: 3772d5c7560a0e4b0e8b27757b2d1faa83dda570626ed1bebe064733fe8fa6688a98113bd76ae5f196c56dff90325971f64dfaa08cb405ad86d7387068b87e0b
7
- data.tar.gz: b0dc167dd1e73d3a0ee1df85dda666f806d3f7e18f4f65519eaa361cef2d26ff7c08324f3bccb5a474c253c21f62f66539c681138caa82d3eac59507b1ec751a
6
+ metadata.gz: 133835fd1741a1dfc7607f302b94b36ca0c9af234838c9b6ee5075e95c5131444b2abb773a49e987e894f29c8026e6a1757976fe0c5084ea61321dada7c366d2
7
+ data.tar.gz: 80aba68130cc15c815f68c409e43ac6e0bf3e64b4d7ded6e1deee9bff8183ace8c60566a0b3bb687ee7bb7d482c228e6e3629771c3718a4334fbf79787ffe403
Binary file
data.tar.gz.sig CHANGED
@@ -1 +1,2 @@
1
- ����27h��k���D��\'Mj]E���i��k�<cd&�r����X Z�"���ͧ��j<˾� I�
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
- next if !req.path.start_with?("/latest/meta-data/iam/security-credentials/")
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)
@@ -1,3 +1,3 @@
1
1
  module VagrantEc2Metadata
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
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.3
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: 2017-11-02 00:00:00.000000000 Z
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.6.13
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