Lint AWS Application Load Balancers for common misconfigurations
Project description
alb-lint
Lint AWS Application Load Balancers for common misconfigurations.
Install
pip install alb-lint
From source:
pip install -e .
60-second demo
# Lint one ALB
alb-lint --load-balancer-arn arn:aws:elasticloadbalancing:us-east-1:123456789012:loadbalancer/app/my-alb/abc \
--profile myprofile --region us-east-1
# Lint all ALBs in the region
alb-lint --all --profile myprofile --region us-east-1
# JSON output
alb-lint --all --json --region us-east-1
Example output:
alb-lint: checked 1 load balancer(s)
[WARN] no_https_listener: my-alb: no HTTPS (443) listener.
[PASS] host_headers_unique: my-alb: no duplicate Host header rules on listener 80.
[WARN] zero_targets: my-alb: target group 'tg-app' has 0 registered targets.
Result: OK (no FAIL findings)
Exit code 0 if there are no FAIL findings; 1 if any FAIL (e.g. duplicate Host header rules).
What it checks
| Finding | Severity |
|---|---|
| No HTTPS (443) listener | WARN |
| Duplicate Host header conditions across rules (same listener) | FAIL |
| Target group with 0 registered targets | WARN |
| Unhealthy targets | WARN |
Publishing to PyPI
pip install build twine
python -m build
twine upload dist/*
Or push a v* tag; GitHub Actions can publish via trusted publishing (see .github/workflows/publish.yml).
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file alb_lint-0.1.0.tar.gz.
File metadata
- Download URL: alb_lint-0.1.0.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32510d3b8363c4fd0ca682c9932e906cdb4bac49df80b35c25c3c1ff5b421db3
|
|
| MD5 |
808fd455da804e31d108aec4950282a9
|
|
| BLAKE2b-256 |
41c21b33edd1548e5cfe5d7fe27ffbedfb4f2fb042ca326833e7f35a4ade4f56
|
File details
Details for the file alb_lint-0.1.0-py3-none-any.whl.
File metadata
- Download URL: alb_lint-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b9cd490e72b98ddb68573f5414ac2a247baeb024b0522310a9a49c4bc446e2d
|
|
| MD5 |
593ef04be9bdeaea00ed76d250ad9a01
|
|
| BLAKE2b-256 |
15a75b1619d2a6dfb150ef317fa673d48470738d339988ad49c470635fb508ba
|