Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PublicKey field to S3 all CRUD actions #198

Merged
merged 2 commits into from
Jun 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions fastly/fastly_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,68 @@ wMfrTEOvx0NxUM3rpaCgEmuWbB1G1Hu371oyr4srrr+N
`
}

// pgpPublicKeyUpdate returns a PEM encoded PGP public key suitable for testing
// updates to the public key field.
func pgpPublicKeyUpdate() string {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm "iffy" on doing this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since there are fake keys all over the test suite, this doesn't bother me too much. Worth adding to the list of testing cleanup TODOs, though.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are your concerns?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My main concern was just introducing another test helper that just returned some mocked data.

return `
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: OpenPGP.js v3.0.9
Comment: https://openpgpjs.org

xsFNBF7XxDYBEACwKFfEjdDsm0lmbdSEM6/RTiUNldEQIpbxIN0pK1z38Rhh
u9VSmO0Jf/x3xTyAvFyc+D5vtxUBp0DlwILVMeTCZ6KX0Yk05hQWTqSMWk6t
QaGXtncvmD9xaHodjuQJ9xJo+lKRhZlli9QnF/x3EcIPSb9fv8BpQRw7M/Kg
O32vkiEV6GvAcZetgLEOy6EkFVx/Y1/kq5crP+gwFxseVcNsH8bB0tMY2maz
TwIKzRe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VA2OCesK1zZ9utF4ZegI9Zukn92OSFYqmEKhhAIH3MaRhZZxQq
3cyXkw0fg2pPkn6PKcDSyLE7RwQMX6+P8X6u/t6kOcWyBJxK4OuJCB2sjFQo
Nphey2TwKv2swJC4mxbHL0S771HelGN+Ske64G5fAxrIEBc+drKtNHlnCZ30
0NRVPzkJGD6dM9WgMyfm/d80YAsnckHGy6WuZ0mQrKiUOoN4vib+tEGnmd+r
K/3afuGq/Shc0tiUFzEKGAUbzaSeWKO6ZgYYGnpxryr1/AEr5z3sPERk3Dm0
+jJ8wIrBBAxUDtuU2TxFRZvvFihrsvMFjBEzEjWNfJRTL7vCBRqR5Qem95tj
fofwzzgSSgf0mlHmyCvhY2Vcr0ozX9oucPJX90cBoWkRqLNCntOuSZSeFUys
IKGV3nYnpXB+VNYozayIoAhP/yVLO7DTibYbzpHgDe3fBG6NKBkQBenHCHpi
BA/4Ob0YNQ6SmKTFS4fIKbMMCnCVgLhMOSyeebVbAuvhP7V6lFdHC9agRXKh
4P1Y4fC/E3SHa+YSCvO4Usl7BoZnKjSULjaeLqeXnlIM
=Wto9
-----END PGP PUBLIC KEY BLOCK-----
`
}

// privatekey returns a ASN.1 DER encoded key suitable for testing.
func privateKey() string {
return `-----BEGIN PRIVATE KEY-----
Expand Down
32 changes: 16 additions & 16 deletions fastly/fixtures/s3s/cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ interactions:
form: {}
headers:
User-Agent:
- FastlyGo/1.4.0 (+github.com/fastly/go-fastly; go1.12.5)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/6/logging/s3/test-s3
- FastlyGo/1.14.0 (+github.com/fastly/go-fastly; go1.14.2)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/18/logging/s3/test-s3
method: DELETE
response:
body: '{"msg":"Record not found","detail":"Couldn''t find syslog ''{ deleted =\u003e
0000-00-00 00:00:00, name =\u003e test-s3, service =\u003e 7i6HN3TK9wS159v2gPAZ8A,
version =\u003e 6 }''"}'
version =\u003e 18 }''"}'
headers:
Accept-Ranges:
- bytes
Expand All @@ -22,11 +22,11 @@ interactions:
Content-Type:
- application/json
Date:
- Tue, 11 Feb 2020 22:23:42 GMT
- Wed, 03 Jun 2020 15:42:17 GMT
Fastly-Ratelimit-Remaining:
- "993"
- "976"
Fastly-Ratelimit-Reset:
- "1581462000"
- "1591200000"
Status:
- 404 Not Found
Strict-Transport-Security:
Expand All @@ -41,9 +41,9 @@ interactions:
X-Cache-Hits:
- 0, 0
X-Served-By:
- cache-control-slwdc9037-CONTROL-SLWDC, cache-sea4454-SEA
- cache-control-slwdc9037-CONTROL-SLWDC, cache-dca17746-DCA
X-Timer:
- S1581459822.291131,VS0,VE209
- S1591198937.111254,VS0,VE93
status: 404 Not Found
code: 404
duration: ""
Expand All @@ -52,13 +52,13 @@ interactions:
form: {}
headers:
User-Agent:
- FastlyGo/1.4.0 (+github.com/fastly/go-fastly; go1.12.5)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/6/logging/s3/new-test-s3
- FastlyGo/1.14.0 (+github.com/fastly/go-fastly; go1.14.2)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/18/logging/s3/new-test-s3
method: DELETE
response:
body: '{"msg":"Record not found","detail":"Couldn''t find syslog ''{ deleted =\u003e
0000-00-00 00:00:00, name =\u003e new-test-s3, service =\u003e 7i6HN3TK9wS159v2gPAZ8A,
version =\u003e 6 }''"}'
version =\u003e 18 }''"}'
headers:
Accept-Ranges:
- bytes
Expand All @@ -68,11 +68,11 @@ interactions:
Content-Type:
- application/json
Date:
- Tue, 11 Feb 2020 22:23:42 GMT
- Wed, 03 Jun 2020 15:42:17 GMT
Fastly-Ratelimit-Remaining:
- "992"
- "975"
Fastly-Ratelimit-Reset:
- "1581462000"
- "1591200000"
Status:
- 404 Not Found
Strict-Transport-Security:
Expand All @@ -87,9 +87,9 @@ interactions:
X-Cache-Hits:
- 0, 0
X-Served-By:
- cache-control-slwdc9035-CONTROL-SLWDC, cache-sea4454-SEA
- cache-control-slwdc9037-CONTROL-SLWDC, cache-dca17746-DCA
X-Timer:
- S1581459823.524575,VS0,VE214
- S1591198937.233589,VS0,VE102
status: 404 Not Found
code: 404
duration: ""
54 changes: 44 additions & 10 deletions fastly/fixtures/s3s/create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
version: 1
interactions:
- request:
body: Service=7i6HN3TK9wS159v2gPAZ8A&Version=6&access_key=AKIAIOSFODNN7EXAMPLE&bucket_name=bucket-name&domain=s3.us-east-1.amazonaws.com&format=format&format_version=2&gzip_level=9&message_type=classic&name=test-s3&path=%2Fpath&period=12&placement=waf_debug&redundancy=reduced_redundancy&secret_key=wJalrXUtnFEMI%2FK7MDENG%2FbPxRfiCYEXAMPLEKEY&server_side_encryption=aws%3Akms&server_side_encryption_kms_key_id=1234&timestamp_format=%25Y
body: Service=7i6HN3TK9wS159v2gPAZ8A&Version=18&access_key=AKIAIOSFODNN7EXAMPLE&bucket_name=bucket-name&domain=s3.us-east-1.amazonaws.com&format=format&format_version=2&gzip_level=9&message_type=classic&name=test-s3&path=%2Fpath&period=12&placement=waf_debug&public_key=-----BEGIN+PGP+PUBLIC+KEY+BLOCK-----%0A%0AmQENBFyUD8sBCACyFnB39AuuTygseek%2BeA4fo0cgwva6%2FFSjnWq7riouQee8GgQ%2F%0AibXTRyv4iVlwI12GswvMTIy7zNvs1R54i0qvsLr%2BIZ4GVGJqs6ZJnvQcqe3xPoR4%0A8AnBfw90o32r%2FLuHf6QCJXi%2BAEu35koNlNAvLJ2B%2BKACaNB7N0EeWmqpV%2F1V2k9p%0AlDYk%2Bth7LcCuaFNGqKS%2FPrMnnMqR6VDLCjHhNx4KR79b0Twm%2F2qp6an3hyNRu8Gn%0Adwxpf1%2FBUu3JWf%2BLqkN4Y3mbOmSUL3MaJNvyQguUzTfS0P0uGuBDHrJCVkMZCzDB%0A89ag55jCPH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CACe8qmOSnKQpQfW%2BPqYOqo3dt7JyweTs3FkD6NT8Zml%0AdYy%2FvkstbTjPpX6aTvUZjkb46BVi7AOneVHpD5GBqvRsZ9iVgDYHaehmLCdKiG5L%0A3Tp90NN%2BQY5WDbsGmsyk6%2B6ZMYejb4qYfweQeduOj27aavCJdLkCYMoRKfcFYI8c%0AFaNmEfKKy%2Fr1PO20NXEG6t9t05K%2FfrHy6ZG8bCNYdpagfFVot47r9JaQqWlTNtIR%0A5%2BzkkSq%2FeG9BEtRij3a6cTdQbktdBzx2KBeI0PYc1vlZR0LpuFKZqY9vlE6vTGLR%0AwMfrTEOvx0NxUM3rpaCgEmuWbB1G1Hu371oyr4srrr%2BN%0A%3D28dr%0A-----END+PGP+PUBLIC+KEY+BLOCK-----%0A&redundancy=reduced_redundancy&secret_key=wJalrXUtnFEMI%2FK7MDENG%2FbPxRfiCYEXAMPLEKEY&server_side_encryption=aws%3Akms&server_side_encryption_kms_key_id=1234&timestamp_format=%25Y
form:
Service:
- 7i6HN3TK9wS159v2gPAZ8A
Version:
- "6"
- "18"
access_key:
- AKIAIOSFODNN7EXAMPLE
bucket_name:
Expand All @@ -30,6 +30,38 @@ interactions:
- "12"
placement:
- waf_debug
public_key:
- |
Copy link
Contributor Author

@mccurdyc mccurdyc Jun 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is new

-----BEGIN PGP PUBLIC KEY BLOCK-----

mQENBFyUD8sBCACyFnB39AuuTygseek+eA4fo0cgwva6/FSjnWq7riouQee8GgQ/
ibXTRyv4iVlwI12GswvMTIy7zNvs1R54i0qvsLr+IZ4GVGJqs6ZJnvQcqe3xPoR4
8AnBfw90o32r/LuHf6QCJXi+AEu35koNlNAvLJ2B+KACaNB7N0EeWmqpV/1V2k9p
lDYk+th7LcCuaFNGqKS/PrMnnMqR6VDLCjHhNx4KR79b0Twm/2qp6an3hyNRu8Gn
dwxpf1/BUu3JWf+LqkN4Y3mbOmSUL3MaJNvyQgu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bTjPpX6aTvUZjkb46BVi7AOneVHpD5GBqvRsZ9iVgDYHaehmLCdKiG5L
3Tp90NN+QY5WDbsGmsyk6+6ZMYejb4qYfweQeduOj27aavCJdLkCYMoRKfcFYI8c
FaNmEfKKy/r1PO20NXEG6t9t05K/frHy6ZG8bCNYdpagfFVot47r9JaQqWlTNtIR
5+zkkSq/eG9BEtRij3a6cTdQbktdBzx2KBeI0PYc1vlZR0LpuFKZqY9vlE6vTGLR
wMfrTEOvx0NxUM3rpaCgEmuWbB1G1Hu371oyr4srrr+N
=28dr
-----END PGP PUBLIC KEY BLOCK-----
redundancy:
- reduced_redundancy
secret_key:
Expand All @@ -44,11 +76,13 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
User-Agent:
- FastlyGo/1.4.0 (+github.com/fastly/go-fastly; go1.12.5)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/6/logging/s3
- FastlyGo/1.14.0 (+github.com/fastly/go-fastly; go1.14.2)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/18/logging/s3
method: POST
response:
body: '{"access_key":"AKIAIOSFODNN7EXAMPLE","bucket_name":"bucket-name","domain":"s3.us-east-1.amazonaws.com","format":"format","format_version":"2","gzip_level":"9","message_type":"classic","name":"test-s3","path":"/path","period":"12","placement":"waf_debug","redundancy":"reduced_redundancy","secret_key":"wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY","server_side_encryption":"aws:kms","server_side_encryption_kms_key_id":"1234","timestamp_format":"%Y","service_id":"7i6HN3TK9wS159v2gPAZ8A","version":"6","acl":null,"response_condition":"","deleted_at":null,"public_key":null,"created_at":"2020-02-11T22:23:40Z","updated_at":"2020-02-11T22:23:40Z"}'
body: '{"access_key":"AKIAIOSFODNN7EXAMPLE","bucket_name":"bucket-name","domain":"s3.us-east-1.amazonaws.com","format":"format","format_version":"2","gzip_level":"9","message_type":"classic","name":"test-s3","path":"/path","period":"12","placement":"waf_debug","public_key":"-----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KbjwGF\nftCsqVFMH+PyvYkLbvxyQrHlA9woAZaNThI1ztO5rGSnGUR8xt84eup28WIFKg0K\nUEGUcTzz+8QGAwAra+0ewPXo/AkO+8BvZjDidP417u6gpBHOJ9qYIcO9FxHeqFyu\nYrjlrxowEgXn5wO8xuNz6Vu1vhHGDHGDsRbZF8pv1d5O+0F1G7ttZ2GRRgVBZPwi\nkiyRABEBAAGJATYEGAEIACAWIQSHYyc6Kj9l6HzQsau6vFFc9jxV/wUCXJQPywIb\nDAAKCRC6vFFc9jxV/9YOCACe8qmOSnKQpQfW+PqYOqo3dt7JyweTs3FkD6NT8Zml\ndYy/vkstbTjPpX6aTvUZjkb46BVi7AOneVHpD5GBqvRsZ9iVgDYHaehmLCdKiG5L\n3Tp90NN+QY5WDbsGmsyk6+6ZMYejb4qYfweQeduOj27aavCJdLkCYMoRKfcFYI8c\nFaNmEfKKy/r1PO20NXEG6t9t05K/frHy6ZG8bCNYdpagfFVot47r9JaQqWlTNtIR\n5+zkkSq/eG9BEtRij3a6cTdQbktdBzx2KBeI0PYc1vlZR0LpuFKZqY9vlE6vTGLR\nwMfrTEOvx0NxUM3rpaCgEmuWbB1G1Hu371oyr4srrr+N\n=28dr\n-----END
PGP PUBLIC KEY BLOCK-----\n","redundancy":"reduced_redundancy","secret_key":"wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY","server_side_encryption":"aws:kms","server_side_encryption_kms_key_id":"1234","timestamp_format":"%Y","service_id":"7i6HN3TK9wS159v2gPAZ8A","version":"18","updated_at":"2020-06-03T15:42:15Z","created_at":"2020-06-03T15:42:15Z","deleted_at":null,"acl":null,"response_condition":""}'
headers:
Accept-Ranges:
- bytes
Expand All @@ -58,11 +92,11 @@ interactions:
Content-Type:
- application/json
Date:
- Tue, 11 Feb 2020 22:23:40 GMT
- Wed, 03 Jun 2020 15:42:15 GMT
Fastly-Ratelimit-Remaining:
- "996"
- "979"
Fastly-Ratelimit-Reset:
- "1581462000"
- "1591200000"
Status:
- 200 OK
Strict-Transport-Security:
Expand All @@ -77,9 +111,9 @@ interactions:
X-Cache-Hits:
- 0, 0
X-Served-By:
- cache-control-slwdc9036-CONTROL-SLWDC, cache-sea4454-SEA
- cache-control-slwdc9037-CONTROL-SLWDC, cache-dca17746-DCA
X-Timer:
- S1581459820.129654,VS0,VE522
- S1591198935.415143,VS0,VE451
status: 200 OK
code: 200
duration: ""
14 changes: 7 additions & 7 deletions fastly/fixtures/s3s/delete.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ interactions:
form: {}
headers:
User-Agent:
- FastlyGo/1.4.0 (+github.com/fastly/go-fastly; go1.12.5)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/6/logging/s3/new-test-s3
- FastlyGo/1.14.0 (+github.com/fastly/go-fastly; go1.14.2)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/18/logging/s3/new-test-s3
method: DELETE
response:
body: '{"status":"ok"}'
Expand All @@ -20,11 +20,11 @@ interactions:
Content-Type:
- application/json
Date:
- Tue, 11 Feb 2020 22:23:42 GMT
- Wed, 03 Jun 2020 15:42:17 GMT
Fastly-Ratelimit-Remaining:
- "994"
- "977"
Fastly-Ratelimit-Reset:
- "1581462000"
- "1591200000"
Status:
- 200 OK
Strict-Transport-Security:
Expand All @@ -39,9 +39,9 @@ interactions:
X-Cache-Hits:
- 0, 0
X-Served-By:
- cache-control-slwdc9037-CONTROL-SLWDC, cache-sea4454-SEA
- cache-control-slwdc9035-CONTROL-SLWDC, cache-dca17746-DCA
X-Timer:
- S1581459822.911958,VS0,VE354
- S1591198937.877806,VS0,VE204
status: 200 OK
code: 200
duration: ""
Loading