pyblastradius 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyblastradius-0.2.0/.github/workflows/ci.yml +132 -0
- pyblastradius-0.2.0/.github/workflows/example-blast-radius.yml +60 -0
- pyblastradius-0.2.0/.github/workflows/publish.yml +157 -0
- pyblastradius-0.2.0/.gitignore +59 -0
- pyblastradius-0.2.0/CHANGELOG.md +110 -0
- pyblastradius-0.2.0/CODE_OF_CONDUCT.md +77 -0
- pyblastradius-0.2.0/CONTRIBUTING.md +441 -0
- pyblastradius-0.2.0/Cargo.lock +3240 -0
- pyblastradius-0.2.0/Cargo.toml +107 -0
- pyblastradius-0.2.0/LICENSE +22 -0
- pyblastradius-0.2.0/PHASE_0_2_COMPLETION.md +451 -0
- pyblastradius-0.2.0/PHASE_3_4_COMPLETION.md +557 -0
- pyblastradius-0.2.0/PHASE_4_REFOCUS.md +367 -0
- pyblastradius-0.2.0/PKG-INFO +443 -0
- pyblastradius-0.2.0/README.md +389 -0
- pyblastradius-0.2.0/action.yml +133 -0
- pyblastradius-0.2.0/docs/ARCHITECTURE.md +330 -0
- pyblastradius-0.2.0/docs/BUILD_PLAN.md +816 -0
- pyblastradius-0.2.0/docs/GAP_ANALYSIS.md +453 -0
- pyblastradius-0.2.0/docs/GETTING_STARTED.md +616 -0
- pyblastradius-0.2.0/docs/IMPLEMENTATION_CLI.md +472 -0
- pyblastradius-0.2.0/docs/IMPLEMENTATION_PYTHON_API.md +620 -0
- pyblastradius-0.2.0/docs/INPUT_DESIGN.md +780 -0
- pyblastradius-0.2.0/docs/MARKET_RESEARCH.md +408 -0
- pyblastradius-0.2.0/docs/PRODUCT_VISION.md +528 -0
- pyblastradius-0.2.0/docs/QUICK_START.md +494 -0
- pyblastradius-0.2.0/docs/RESEARCH_SUMMARY.md +333 -0
- pyblastradius-0.2.0/docs/examples/blastradius-complete.yml +46 -0
- pyblastradius-0.2.0/docs/examples/blastradius-kubernetes.yml +30 -0
- pyblastradius-0.2.0/docs/examples/python_advanced.py +33 -0
- pyblastradius-0.2.0/docs/examples/python_quickstart.py +17 -0
- pyblastradius-0.2.0/docs/examples/rest_api_client.py +91 -0
- pyblastradius-0.2.0/examples/business-impact/saas-impact.yaml +209 -0
- pyblastradius-0.2.0/examples/cli.rs +473 -0
- pyblastradius-0.2.0/examples/kubernetes/microservices.yaml +376 -0
- pyblastradius-0.2.0/examples/terraform/infrastructure.tf +453 -0
- pyblastradius-0.2.0/pyproject.toml +120 -0
- pyblastradius-0.2.0/python/pyblastradius/__init__.py +112 -0
- pyblastradius-0.2.0/python/pyblastradius/analysis.py +76 -0
- pyblastradius-0.2.0/python/pyblastradius/cli.py +440 -0
- pyblastradius-0.2.0/python/pyblastradius/config.py +257 -0
- pyblastradius-0.2.0/python/pyblastradius/discovery.py +138 -0
- pyblastradius-0.2.0/python/pyblastradius/integrations.py +73 -0
- pyblastradius-0.2.0/python/pyblastradius/server.py +330 -0
- pyblastradius-0.2.0/src/analysis/anomaly_detection.rs +266 -0
- pyblastradius-0.2.0/src/analysis/blast_radius.rs +208 -0
- pyblastradius-0.2.0/src/analysis/criticality.rs +154 -0
- pyblastradius-0.2.0/src/analysis/hidden_dependencies.rs +227 -0
- pyblastradius-0.2.0/src/analysis/mod.rs +70 -0
- pyblastradius-0.2.0/src/analysis/simulator.rs +240 -0
- pyblastradius-0.2.0/src/api/graphql.rs +159 -0
- pyblastradius-0.2.0/src/api/integrations.rs +255 -0
- pyblastradius-0.2.0/src/api/mod.rs +177 -0
- pyblastradius-0.2.0/src/discovery/airflow.rs +193 -0
- pyblastradius-0.2.0/src/discovery/kubernetes.rs +394 -0
- pyblastradius-0.2.0/src/discovery/mod.rs +10 -0
- pyblastradius-0.2.0/src/discovery/otlp.rs +342 -0
- pyblastradius-0.2.0/src/discovery/terraform.rs +159 -0
- pyblastradius-0.2.0/src/error.rs +73 -0
- pyblastradius-0.2.0/src/graph/edge.rs +168 -0
- pyblastradius-0.2.0/src/graph/graph.rs +288 -0
- pyblastradius-0.2.0/src/graph/mod.rs +47 -0
- pyblastradius-0.2.0/src/graph/node.rs +189 -0
- pyblastradius-0.2.0/src/graph/serialization.rs +359 -0
- pyblastradius-0.2.0/src/graph/traversal.rs +263 -0
- pyblastradius-0.2.0/src/integrations/data_quality.rs +342 -0
- pyblastradius-0.2.0/src/integrations/dbt_integration.rs +343 -0
- pyblastradius-0.2.0/src/integrations/mod.rs +12 -0
- pyblastradius-0.2.0/src/integrations/otel_integration.rs +282 -0
- pyblastradius-0.2.0/src/integrations/statguardian_integration.rs +291 -0
- pyblastradius-0.2.0/src/lib.rs +30 -0
- pyblastradius-0.2.0/src/models/mod.rs +71 -0
- pyblastradius-0.2.0/src/python.rs +780 -0
- pyblastradius-0.2.0/src/utils/mod.rs +80 -0
- pyblastradius-0.2.0/tests/conftest.py +48 -0
- pyblastradius-0.2.0/tests/test_analysis.py +99 -0
- pyblastradius-0.2.0/tests/test_cli.py +118 -0
- pyblastradius-0.2.0/tests/test_core_bindings.py +129 -0
- pyblastradius-0.2.0/tests/test_server.py +163 -0
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ main, develop ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ main, develop ]
|
|
8
|
+
|
|
9
|
+
env:
|
|
10
|
+
CARGO_TERM_COLOR: always
|
|
11
|
+
RUST_BACKTRACE: 1
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
test:
|
|
15
|
+
name: Test
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v3
|
|
19
|
+
|
|
20
|
+
- name: Install Rust
|
|
21
|
+
uses: actions-rs/toolchain@v1
|
|
22
|
+
with:
|
|
23
|
+
profile: minimal
|
|
24
|
+
toolchain: stable
|
|
25
|
+
override: true
|
|
26
|
+
|
|
27
|
+
- name: Cache cargo registry
|
|
28
|
+
uses: actions/cache@v3
|
|
29
|
+
with:
|
|
30
|
+
path: ~/.cargo/registry
|
|
31
|
+
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
|
|
32
|
+
|
|
33
|
+
- name: Cache cargo index
|
|
34
|
+
uses: actions/cache@v3
|
|
35
|
+
with:
|
|
36
|
+
path: ~/.cargo/git
|
|
37
|
+
key: ${{ runner.os }}-cargo-git-${{ hashFiles('**/Cargo.lock') }}
|
|
38
|
+
|
|
39
|
+
- name: Cache cargo build
|
|
40
|
+
uses: actions/cache@v3
|
|
41
|
+
with:
|
|
42
|
+
path: target
|
|
43
|
+
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
|
|
44
|
+
|
|
45
|
+
- name: Run tests
|
|
46
|
+
run: cargo test --verbose --all-features
|
|
47
|
+
|
|
48
|
+
- name: Run doc tests
|
|
49
|
+
run: cargo test --doc --verbose
|
|
50
|
+
|
|
51
|
+
clippy:
|
|
52
|
+
name: Clippy
|
|
53
|
+
runs-on: ubuntu-latest
|
|
54
|
+
steps:
|
|
55
|
+
- uses: actions/checkout@v3
|
|
56
|
+
|
|
57
|
+
- name: Install Rust
|
|
58
|
+
uses: actions-rs/toolchain@v1
|
|
59
|
+
with:
|
|
60
|
+
profile: minimal
|
|
61
|
+
toolchain: stable
|
|
62
|
+
override: true
|
|
63
|
+
components: clippy
|
|
64
|
+
|
|
65
|
+
- name: Run clippy
|
|
66
|
+
run: cargo clippy -- -D warnings
|
|
67
|
+
|
|
68
|
+
fmt:
|
|
69
|
+
name: Format
|
|
70
|
+
runs-on: ubuntu-latest
|
|
71
|
+
steps:
|
|
72
|
+
- uses: actions/checkout@v3
|
|
73
|
+
|
|
74
|
+
- name: Install Rust
|
|
75
|
+
uses: actions-rs/toolchain@v1
|
|
76
|
+
with:
|
|
77
|
+
profile: minimal
|
|
78
|
+
toolchain: stable
|
|
79
|
+
override: true
|
|
80
|
+
components: rustfmt
|
|
81
|
+
|
|
82
|
+
- name: Check formatting
|
|
83
|
+
run: cargo fmt -- --check
|
|
84
|
+
|
|
85
|
+
coverage:
|
|
86
|
+
name: Coverage
|
|
87
|
+
runs-on: ubuntu-latest
|
|
88
|
+
steps:
|
|
89
|
+
- uses: actions/checkout@v3
|
|
90
|
+
|
|
91
|
+
- name: Install Rust
|
|
92
|
+
uses: actions-rs/toolchain@v1
|
|
93
|
+
with:
|
|
94
|
+
profile: minimal
|
|
95
|
+
toolchain: stable
|
|
96
|
+
override: true
|
|
97
|
+
|
|
98
|
+
- name: Install tarpaulin
|
|
99
|
+
run: cargo install cargo-tarpaulin
|
|
100
|
+
|
|
101
|
+
- name: Generate coverage
|
|
102
|
+
run: cargo tarpaulin --out Xml --all-features
|
|
103
|
+
|
|
104
|
+
- name: Upload to codecov
|
|
105
|
+
uses: codecov/codecov-action@v3
|
|
106
|
+
with:
|
|
107
|
+
files: ./cobertura.xml
|
|
108
|
+
|
|
109
|
+
build:
|
|
110
|
+
name: Build
|
|
111
|
+
runs-on: ${{ matrix.os }}
|
|
112
|
+
strategy:
|
|
113
|
+
matrix:
|
|
114
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
115
|
+
steps:
|
|
116
|
+
- uses: actions/checkout@v3
|
|
117
|
+
|
|
118
|
+
- name: Install Rust
|
|
119
|
+
uses: actions-rs/toolchain@v1
|
|
120
|
+
with:
|
|
121
|
+
profile: minimal
|
|
122
|
+
toolchain: stable
|
|
123
|
+
override: true
|
|
124
|
+
|
|
125
|
+
- name: Build
|
|
126
|
+
run: cargo build --release --verbose
|
|
127
|
+
|
|
128
|
+
- name: Upload artifacts
|
|
129
|
+
uses: actions/upload-artifact@v3
|
|
130
|
+
with:
|
|
131
|
+
name: pyblastradius-${{ matrix.os }}
|
|
132
|
+
path: target/release/pyblastradius*
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
name: Blast Radius Analysis
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
paths:
|
|
6
|
+
- 'infrastructure/**'
|
|
7
|
+
- 'k8s/**'
|
|
8
|
+
- '.github/workflows/example-blast-radius.yml'
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
analyze:
|
|
12
|
+
name: Analyze blast radius
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
|
|
18
|
+
- name: Run Blast Radius Analysis
|
|
19
|
+
id: blast
|
|
20
|
+
uses: Mullassery/pyblastradius-action@v1
|
|
21
|
+
with:
|
|
22
|
+
discovery-sources: |
|
|
23
|
+
kubernetes://
|
|
24
|
+
terraform://path=./infrastructure
|
|
25
|
+
max-depth: 5
|
|
26
|
+
failure-on-score: 0.8
|
|
27
|
+
|
|
28
|
+
- name: Comment on PR
|
|
29
|
+
if: always()
|
|
30
|
+
uses: actions/github-script@v7
|
|
31
|
+
with:
|
|
32
|
+
script: |
|
|
33
|
+
const score = '${{ steps.blast.outputs.blast-radius-score }}';
|
|
34
|
+
const impacted = '${{ steps.blast.outputs.impacted-count }}';
|
|
35
|
+
|
|
36
|
+
let emoji = '🟢';
|
|
37
|
+
if (score > 0.5) emoji = '🟡';
|
|
38
|
+
if (score > 0.7) emoji = '🟠';
|
|
39
|
+
if (score > 0.8) emoji = '🔴';
|
|
40
|
+
|
|
41
|
+
const comment = `## ${emoji} Blast Radius Analysis
|
|
42
|
+
|
|
43
|
+
**Score**: ${score} (${(score * 100).toFixed(0)}%)
|
|
44
|
+
**Services Impacted**: ${impacted}
|
|
45
|
+
|
|
46
|
+
[View full analysis](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})`;
|
|
47
|
+
|
|
48
|
+
github.rest.issues.createComment({
|
|
49
|
+
issue_number: context.issue.number,
|
|
50
|
+
owner: context.repo.owner,
|
|
51
|
+
repo: context.repo.repo,
|
|
52
|
+
body: comment
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
- name: Upload artifact
|
|
56
|
+
if: always()
|
|
57
|
+
uses: actions/upload-artifact@v4
|
|
58
|
+
with:
|
|
59
|
+
name: blast-radius-analysis
|
|
60
|
+
path: blast-radius.json
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
name: Build and Publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- 'v*'
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
build-wheels:
|
|
11
|
+
name: Build wheels on ${{ matrix.os }}
|
|
12
|
+
runs-on: ${{ matrix.os }}
|
|
13
|
+
strategy:
|
|
14
|
+
matrix:
|
|
15
|
+
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
|
|
19
|
+
- name: Set up Python
|
|
20
|
+
uses: actions/setup-python@v5
|
|
21
|
+
with:
|
|
22
|
+
python-version: '3.10'
|
|
23
|
+
|
|
24
|
+
- name: Install Rust
|
|
25
|
+
uses: actions-rs/toolchain@v1
|
|
26
|
+
with:
|
|
27
|
+
profile: minimal
|
|
28
|
+
toolchain: stable
|
|
29
|
+
override: true
|
|
30
|
+
|
|
31
|
+
- name: Install dependencies
|
|
32
|
+
run: |
|
|
33
|
+
python -m pip install --upgrade pip
|
|
34
|
+
pip install maturin
|
|
35
|
+
|
|
36
|
+
- name: Build wheels
|
|
37
|
+
run: |
|
|
38
|
+
maturin build --release
|
|
39
|
+
|
|
40
|
+
- name: Upload wheels
|
|
41
|
+
uses: actions/upload-artifact@v4
|
|
42
|
+
with:
|
|
43
|
+
name: wheels-${{ matrix.os }}
|
|
44
|
+
path: target/wheels/
|
|
45
|
+
|
|
46
|
+
build-sdist:
|
|
47
|
+
name: Build source distribution
|
|
48
|
+
runs-on: ubuntu-latest
|
|
49
|
+
steps:
|
|
50
|
+
- uses: actions/checkout@v4
|
|
51
|
+
|
|
52
|
+
- name: Set up Python
|
|
53
|
+
uses: actions/setup-python@v5
|
|
54
|
+
with:
|
|
55
|
+
python-version: '3.10'
|
|
56
|
+
|
|
57
|
+
- name: Install Rust
|
|
58
|
+
uses: actions-rs/toolchain@v1
|
|
59
|
+
with:
|
|
60
|
+
profile: minimal
|
|
61
|
+
toolchain: stable
|
|
62
|
+
override: true
|
|
63
|
+
|
|
64
|
+
- name: Install dependencies
|
|
65
|
+
run: |
|
|
66
|
+
python -m pip install --upgrade pip
|
|
67
|
+
pip install maturin
|
|
68
|
+
|
|
69
|
+
- name: Build sdist
|
|
70
|
+
run: |
|
|
71
|
+
maturin build --sdist
|
|
72
|
+
|
|
73
|
+
- name: Upload sdist
|
|
74
|
+
uses: actions/upload-artifact@v4
|
|
75
|
+
with:
|
|
76
|
+
name: sdist
|
|
77
|
+
path: target/wheels/
|
|
78
|
+
|
|
79
|
+
publish-pypi:
|
|
80
|
+
name: Publish to PyPI
|
|
81
|
+
needs: [build-wheels, build-sdist]
|
|
82
|
+
runs-on: ubuntu-latest
|
|
83
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
84
|
+
environment:
|
|
85
|
+
name: pypi
|
|
86
|
+
url: https://pypi.org/project/pyblastradius/
|
|
87
|
+
permissions:
|
|
88
|
+
id-token: write
|
|
89
|
+
steps:
|
|
90
|
+
- name: Download all artifacts
|
|
91
|
+
uses: actions/download-artifact@v4
|
|
92
|
+
with:
|
|
93
|
+
path: dist/
|
|
94
|
+
|
|
95
|
+
- name: Flatten dist directory
|
|
96
|
+
run: |
|
|
97
|
+
mkdir -p final_dist
|
|
98
|
+
find dist -type f -name "*.whl" -o -name "*.tar.gz" | while read file; do
|
|
99
|
+
cp "$file" final_dist/
|
|
100
|
+
done
|
|
101
|
+
ls -la final_dist/
|
|
102
|
+
|
|
103
|
+
- name: Publish to PyPI
|
|
104
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
105
|
+
with:
|
|
106
|
+
packages-dir: final_dist/
|
|
107
|
+
|
|
108
|
+
publish-github-release:
|
|
109
|
+
name: Create GitHub Release
|
|
110
|
+
needs: publish-pypi
|
|
111
|
+
runs-on: ubuntu-latest
|
|
112
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
113
|
+
permissions:
|
|
114
|
+
contents: write
|
|
115
|
+
steps:
|
|
116
|
+
- uses: actions/checkout@v4
|
|
117
|
+
|
|
118
|
+
- name: Download all artifacts
|
|
119
|
+
uses: actions/download-artifact@v4
|
|
120
|
+
with:
|
|
121
|
+
path: artifacts/
|
|
122
|
+
|
|
123
|
+
- name: Create Release
|
|
124
|
+
uses: softprops/action-gh-release@v1
|
|
125
|
+
with:
|
|
126
|
+
files: |
|
|
127
|
+
artifacts/**/*.whl
|
|
128
|
+
artifacts/**/*.tar.gz
|
|
129
|
+
body: |
|
|
130
|
+
# PyBlastRadius ${{ github.ref_name }}
|
|
131
|
+
|
|
132
|
+
Operational Blast Radius Intelligence Platform
|
|
133
|
+
|
|
134
|
+
## Installation
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
pip install pyblastradius==${{ github.ref_name }}
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
## What's New
|
|
141
|
+
|
|
142
|
+
See [CHANGELOG.md](CHANGELOG.md) for detailed changes.
|
|
143
|
+
|
|
144
|
+
## Documentation
|
|
145
|
+
|
|
146
|
+
- [Quick Start](https://github.com/Mullassery/PyBlastRadius/blob/main/docs/QUICK_START.md)
|
|
147
|
+
- [Architecture](https://github.com/Mullassery/PyBlastRadius/blob/main/docs/ARCHITECTURE.md)
|
|
148
|
+
- [Contributing](https://github.com/Mullassery/PyBlastRadius/blob/main/CONTRIBUTING.md)
|
|
149
|
+
|
|
150
|
+
## Support
|
|
151
|
+
|
|
152
|
+
- GitHub Issues: https://github.com/Mullassery/PyBlastRadius/issues
|
|
153
|
+
- Email: mullassery@gmail.com
|
|
154
|
+
draft: false
|
|
155
|
+
prerelease: ${{ contains(github.ref, '-') }}
|
|
156
|
+
env:
|
|
157
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Rust
|
|
2
|
+
/target
|
|
3
|
+
**/*.rs.bk
|
|
4
|
+
Cargo.lock
|
|
5
|
+
*.pdb
|
|
6
|
+
|
|
7
|
+
# Python
|
|
8
|
+
__pycache__/
|
|
9
|
+
*.py[cod]
|
|
10
|
+
*$py.class
|
|
11
|
+
*.so
|
|
12
|
+
.Python
|
|
13
|
+
build/
|
|
14
|
+
develop-eggs/
|
|
15
|
+
dist/
|
|
16
|
+
downloads/
|
|
17
|
+
eggs/
|
|
18
|
+
.eggs/
|
|
19
|
+
lib/
|
|
20
|
+
lib64/
|
|
21
|
+
parts/
|
|
22
|
+
sdist/
|
|
23
|
+
var/
|
|
24
|
+
wheels/
|
|
25
|
+
*.egg-info/
|
|
26
|
+
.installed.cfg
|
|
27
|
+
*.egg
|
|
28
|
+
MANIFEST
|
|
29
|
+
.pytest_cache/
|
|
30
|
+
.coverage
|
|
31
|
+
htmlcov/
|
|
32
|
+
.tox/
|
|
33
|
+
|
|
34
|
+
# IDEs
|
|
35
|
+
.vscode/
|
|
36
|
+
.idea/
|
|
37
|
+
*.swp
|
|
38
|
+
*.swo
|
|
39
|
+
*~
|
|
40
|
+
.DS_Store
|
|
41
|
+
*.sublime-project
|
|
42
|
+
*.sublime-workspace
|
|
43
|
+
|
|
44
|
+
# Environment
|
|
45
|
+
.env
|
|
46
|
+
.env.local
|
|
47
|
+
.venv
|
|
48
|
+
env/
|
|
49
|
+
venv/
|
|
50
|
+
|
|
51
|
+
# Project-specific
|
|
52
|
+
/docs/examples/outputs/
|
|
53
|
+
*.log
|
|
54
|
+
.claude.json
|
|
55
|
+
.claude/
|
|
56
|
+
|
|
57
|
+
# OS
|
|
58
|
+
.DS_Store
|
|
59
|
+
Thumbs.db
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
### Planned
|
|
11
|
+
- ML-based failure prediction with anomaly consensus scoring
|
|
12
|
+
- Neo4j backend for 100K+ node graphs
|
|
13
|
+
- GraphQL Federation for multi-service deployments
|
|
14
|
+
- Kubernetes Operator for continuous discovery
|
|
15
|
+
- Helm chart for self-hosted deployment
|
|
16
|
+
- Advanced hidden dependency detection (query logs, configuration mining)
|
|
17
|
+
|
|
18
|
+
## [0.1.0] - 2026-10-15 (Planned)
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
- **Core Graph Engine**
|
|
22
|
+
- Unified dependency graph with petgraph
|
|
23
|
+
- Support for 11 node types (Service, Database, Pipeline, Topic, VectorDB, Agent, Cache, Queue, etc.)
|
|
24
|
+
- 9 edge types (Calls, Queries, Produces, Consumes, Feeds, DependsOn, Transforms, ExportsTo, Retrieves)
|
|
25
|
+
- Graph traversal algorithms (BFS, DFS, topological sort)
|
|
26
|
+
- Graph serialization (JSON, GraphML, Dot/Graphviz)
|
|
27
|
+
|
|
28
|
+
- **Discovery Engines**
|
|
29
|
+
- Kubernetes manifest parser (Services, Deployments, StatefulSets, NetworkPolicies)
|
|
30
|
+
- Terraform HCL parser (AWS, Azure, GCP resources)
|
|
31
|
+
- Airflow DAG parser (models, tasks, dependencies)
|
|
32
|
+
- OpenTelemetry trace consumer (runtime dependencies from traces)
|
|
33
|
+
|
|
34
|
+
- **Analysis Algorithms**
|
|
35
|
+
- Blast radius analysis (BFS-based impact categorization)
|
|
36
|
+
- Criticality scoring (weighted formula with business exposure)
|
|
37
|
+
- Failure simulator (cascade propagation, recovery time estimation)
|
|
38
|
+
- Hidden dependency detection (trace mining, semantic analysis)
|
|
39
|
+
- Anomaly detection (latency spikes, error rates, resource exhaustion)
|
|
40
|
+
|
|
41
|
+
- **CLI Interface**
|
|
42
|
+
- `scan` - Discover dependencies from infrastructure
|
|
43
|
+
- `analyze` - Blast radius analysis for a service
|
|
44
|
+
- `criticality` - Rank systems by risk
|
|
45
|
+
- `graph` - Generate visualization (HTML, Dot, GraphML)
|
|
46
|
+
- `simulate` - Failure cascade scenarios
|
|
47
|
+
- `analyze-deployment` - Pre-deployment risk assessment
|
|
48
|
+
- `status` - System metrics
|
|
49
|
+
|
|
50
|
+
- **GraphQL API**
|
|
51
|
+
- 15+ types with full schema
|
|
52
|
+
- Queries: blastRadius, criticality, anomalies, hiddenDependencies, metrics
|
|
53
|
+
- Mutations: updateNode, analyzeService, simulateFailure, addDependency
|
|
54
|
+
|
|
55
|
+
- **Third-Party Integrations**
|
|
56
|
+
- Slack Bot (blast radius alerts, anomaly notifications)
|
|
57
|
+
- PagerDuty (incident creation/resolution)
|
|
58
|
+
|
|
59
|
+
- **Data Quality & Lineage**
|
|
60
|
+
- StatGuardian integration (quality rules, cascade impact)
|
|
61
|
+
- dbt manifest parser (column-level lineage, tests)
|
|
62
|
+
- Column lineage tracker (data quality cascade analysis)
|
|
63
|
+
|
|
64
|
+
- **Documentation**
|
|
65
|
+
- Quick start guide (5-minute tutorial)
|
|
66
|
+
- Architecture guide (algorithms, performance)
|
|
67
|
+
- Contributing guide (dev setup, CI/CD)
|
|
68
|
+
- Example configurations (Kubernetes, Terraform, Airflow)
|
|
69
|
+
- Business impact templates
|
|
70
|
+
|
|
71
|
+
- **Testing & Quality**
|
|
72
|
+
- 150+ unit and integration tests
|
|
73
|
+
- CI/CD pipeline (GitHub Actions)
|
|
74
|
+
- Code coverage reporting
|
|
75
|
+
- Multi-platform builds (Linux, macOS, Windows)
|
|
76
|
+
|
|
77
|
+
### Technical Details
|
|
78
|
+
- Written in Rust with Python bindings (PyO3)
|
|
79
|
+
- Zero-copy graph operations via petgraph
|
|
80
|
+
- Async-ready with tokio
|
|
81
|
+
- Support for 10,000+ node graphs in-memory
|
|
82
|
+
- <100ms query latency for typical operations
|
|
83
|
+
- Full integration test coverage
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## Release Checklist
|
|
88
|
+
|
|
89
|
+
When preparing a new release:
|
|
90
|
+
|
|
91
|
+
- [ ] Update version in `Cargo.toml`, `pyproject.toml`, and `__init__.py`
|
|
92
|
+
- [ ] Update this `CHANGELOG.md` with new section
|
|
93
|
+
- [ ] Ensure all tests pass (`cargo test`)
|
|
94
|
+
- [ ] Run code quality checks (`cargo clippy`, `cargo fmt`)
|
|
95
|
+
- [ ] Create git tag: `git tag -a v0.1.0 -m "Release v0.1.0"`
|
|
96
|
+
- [ ] Push tag: `git push origin v0.1.0`
|
|
97
|
+
- [ ] Verify wheels built and published on PyPI
|
|
98
|
+
- [ ] Verify release created on GitHub with artifacts
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## Links
|
|
103
|
+
|
|
104
|
+
- [Documentation](https://github.com/Mullassery/PyBlastRadius/blob/main/docs/)
|
|
105
|
+
- [GitHub Issues](https://github.com/Mullassery/PyBlastRadius/issues)
|
|
106
|
+
- [PyPI Package](https://pypi.org/project/pyblastradius/)
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
**Note**: This project follows Semantic Versioning. For updates and feature requests, see [Contributing](CONTRIBUTING.md).
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
|
6
|
+
|
|
7
|
+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
|
|
8
|
+
|
|
9
|
+
## Our Standards
|
|
10
|
+
|
|
11
|
+
Examples of behavior that contributes to a positive environment for our community include:
|
|
12
|
+
|
|
13
|
+
- Demonstrating empathy and kindness toward other people
|
|
14
|
+
- Being respectful of differing opinions, viewpoints, and experiences
|
|
15
|
+
- Giving and gracefully accepting constructive feedback
|
|
16
|
+
- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
|
17
|
+
- Focusing on what is best not just for us as individuals, but for the overall community
|
|
18
|
+
|
|
19
|
+
Examples of unacceptable behavior include:
|
|
20
|
+
|
|
21
|
+
- The use of sexualized language or imagery, and sexual attention or advances of any kind
|
|
22
|
+
- Trolling, insulting or derogatory comments, and personal or political attacks
|
|
23
|
+
- Public or private harassment
|
|
24
|
+
- Publishing others' private information, such as a physical or email address, without their explicit permission
|
|
25
|
+
- Other conduct which could reasonably be considered inappropriate in a professional setting
|
|
26
|
+
|
|
27
|
+
## Enforcement Responsibilities
|
|
28
|
+
|
|
29
|
+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
|
|
30
|
+
|
|
31
|
+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
|
|
32
|
+
|
|
33
|
+
## Scope
|
|
34
|
+
|
|
35
|
+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
|
|
36
|
+
|
|
37
|
+
## Enforcement
|
|
38
|
+
|
|
39
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at mullassery@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
|
|
40
|
+
|
|
41
|
+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
|
|
42
|
+
|
|
43
|
+
## Enforcement Guidelines
|
|
44
|
+
|
|
45
|
+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
|
|
46
|
+
|
|
47
|
+
### 1. Correction
|
|
48
|
+
|
|
49
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
|
|
50
|
+
|
|
51
|
+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
|
|
52
|
+
|
|
53
|
+
### 2. Warning
|
|
54
|
+
|
|
55
|
+
**Community Impact**: A violation through a single incident or series of actions.
|
|
56
|
+
|
|
57
|
+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
|
|
58
|
+
|
|
59
|
+
### 3. Temporary Ban
|
|
60
|
+
|
|
61
|
+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
|
|
62
|
+
|
|
63
|
+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
|
|
64
|
+
|
|
65
|
+
### 4. Permanent Ban
|
|
66
|
+
|
|
67
|
+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
|
|
68
|
+
|
|
69
|
+
**Consequence**: A permanent ban from any sort of public interaction within the community project.
|
|
70
|
+
|
|
71
|
+
## Attribution
|
|
72
|
+
|
|
73
|
+
This Code of Conduct is adapted from the Contributor Covenant, version 2.1, available at https://www.contributor-covenant.org/version/2/1/code_of_conduct.html.
|
|
74
|
+
|
|
75
|
+
Community Impact Guidelines were inspired by Mozilla's code of conduct enforcement ladder.
|
|
76
|
+
|
|
77
|
+
For answers to common questions about this code of conduct, see the FAQ at https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
|