This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.7.3-alpine3.9 | |
WORKDIR /usr/src/app | |
COPY requirements.txt ./ | |
RUN pip install --no-cache-dir -r requirements.txt | |
COPY . . | |
CMD [ "python", "./http_header_test.py" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log('Loading function'); | |
const aws = require('aws-sdk'); | |
const zlib = require('zlib'); | |
const CloudFrontParser = require('cloudfront-log-parser'); | |
const s3 = new aws.S3({ apiVersion: '2006-03-01' }); | |
let getS3FileContents = async(bucketName, objectKey) => { | |
const params = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const CloudFrontParser = require('cloudfront-log-parser'); | |
const fs = require('fs'); | |
const zlib = require('zlib'); | |
var gzippedFilePt = "/Users/rhys/Downloads/E25TC780L4OA1V.2017-12-22-05.e1c5f2ed.gz"; | |
var processAccessEntry = function(access){ | |
var queryString = access['cs-uri-query']; | |
var decodedQueryString = decodeURI(decodeURI(queryString)); | |
var arr = decodedQueryString.split("&") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express'); | |
const OktaJwtVerifier = require('@okta/jwt-verifier'); | |
var cors = require('cors'); | |
var oktaApplicationClientId = "THE CLIENT ID HERE" | |
const oktaJwtVerifier = new OktaJwtVerifier({ | |
issuer: 'https://vgw.okta.com/oauth2/ausfg73gzLfAb6cKg2p6', //Auth server | |
assertClaims: { | |
cid: oktaApplicationClientId, |