mastyf-authority 0.1.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.
- mastyf_authority-0.1.0/.dockerignore +9 -0
- mastyf_authority-0.1.0/.github/dependabot.yml +7 -0
- mastyf_authority-0.1.0/.github/pull_request_template.md +17 -0
- mastyf_authority-0.1.0/.github/workflows/cla.yml +39 -0
- mastyf_authority-0.1.0/.github/workflows/codeql.yml +19 -0
- mastyf_authority-0.1.0/.github/workflows/release.yml +63 -0
- mastyf_authority-0.1.0/.github/workflows/scorecard.yml +16 -0
- mastyf_authority-0.1.0/.github/workflows/tests.yml +18 -0
- mastyf_authority-0.1.0/.gitignore +23 -0
- mastyf_authority-0.1.0/CLA.md +91 -0
- mastyf_authority-0.1.0/COMMERCIAL.md +63 -0
- mastyf_authority-0.1.0/CONTRIBUTING.md +39 -0
- mastyf_authority-0.1.0/LICENSE +661 -0
- mastyf_authority-0.1.0/PKG-INFO +14 -0
- mastyf_authority-0.1.0/README.md +168 -0
- mastyf_authority-0.1.0/SECURITY.md +64 -0
- mastyf_authority-0.1.0/artifacts/bounded.json +1944 -0
- mastyf_authority-0.1.0/artifacts/bounded_learned.json +1945 -0
- mastyf_authority-0.1.0/artifacts/eval.json +109 -0
- mastyf_authority-0.1.0/artifacts/redteam_learned.json +300 -0
- mastyf_authority-0.1.0/artifacts/redteam_learned_novelty.json +356 -0
- mastyf_authority-0.1.0/artifacts/replay.json +948 -0
- mastyf_authority-0.1.0/artifacts/scorecard/SCORECARD.md +145 -0
- mastyf_authority-0.1.0/artifacts/scorecard/agentdojo.json +122 -0
- mastyf_authority-0.1.0/artifacts/scorecard/attack.json +254 -0
- mastyf_authority-0.1.0/artifacts/scorecard/attack.md +36 -0
- mastyf_authority-0.1.0/artifacts/scorecard/bandit.json +712 -0
- mastyf_authority-0.1.0/artifacts/scorecard/cargo-audit.json +1 -0
- mastyf_authority-0.1.0/artifacts/scorecard/pip-audit.json +1 -0
- mastyf_authority-0.1.0/artifacts/scorecard/semgrep.json +1 -0
- mastyf_authority-0.1.0/artifacts/scorecard/tests.txt +3 -0
- mastyf_authority-0.1.0/artifacts/scorecard/testssl.json +647 -0
- mastyf_authority-0.1.0/assets/architecture-dark.svg +7 -0
- mastyf_authority-0.1.0/assets/architecture-light.svg +7 -0
- mastyf_authority-0.1.0/assets/banner-dark.svg +22 -0
- mastyf_authority-0.1.0/assets/banner-light.svg +22 -0
- mastyf_authority-0.1.0/assets/decide-dark.svg +67 -0
- mastyf_authority-0.1.0/assets/decide-light.svg +67 -0
- mastyf_authority-0.1.0/assets/header-cla-dark.svg +6 -0
- mastyf_authority-0.1.0/assets/header-cla-light.svg +6 -0
- mastyf_authority-0.1.0/assets/header-commercial-dark.svg +6 -0
- mastyf_authority-0.1.0/assets/header-commercial-light.svg +6 -0
- mastyf_authority-0.1.0/assets/header-contributing-dark.svg +6 -0
- mastyf_authority-0.1.0/assets/header-contributing-light.svg +6 -0
- mastyf_authority-0.1.0/assets/header-security-dark.svg +6 -0
- mastyf_authority-0.1.0/assets/header-security-light.svg +6 -0
- mastyf_authority-0.1.0/assets/jack-lights-up.gif +0 -0
- mastyf_authority-0.1.0/assets/stats-dark.svg +33 -0
- mastyf_authority-0.1.0/assets/stats-light.svg +33 -0
- mastyf_authority-0.1.0/deploy/Caddyfile +28 -0
- mastyf_authority-0.1.0/deploy/Dockerfile.authority +14 -0
- mastyf_authority-0.1.0/deploy/Dockerfile.keyservice +18 -0
- mastyf_authority-0.1.0/deploy/kek.sh.example +4 -0
- mastyf_authority-0.1.0/deploy/mastyf-gateway.service +29 -0
- mastyf_authority-0.1.0/deploy/mastyf-keyservice.service +37 -0
- mastyf_authority-0.1.0/fixtures/tag_v1.js +13 -0
- mastyf_authority-0.1.0/fixtures/tag_v2_skimmer.js +24 -0
- mastyf_authority-0.1.0/policies/default.json +266 -0
- mastyf_authority-0.1.0/pyproject.toml +28 -0
- mastyf_authority-0.1.0/rust/keyservice/Cargo.lock +779 -0
- mastyf_authority-0.1.0/rust/keyservice/Cargo.toml +30 -0
- mastyf_authority-0.1.0/rust/keyservice/src/bin/gateway.rs +420 -0
- mastyf_authority-0.1.0/rust/keyservice/src/binding.rs +247 -0
- mastyf_authority-0.1.0/rust/keyservice/src/gates.rs +587 -0
- mastyf_authority-0.1.0/rust/keyservice/src/ha.rs +653 -0
- mastyf_authority-0.1.0/rust/keyservice/src/lib.rs +1285 -0
- mastyf_authority-0.1.0/rust/keyservice/src/main.rs +555 -0
- mastyf_authority-0.1.0/rust/keyservice/src/undo.rs +307 -0
- mastyf_authority-0.1.0/sandbox/.gitignore +2 -0
- mastyf_authority-0.1.0/sandbox/Dockerfile.py +11 -0
- mastyf_authority-0.1.0/sandbox/Dockerfile.rust +10 -0
- mastyf_authority-0.1.0/sandbox/README.md +76 -0
- mastyf_authority-0.1.0/sandbox/app.py +164 -0
- mastyf_authority-0.1.0/sandbox/check_flags.py +41 -0
- mastyf_authority-0.1.0/sandbox/docker-compose.yml +68 -0
- mastyf_authority-0.1.0/sandbox/example_attack.py +60 -0
- mastyf_authority-0.1.0/sandbox/init.py +83 -0
- mastyf_authority-0.1.0/sandbox/verify.override.yml +4 -0
- mastyf_authority-0.1.0/sandbox/verify.sh +56 -0
- mastyf_authority-0.1.0/src/authority/__init__.py +3 -0
- mastyf_authority-0.1.0/src/authority/actions.py +143 -0
- mastyf_authority-0.1.0/src/authority/agents.py +193 -0
- mastyf_authority-0.1.0/src/authority/approver.py +62 -0
- mastyf_authority-0.1.0/src/authority/audit.py +72 -0
- mastyf_authority-0.1.0/src/authority/binding.py +315 -0
- mastyf_authority-0.1.0/src/authority/binding_sim.py +110 -0
- mastyf_authority-0.1.0/src/authority/bounded.py +217 -0
- mastyf_authority-0.1.0/src/authority/budgets.py +328 -0
- mastyf_authority-0.1.0/src/authority/ceiling.py +189 -0
- mastyf_authority-0.1.0/src/authority/cli.py +231 -0
- mastyf_authority-0.1.0/src/authority/crypto.py +70 -0
- mastyf_authority-0.1.0/src/authority/engine.py +442 -0
- mastyf_authority-0.1.0/src/authority/enroll.py +169 -0
- mastyf_authority-0.1.0/src/authority/evaluate.py +122 -0
- mastyf_authority-0.1.0/src/authority/features.py +176 -0
- mastyf_authority-0.1.0/src/authority/gates.py +192 -0
- mastyf_authority-0.1.0/src/authority/grants.py +76 -0
- mastyf_authority-0.1.0/src/authority/learn.py +152 -0
- mastyf_authority-0.1.0/src/authority/model.py +111 -0
- mastyf_authority-0.1.0/src/authority/model_json.py +184 -0
- mastyf_authority-0.1.0/src/authority/novelty.py +177 -0
- mastyf_authority-0.1.0/src/authority/policy.py +99 -0
- mastyf_authority-0.1.0/src/authority/quorum.py +70 -0
- mastyf_authority-0.1.0/src/authority/redteam.py +247 -0
- mastyf_authority-0.1.0/src/authority/replay.py +164 -0
- mastyf_authority-0.1.0/src/authority/scenarios.py +202 -0
- mastyf_authority-0.1.0/src/authority/script_integrity.py +241 -0
- mastyf_authority-0.1.0/src/authority/server.py +432 -0
- mastyf_authority-0.1.0/src/authority/teams.py +82 -0
- mastyf_authority-0.1.0/src/authority/undo.py +243 -0
- mastyf_authority-0.1.0/src/authority/web/app.css +25 -0
- mastyf_authority-0.1.0/src/authority/web/app.js +247 -0
- mastyf_authority-0.1.0/src/authority/web/approve.html +18 -0
- mastyf_authority-0.1.0/src/authority/web/enroll.html +14 -0
- mastyf_authority-0.1.0/src/authority/web/limits.html +13 -0
- mastyf_authority-0.1.0/src/authority/webauthn.py +183 -0
- mastyf_authority-0.1.0/tests/optimjack_fixtures.py +96 -0
- mastyf_authority-0.1.0/tests/test_agents.py +138 -0
- mastyf_authority-0.1.0/tests/test_authority.py +274 -0
- mastyf_authority-0.1.0/tests/test_binding.py +151 -0
- mastyf_authority-0.1.0/tests/test_budgets.py +147 -0
- mastyf_authority-0.1.0/tests/test_ceiling.py +101 -0
- mastyf_authority-0.1.0/tests/test_enroll.py +249 -0
- mastyf_authority-0.1.0/tests/test_fuzz.py +124 -0
- mastyf_authority-0.1.0/tests/test_gates.py +103 -0
- mastyf_authority-0.1.0/tests/test_model_fastpath.py +21 -0
- mastyf_authority-0.1.0/tests/test_optimjack.py +34 -0
- mastyf_authority-0.1.0/tests/test_quorum.py +58 -0
- mastyf_authority-0.1.0/tests/test_review.py +46 -0
- mastyf_authority-0.1.0/tests/test_rust_binding_diff.py +126 -0
- mastyf_authority-0.1.0/tests/test_rust_differential.py +119 -0
- mastyf_authority-0.1.0/tests/test_rust_durability.py +180 -0
- mastyf_authority-0.1.0/tests/test_rust_fuzz.py +67 -0
- mastyf_authority-0.1.0/tests/test_rust_gates_diff.py +130 -0
- mastyf_authority-0.1.0/tests/test_rust_gateway.py +148 -0
- mastyf_authority-0.1.0/tests/test_rust_ha.py +271 -0
- mastyf_authority-0.1.0/tests/test_rust_kek_rotation.py +86 -0
- mastyf_authority-0.1.0/tests/test_rust_passkey_approvals.py +97 -0
- mastyf_authority-0.1.0/tests/test_rust_service.py +85 -0
- mastyf_authority-0.1.0/tests/test_rust_tls.py +133 -0
- mastyf_authority-0.1.0/tests/test_rust_undo_diff.py +124 -0
- mastyf_authority-0.1.0/tests/test_server.py +90 -0
- mastyf_authority-0.1.0/tests/test_undo.py +99 -0
- mastyf_authority-0.1.0/tools/agentdojo_bench.py +172 -0
- mastyf_authority-0.1.0/tools/bench_ha.py +76 -0
- mastyf_authority-0.1.0/tools/loadtest.py +119 -0
- mastyf_authority-0.1.0/tools/loadtest_gateway.py +102 -0
- mastyf_authority-0.1.0/tools/scorecard.py +149 -0
- mastyf_authority-0.1.0/tools/scorecard_tls.py +49 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
- { package-ecosystem: pip, directory: "/", schedule: { interval: weekly } }
|
|
4
|
+
- { package-ecosystem: cargo, directory: "/rust/keyservice", schedule: { interval: weekly } }
|
|
5
|
+
- { package-ecosystem: github-actions, directory: "/", schedule: { interval: weekly } }
|
|
6
|
+
- { package-ecosystem: docker, directory: "/deploy", schedule: { interval: weekly } }
|
|
7
|
+
- { package-ecosystem: docker, directory: "/sandbox", schedule: { interval: weekly } }
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
## What this changes
|
|
2
|
+
|
|
3
|
+
<!-- One focused change. What does it do, and why? -->
|
|
4
|
+
|
|
5
|
+
## How it was tested
|
|
6
|
+
|
|
7
|
+
<!-- `pytest -q` output, a new test, or how you checked it by hand. -->
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
**First pull request here?** Please sign the [Contributor Licence Agreement](https://github.com/mastyf-ai/mastyf-authority/blob/main/CLA.md) (you keep your copyright) by posting this exact comment below:
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
I have read the CLA Document and I hereby sign the CLA
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
The **CLA** check turns green once you've signed. Found a security problem? Don't open a pull request; report it privately ([SECURITY.md](https://github.com/mastyf-ai/mastyf-authority/blob/main/SECURITY.md)).
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Contributor Licence Agreement, enforced inside this repository (no outside service).
|
|
2
|
+
# A contributor signs once by commenting the sentence below on their pull request; signatures are
|
|
3
|
+
# committed to the unprotected `cla-signatures` branch. The check "CLA" is required to merge into main.
|
|
4
|
+
name: CLA
|
|
5
|
+
on:
|
|
6
|
+
issue_comment:
|
|
7
|
+
types: [created]
|
|
8
|
+
pull_request_target:
|
|
9
|
+
types: [opened, closed, synchronize, reopened]
|
|
10
|
+
permissions:
|
|
11
|
+
actions: write
|
|
12
|
+
contents: write
|
|
13
|
+
pull-requests: write
|
|
14
|
+
statuses: write
|
|
15
|
+
jobs:
|
|
16
|
+
CLA:
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
steps:
|
|
19
|
+
- name: Check or record CLA signatures
|
|
20
|
+
if: >-
|
|
21
|
+
github.event_name == 'pull_request_target' ||
|
|
22
|
+
(github.event.issue.pull_request &&
|
|
23
|
+
(github.event.comment.body == 'recheck' ||
|
|
24
|
+
github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA'))
|
|
25
|
+
# pinned to v2.6.1; this job never checks out or runs pull-request code
|
|
26
|
+
uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08
|
|
27
|
+
env:
|
|
28
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
29
|
+
with:
|
|
30
|
+
path-to-signatures: signatures/version1/cla.json
|
|
31
|
+
path-to-document: https://github.com/mastyf-ai/mastyf-authority/blob/main/CLA.md
|
|
32
|
+
branch: cla-signatures
|
|
33
|
+
allowlist: mastyf-ai,rudraneel93,dependabot[bot],github-actions[bot],bot*
|
|
34
|
+
custom-notsigned-prcomment: >-
|
|
35
|
+
Thank you for contributing to Mastyf Authority! Before we can merge, please sign our
|
|
36
|
+
[Contributor Licence Agreement](https://github.com/mastyf-ai/mastyf-authority/blob/main/CLA.md):
|
|
37
|
+
you keep the copyright in your work. To sign, reply to this pull request with exactly the sentence below.
|
|
38
|
+
custom-allsigned-prcomment: All contributors have signed the CLA. Thank you!
|
|
39
|
+
lock-pullrequest-aftermerge: false
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
name: CodeQL
|
|
2
|
+
on:
|
|
3
|
+
push: { branches: [main] }
|
|
4
|
+
pull_request: { branches: [main] }
|
|
5
|
+
schedule: [{ cron: "23 4 * * 1" }]
|
|
6
|
+
permissions: { contents: read }
|
|
7
|
+
jobs:
|
|
8
|
+
analyze:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
permissions: { security-events: write, contents: read, actions: read }
|
|
11
|
+
strategy:
|
|
12
|
+
fail-fast: false
|
|
13
|
+
matrix: { language: [python, rust, actions] }
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
- uses: github/codeql-action/init@v3
|
|
17
|
+
with: { languages: "${{ matrix.language }}", build-mode: none }
|
|
18
|
+
- uses: github/codeql-action/analyze@v3
|
|
19
|
+
with: { category: "/language:${{ matrix.language }}" }
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Tag vX.Y.Z on main to release: Python package + container images (GHCR) + GitHub Release.
|
|
2
|
+
name: Release
|
|
3
|
+
on:
|
|
4
|
+
push: { tags: ["v*.*.*"] }
|
|
5
|
+
permissions: { contents: read }
|
|
6
|
+
jobs:
|
|
7
|
+
python:
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
steps:
|
|
10
|
+
- uses: actions/checkout@v4
|
|
11
|
+
with: { persist-credentials: false }
|
|
12
|
+
- uses: actions/setup-python@v5
|
|
13
|
+
with: { python-version: "3.12" }
|
|
14
|
+
- run: pip install build && python -m build
|
|
15
|
+
- uses: actions/upload-artifact@v4
|
|
16
|
+
with: { name: dist, path: dist/ }
|
|
17
|
+
images:
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
permissions: { contents: read, packages: write }
|
|
20
|
+
strategy:
|
|
21
|
+
matrix:
|
|
22
|
+
include:
|
|
23
|
+
- { name: authority, file: deploy/Dockerfile.authority }
|
|
24
|
+
- { name: keyservice, file: deploy/Dockerfile.keyservice }
|
|
25
|
+
- { name: sandbox-py, file: sandbox/Dockerfile.py }
|
|
26
|
+
- { name: sandbox-rs, file: sandbox/Dockerfile.rust }
|
|
27
|
+
steps:
|
|
28
|
+
- uses: actions/checkout@v4
|
|
29
|
+
with: { persist-credentials: false }
|
|
30
|
+
- uses: docker/setup-qemu-action@v3
|
|
31
|
+
- uses: docker/setup-buildx-action@v3
|
|
32
|
+
- uses: docker/login-action@v3
|
|
33
|
+
with: { registry: ghcr.io, username: "${{ github.actor }}", password: "${{ secrets.GITHUB_TOKEN }}" }
|
|
34
|
+
- uses: docker/build-push-action@v6
|
|
35
|
+
with:
|
|
36
|
+
context: .
|
|
37
|
+
file: ${{ matrix.file }}
|
|
38
|
+
platforms: linux/amd64,linux/arm64
|
|
39
|
+
push: true
|
|
40
|
+
provenance: true
|
|
41
|
+
tags: |
|
|
42
|
+
ghcr.io/${{ github.repository_owner }}/mastyf-authority-${{ matrix.name }}:${{ github.ref_name }}
|
|
43
|
+
ghcr.io/${{ github.repository_owner }}/mastyf-authority-${{ matrix.name }}:latest
|
|
44
|
+
pypi:
|
|
45
|
+
# Trusted publishing (no stored token). One-time setup on pypi.org: add a pending publisher for project
|
|
46
|
+
# "mastyf-authority": owner mastyf-ai, repository mastyf-authority, workflow release.yml, environment pypi.
|
|
47
|
+
needs: [python]
|
|
48
|
+
runs-on: ubuntu-latest
|
|
49
|
+
environment: { name: pypi, url: "https://pypi.org/project/mastyf-authority/" }
|
|
50
|
+
permissions: { id-token: write }
|
|
51
|
+
steps:
|
|
52
|
+
- uses: actions/download-artifact@v4
|
|
53
|
+
with: { name: dist, path: dist/ }
|
|
54
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
55
|
+
release:
|
|
56
|
+
needs: [python, images]
|
|
57
|
+
runs-on: ubuntu-latest
|
|
58
|
+
permissions: { contents: write }
|
|
59
|
+
steps:
|
|
60
|
+
- uses: actions/download-artifact@v4
|
|
61
|
+
with: { name: dist, path: dist/ }
|
|
62
|
+
- env: { GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}" }
|
|
63
|
+
run: gh release create "${{ github.ref_name }}" dist/* --repo "${{ github.repository }}" --generate-notes --title "Mastyf Authority ${{ github.ref_name }}"
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
name: OpenSSF Scorecard
|
|
2
|
+
on:
|
|
3
|
+
push: { branches: [main] }
|
|
4
|
+
schedule: [{ cron: "41 5 * * 1" }]
|
|
5
|
+
permissions: read-all
|
|
6
|
+
jobs:
|
|
7
|
+
analysis:
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
permissions: { security-events: write, id-token: write, contents: read, actions: read }
|
|
10
|
+
steps:
|
|
11
|
+
- uses: actions/checkout@v4
|
|
12
|
+
with: { persist-credentials: false }
|
|
13
|
+
- uses: ossf/scorecard-action@v2.6.0
|
|
14
|
+
with: { results_file: results.sarif, results_format: sarif, publish_results: true }
|
|
15
|
+
- uses: github/codeql-action/upload-sarif@v3
|
|
16
|
+
with: { sarif_file: results.sarif }
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
name: Tests
|
|
2
|
+
on:
|
|
3
|
+
push: { branches: [main] }
|
|
4
|
+
pull_request: { branches: [main] }
|
|
5
|
+
permissions: { contents: read }
|
|
6
|
+
jobs:
|
|
7
|
+
test:
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
timeout-minutes: 45
|
|
10
|
+
steps:
|
|
11
|
+
- uses: actions/checkout@v4
|
|
12
|
+
with: { persist-credentials: false }
|
|
13
|
+
- uses: actions/setup-python@v5
|
|
14
|
+
with: { python-version: "3.12" }
|
|
15
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
16
|
+
- run: (cd rust/keyservice && cargo build --release --locked --bins)
|
|
17
|
+
- run: pip install -e '.[dev]' hypothesis
|
|
18
|
+
- run: PYTHONPATH=src:tests pytest -q
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.venv/
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.pyc
|
|
4
|
+
.pytest_cache/
|
|
5
|
+
state/
|
|
6
|
+
artifacts/*.pkl
|
|
7
|
+
artifacts_train.log
|
|
8
|
+
datasets/
|
|
9
|
+
# never commit: downloaded datasets (licence-restricted; LANL token), caches, build output, runtime state
|
|
10
|
+
artifacts/alert_cache/
|
|
11
|
+
artifacts/unsup_cache/
|
|
12
|
+
artifacts/*.cache
|
|
13
|
+
rust/keyservice/target/
|
|
14
|
+
*.journal
|
|
15
|
+
*.pre-rotation
|
|
16
|
+
*.rotating
|
|
17
|
+
kek.b64
|
|
18
|
+
*.key
|
|
19
|
+
*.pem
|
|
20
|
+
.env
|
|
21
|
+
.DS_Store
|
|
22
|
+
artifacts/*.log
|
|
23
|
+
*.log
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
<picture>
|
|
2
|
+
<source media="(prefers-color-scheme: dark)" srcset="assets/header-cla-dark.svg">
|
|
3
|
+
<img alt="Mastyf Authority Contributor Licence Agreement" src="assets/header-cla-light.svg" width="100%">
|
|
4
|
+
</picture>
|
|
5
|
+
|
|
6
|
+
## The short version
|
|
7
|
+
|
|
8
|
+
| | |
|
|
9
|
+
|---|---|
|
|
10
|
+
| ✅ **You keep your copyright.** | This is a licence, not a transfer of ownership. |
|
|
11
|
+
| 🔁 **Mastyf may license your contribution** | under the AGPL v3 and under commercial terms. That's what keeps the open edition funded. |
|
|
12
|
+
| 🛡️ **You promise it's yours to give** | it's your original work, or third-party code is clearly marked with its licence. |
|
|
13
|
+
| ✍️ **One comment, once** | the CLA bot asks on your first pull request; you reply with one sentence. |
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><b>Read the full agreement</b></summary>
|
|
17
|
+
<br>
|
|
18
|
+
|
|
19
|
+
Thank you for contributing to a project maintained by **Rudraneel Das, carrying on business as Mastyf (mastyf.ai)**, and on and after its incorporation by **Mastyf Labs Private Limited** (**"Mastyf"**). "Mastyf" includes their successors and assigns. Mastyf may transfer this Agreement without notice to You. This Agreement sets out the terms on which you (**"You"**) make Contributions. By signing, or by clicking "I agree" in the CLA tool, You accept it.
|
|
20
|
+
|
|
21
|
+
## 1. Definitions
|
|
22
|
+
|
|
23
|
+
**"Contribution"** means any original work, including code, documentation and other material, together with any modification of an existing work, that You intentionally submit to Mastyf for inclusion in any project or repository owned or managed by Mastyf.
|
|
24
|
+
|
|
25
|
+
A work is "submitted" if it is sent by any form of electronic, verbal or written communication, including pull requests, patches, issues and discussions. It is not submitted if You conspicuously mark it **"Not a Contribution."**
|
|
26
|
+
|
|
27
|
+
## 2. Copyright licence
|
|
28
|
+
|
|
29
|
+
2.1 You grant Mastyf, and recipients of software distributed by Mastyf, a licence to:
|
|
30
|
+
|
|
31
|
+
(a) reproduce, prepare derivative works of, publicly display, publicly perform, distribute and make available (including as a hosted or network service) Your Contributions and derivative works of them; and
|
|
32
|
+
|
|
33
|
+
(b) sublicense and **relicense them under any terms, including open-source licences such as the GNU AGPL v3, and commercial, proprietary or dual-licence terms**.
|
|
34
|
+
|
|
35
|
+
2.2 The licence is perpetual, worldwide, non-exclusive, royalty-free and irrevocable (except as stated in section 3).
|
|
36
|
+
|
|
37
|
+
2.3 **Territory and duration.** For the purposes of sections 19 and 30A of the Copyright Act, 1957, the licence:
|
|
38
|
+
|
|
39
|
+
(a) is worldwide;
|
|
40
|
+
|
|
41
|
+
(b) lasts for the full term of copyright; and
|
|
42
|
+
|
|
43
|
+
(c) shall not lapse for non-exercise.
|
|
44
|
+
|
|
45
|
+
## 3. Patent licence
|
|
46
|
+
|
|
47
|
+
3.1 You grant Mastyf, and recipients of software distributed by Mastyf, a licence to make, have made, use, offer to sell, sell, import and otherwise transfer the work. The licence:
|
|
48
|
+
|
|
49
|
+
(a) is perpetual, worldwide, non-exclusive, royalty-free and irrevocable (except as stated in clause 3.2); and
|
|
50
|
+
|
|
51
|
+
(b) covers only patent claims that You can license and that are necessarily infringed by Your Contribution alone, or by its combination with the project to which it was submitted.
|
|
52
|
+
|
|
53
|
+
3.2 If any entity institutes patent litigation alleging that Your Contribution, or the work it was submitted to, infringes a patent, any patent licence granted to that entity under this Agreement for that work terminates on the date that litigation is filed.
|
|
54
|
+
|
|
55
|
+
## 4. Your representations
|
|
56
|
+
|
|
57
|
+
You represent that:
|
|
58
|
+
|
|
59
|
+
(a) You are legally entitled to grant these licences, and You are at least 18 years old;
|
|
60
|
+
|
|
61
|
+
(b) each Contribution is Your original creation;
|
|
62
|
+
|
|
63
|
+
(c) any third-party material in a Contribution is identified, with its licence; and
|
|
64
|
+
|
|
65
|
+
(d) if Your employer, university or another party has rights to intellectual property that You create, You have permission to make the Contribution on Mastyf's behalf, or Your employer has waived those rights.
|
|
66
|
+
|
|
67
|
+
## 5. Moral rights
|
|
68
|
+
|
|
69
|
+
To the extent permitted by law, You agree not to assert moral rights, including under section 57 of the Copyright Act, 1957, against Mastyf or its licensees in respect of modification of Your Contributions, or their use without attribution, in the ordinary course of software development and distribution.
|
|
70
|
+
|
|
71
|
+
## 6. No warranty, no obligation
|
|
72
|
+
|
|
73
|
+
6.1 Unless You agree otherwise in writing, You provide Contributions **"as is"**, without warranties of any kind.
|
|
74
|
+
|
|
75
|
+
6.2 Mastyf is not obliged to use any Contribution.
|
|
76
|
+
|
|
77
|
+
6.3 You keep all right, title and interest in Your Contributions, except for the licences granted here.
|
|
78
|
+
|
|
79
|
+
## 7. Notice of changes
|
|
80
|
+
|
|
81
|
+
You will notify Mastyf if You become aware of any fact that makes the representations in section 4 inaccurate.
|
|
82
|
+
|
|
83
|
+
## 8. Law
|
|
84
|
+
|
|
85
|
+
This Agreement is governed by the laws of India. The courts at **Kolkata, West Bengal** have jurisdiction.
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
**How you accept:** on your first pull request, a bot asks you to sign. Reply with exactly: "I have read the CLA Document and I hereby sign the CLA". Your GitHub username, the date and the pull request are recorded in this repository (branch `cla-signatures`). That acceptance is a valid electronic contract under section 10A of the Information Technology Act, 2000.
|
|
90
|
+
|
|
91
|
+
</details>
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
<picture>
|
|
2
|
+
<source media="(prefers-color-scheme: dark)" srcset="assets/header-commercial-dark.svg">
|
|
3
|
+
<img alt="Mastyf Authority editions: open core plus Enterprise" src="assets/header-commercial-light.svg" width="100%">
|
|
4
|
+
</picture>
|
|
5
|
+
|
|
6
|
+
**The open edition is the whole security system.** Everything that sets the ceiling is open and free under the AGPL v3. **Enterprise adds what larger organisations need to roll it out, run it and prove it.**
|
|
7
|
+
|
|
8
|
+
## Compare editions
|
|
9
|
+
|
|
10
|
+
| | Open<br/><sub>AGPL v3 · free</sub> | Enterprise<br/><sub>commercial licence</sub> |
|
|
11
|
+
|---|:---:|:---:|
|
|
12
|
+
| **Protection** | | |
|
|
13
|
+
| Decision engine, signed single-use grants | ✅ | ✅ |
|
|
14
|
+
| Behavioural risk model: the method and training code (no attack examples needed) | ✅ | ✅ |
|
|
15
|
+
| Two-person approval | ✅ | ✅ |
|
|
16
|
+
| Key vault with daily budgets (Rust key service) | ✅ | ✅ |
|
|
17
|
+
| Device binding with passkeys | ✅ | ✅ |
|
|
18
|
+
| Change and undo gates | ✅ | ✅ |
|
|
19
|
+
| AI-agent limits | ✅ | ✅ |
|
|
20
|
+
| Script integrity check | ✅ | ✅ |
|
|
21
|
+
| Tamper-evident audit log | ✅ | ✅ |
|
|
22
|
+
| **Detection** | | |
|
|
23
|
+
| 🧠 Production risk model, trained and tuned (the open edition trains its own on simulated incidents) | | ✅ |
|
|
24
|
+
| 🕵️ Insider-detection pack: the real-data pipeline and settings behind 179 of 187 insiders on CMU CERT | | ✅ |
|
|
25
|
+
| **Rollout and operations** | | |
|
|
26
|
+
| 🔌 Log connectors: AWS CloudTrail, Okta, GitHub audit logs, more on request | | ✅ |
|
|
27
|
+
| 🌗 Shadow-mode pilot: score your real logs for weeks, enforce nothing, get a report | | ✅ |
|
|
28
|
+
| 👥 SCIM sync from Okta or Entra ID: teams and leavers automatically; leavers frozen at once | | ✅ |
|
|
29
|
+
| 🧬 Leak tracing: every copy that leaves is unique, so a leak points to its source | | ✅ |
|
|
30
|
+
| 🛡️ Vendor-side script firewall: catches skimmer campaigns across third-party scripts | | ✅ |
|
|
31
|
+
| ☁️ Hosted Authority Cloud: we run the authority and key service | | ✅ |
|
|
32
|
+
| **Licence and support** | | |
|
|
33
|
+
| Use without AGPL obligations, or embed in your own product | | ✅ |
|
|
34
|
+
| Response-time commitments, deployment help, evidence packs for audits | | ✅ |
|
|
35
|
+
|
|
36
|
+
## How to start
|
|
37
|
+
|
|
38
|
+
```mermaid
|
|
39
|
+
flowchart LR
|
|
40
|
+
A[Talk to us] --> B[Shadow-mode pilot<br/>on your real logs]
|
|
41
|
+
B --> C[Report: what would<br/>have been stopped<br/>and what it costs]
|
|
42
|
+
C --> D[Switch on<br/>enforcement]
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**Pricing:** Team ₹14,999 a month (up to 50 people), Business ₹49,999 a month (up to 250 people), Enterprise on a custom contract. Yearly plans save 17%. **[Buy or compare plans →](https://www.mastyf.ai/authority#pricing)**
|
|
46
|
+
|
|
47
|
+
<p align="center">
|
|
48
|
+
<a href="https://www.mastyf.ai/pilot"><img alt="Talk to us about Enterprise or a commercial licence" src="https://img.shields.io/badge/Enterprise%20or%20commercial%20licence-talk%20to%20us%20%E2%86%92-e3b453?style=for-the-badge"></a>
|
|
49
|
+
</p>
|
|
50
|
+
|
|
51
|
+
<details>
|
|
52
|
+
<summary><b>Why is it open core and not fully open?</b></summary>
|
|
53
|
+
<br>
|
|
54
|
+
|
|
55
|
+
Everything you need to **trust** Authority, and to run it yourself, is open: you can read and test every line that sets the ceiling. The paid parts are the ones that save a large organisation time and prove results to its auditors. They pay for the open work.
|
|
56
|
+
</details>
|
|
57
|
+
|
|
58
|
+
<details>
|
|
59
|
+
<summary><b>Do I need a commercial licence?</b></summary>
|
|
60
|
+
<br>
|
|
61
|
+
|
|
62
|
+
Only if you can't meet the AGPL v3: for example, if you run a modified version as a service and don't want to share your changes, or you embed Authority in a product you sell. Using it inside your own company, unmodified or modified, is free under the AGPL.
|
|
63
|
+
</details>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<picture>
|
|
2
|
+
<source media="(prefers-color-scheme: dark)" srcset="assets/header-contributing-dark.svg">
|
|
3
|
+
<img alt="Contributing to Mastyf Authority" src="assets/header-contributing-light.svg" width="100%">
|
|
4
|
+
</picture>
|
|
5
|
+
|
|
6
|
+
Thank you for helping. **Bug reports, tests, attacks that break things and clearer docs are all welcome.**
|
|
7
|
+
|
|
8
|
+
## Your first pull request, in 4 steps
|
|
9
|
+
|
|
10
|
+
```mermaid
|
|
11
|
+
flowchart LR
|
|
12
|
+
A[1. Fork and branch] --> B[2. Change + test<br/><code>pytest -q</code>]
|
|
13
|
+
B --> C[3. Open a pull request]
|
|
14
|
+
C --> D[4. Sign the CLA<br/>one comment, first PR only]
|
|
15
|
+
D --> E[✅ Review and merge]
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
> [!TIP]
|
|
19
|
+
> **Why the CLA?** Mastyf offers this code under the AGPL v3 *and* under a commercial licence. The [CLA](CLA.md) gives Mastyf the right to include your contribution in both. **You keep the copyright in your work.**
|
|
20
|
+
|
|
21
|
+
## Good to know
|
|
22
|
+
|
|
23
|
+
| ✅ Please | ⛔ Please don't |
|
|
24
|
+
|---|---|
|
|
25
|
+
| Keep each pull request to one focused change | Report security problems in public issues or PRs. Use [private reporting](SECURITY.md). |
|
|
26
|
+
| Add a test for any behaviour you change | Commit datasets, keys, tokens or real logs |
|
|
27
|
+
| Run `pytest -q` before you push | Copy in code whose licence doesn't fit the AGPL v3 |
|
|
28
|
+
| Name the source of any copied code in your PR | Weaken a guarantee (e.g. let the risk model grant) without a design discussion first |
|
|
29
|
+
|
|
30
|
+
<details>
|
|
31
|
+
<summary><b>Set up a development environment</b></summary>
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
python3 -m venv .venv && . .venv/bin/activate
|
|
35
|
+
pip install -e '.[dev]'
|
|
36
|
+
(cd rust/keyservice && cargo build --release)
|
|
37
|
+
pytest -q
|
|
38
|
+
```
|
|
39
|
+
</details>
|