• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

DemocracyClub / aggregator-api / 6a52c13d-e0f6-4000-87bd-1eb791e4b0b4

13 May 2025 07:47AM CUT coverage: 74.422% (+0.9%) from 73.52%
6a52c13d-e0f6-4000-87bd-1eb791e4b0b4

Pull #607

circleci

GeoWill
Command to write csvs for all api keys
Pull Request #607: Api keys for logging

53 of 53 new or added lines in 2 files covered. (100.0%)

1158 of 1556 relevant lines covered (74.42%)

0.74 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/frontend/lambda_basic_auth.py
1
def lambda_handler(event, context):
×
2
    headers = event.get("headers", {})
×
3
    auth = headers.get("Authorization")
×
4
    dc_auth = "Basic ZGM6ZGM="  # dc:dc in base64
×
5

6
    if auth == dc_auth:
×
7
        return {
×
8
            "principalId": "dc",
9
            "policyDocument": {
10
                "Version": "2012-10-17",
11
                "Statement": [
12
                    {
13
                        "Action": "execute-api:Invoke",
14
                        "Effect": "Allow",
15
                        "Resource": "*",
16
                    }
17
                ],
18
            },
19
        }
20

21
    raise Exception("Unauthorized")
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc