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

fix(lambda-api): track api key usage #943

Merged
merged 1 commit into from
Jul 21, 2020
Merged

Conversation

blacha
Copy link
Member

@blacha blacha commented Jul 20, 2020

No description provided.

@@ -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 () => {
Copy link
Member Author

@blacha blacha Jul 20, 2020

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

Copy link
Contributor

@jacott jacott Jul 21, 2020

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

@lgtm-com
Copy link

lgtm-com bot commented Jul 20, 2020

This pull request introduces 3 alerts when merging 83afa21 into 7b724a3 - view on LGTM.com

new alerts:

  • 3 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Jul 20, 2020

This pull request introduces 2 alerts when merging ef6f78a into 7b724a3 - view on LGTM.com

new alerts:

  • 2 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Jul 20, 2020

This pull request introduces 1 alert when merging 2bd60b0 into 7b724a3 - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Jul 20, 2020

This pull request introduces 1 alert when merging 59390e4 into 7b724a3 - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

@blacha blacha force-pushed the feat/track-api-usage branch 3 times, most recently from 53f2697 to 27ec696 Compare July 20, 2020 23:26
@blacha blacha marked this pull request as ready for review July 20, 2020 23:35

const response = new LambdaHttpResponse(100, 'Continue');
// Api key will be trimmed from the forwarded request so pass it via a well known header
Copy link
Member Author

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

@kodiakhq kodiakhq bot merged commit 7c4689c into master Jul 21, 2020
@kodiakhq kodiakhq bot deleted the feat/track-api-usage branch July 21, 2020 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants