-
Notifications
You must be signed in to change notification settings - Fork 17
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
fix(lambda-api): track api key usage #943
Conversation
6e6def4
to
83afa21
Compare
@@ -77,34 +77,4 @@ o.spec('xyz-request', () => { | |||
'x-linz-request-id': [{ key: 'x-linz-request-id', value: String(res.header(HttpHeader.RequestId)) }], | |||
}); | |||
}); | |||
|
|||
o('should not cache WMTSCapabilities', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding cache control on the inwards request makes no sense, as this is not served to the client.
Client -> CloudFront -> ApiTrackerLambda -> TileLambda -> CloudFront -> Client
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we setting it on the outwards response? - Yes we are
This pull request introduces 3 alerts when merging 83afa21 into 7b724a3 - view on LGTM.com new alerts:
|
83afa21
to
ef6f78a
Compare
This pull request introduces 2 alerts when merging ef6f78a into 7b724a3 - view on LGTM.com new alerts:
|
ef6f78a
to
2bd60b0
Compare
This pull request introduces 1 alert when merging 2bd60b0 into 7b724a3 - view on LGTM.com new alerts:
|
2bd60b0
to
59390e4
Compare
This pull request introduces 1 alert when merging 59390e4 into 7b724a3 - view on LGTM.com new alerts:
|
53f2697
to
27ec696
Compare
27ec696
to
2e39435
Compare
|
||
const response = new LambdaHttpResponse(100, 'Continue'); | ||
// Api key will be trimmed from the forwarded request so pass it via a well known header |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are now being proxied through to the tiler lambda
No description provided.