identark 1.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.
- identark-1.2.0/.env.example +51 -0
- identark-1.2.0/.github/dependabot.yml +36 -0
- identark-1.2.0/.github/workflows/ci-enhanced.yml +153 -0
- identark-1.2.0/.github/workflows/ci.yml +88 -0
- identark-1.2.0/.github/workflows/codeql.yml +52 -0
- identark-1.2.0/.github/workflows/publish.yml +30 -0
- identark-1.2.0/.github/workflows/scorecard.yml +39 -0
- identark-1.2.0/.gitignore +235 -0
- identark-1.2.0/.pre-commit-config.yaml +66 -0
- identark-1.2.0/CHANGELOG.md +27 -0
- identark-1.2.0/CLAUDE.md +189 -0
- identark-1.2.0/COMMUNITY.md +52 -0
- identark-1.2.0/CONTRIBUTING.md +94 -0
- identark-1.2.0/INTEGRATION_TESTS_SUMMARY.md +344 -0
- identark-1.2.0/LICENSE +21 -0
- identark-1.2.0/PKG-INFO +382 -0
- identark-1.2.0/README.md +317 -0
- identark-1.2.0/SECURITY.md +57 -0
- identark-1.2.0/benchmarks/README.md +84 -0
- identark-1.2.0/benchmarks/benchmark_sdk_overhead.py +318 -0
- identark-1.2.0/docs/README.md +17 -0
- identark-1.2.0/docs/adapters/crewai.md +126 -0
- identark-1.2.0/docs/adapters/gemini.md +252 -0
- identark-1.2.0/docs/adapters/langchain.md +107 -0
- identark-1.2.0/docs/adapters/langgraph.md +126 -0
- identark-1.2.0/docs/adapters/llamaindex.md +122 -0
- identark-1.2.0/docs/adapters/n8n.md +149 -0
- identark-1.2.0/examples/crewai_agent.py +53 -0
- identark-1.2.0/examples/gemini_finance_agent.py +308 -0
- identark-1.2.0/examples/gemini_quickstart.py +207 -0
- identark-1.2.0/examples/langchain_agent.py +79 -0
- identark-1.2.0/examples/llamaindex_agent.py +88 -0
- identark-1.2.0/examples/mistral_eu.py +48 -0
- identark-1.2.0/examples/ollama_local.py +49 -0
- identark-1.2.0/examples/openai_quickstart.py +37 -0
- identark-1.2.0/examples/research_agent.py +401 -0
- identark-1.2.0/examples/research_agent_openai.py +144 -0
- identark-1.2.0/identark/__init__.py +68 -0
- identark-1.2.0/identark/exceptions.py +214 -0
- identark-1.2.0/identark/gateway.py +158 -0
- identark-1.2.0/identark/gateways/__init__.py +4 -0
- identark-1.2.0/identark/gateways/control_plane.py +405 -0
- identark-1.2.0/identark/gateways/direct.py +635 -0
- identark-1.2.0/identark/integrations/__init__.py +25 -0
- identark-1.2.0/identark/integrations/crewai.py +274 -0
- identark-1.2.0/identark/integrations/gemini.py +591 -0
- identark-1.2.0/identark/integrations/langchain.py +233 -0
- identark-1.2.0/identark/integrations/langgraph.py +200 -0
- identark-1.2.0/identark/integrations/llamaindex.py +278 -0
- identark-1.2.0/identark/models.py +153 -0
- identark-1.2.0/identark/pricing.py +146 -0
- identark-1.2.0/identark/py.typed +0 -0
- identark-1.2.0/identark/testing/__init__.py +31 -0
- identark-1.2.0/identark/testing/mock_gateway.py +202 -0
- identark-1.2.0/identark/validation.py +117 -0
- identark-1.2.0/pyproject.toml +116 -0
- identark-1.2.0/tests/__init__.py +0 -0
- identark-1.2.0/tests/conftest.py +78 -0
- identark-1.2.0/tests/integration/EXAMPLES.md +428 -0
- identark-1.2.0/tests/integration/README.md +344 -0
- identark-1.2.0/tests/integration/__init__.py +18 -0
- identark-1.2.0/tests/integration/conftest.py +52 -0
- identark-1.2.0/tests/integration/mock_server.py +223 -0
- identark-1.2.0/tests/integration/test_concurrency.py +333 -0
- identark-1.2.0/tests/integration/test_contract.py +418 -0
- identark-1.2.0/tests/integration/test_control_plane_flow.py +402 -0
- identark-1.2.0/tests/integration/test_direct_gateway_e2e.py +422 -0
- identark-1.2.0/tests/unit/__init__.py +0 -0
- identark-1.2.0/tests/unit/test_control_plane.py +288 -0
- identark-1.2.0/tests/unit/test_exceptions.py +109 -0
- identark-1.2.0/tests/unit/test_gateways.py +307 -0
- identark-1.2.0/tests/unit/test_integrations.py +507 -0
- identark-1.2.0/tests/unit/test_integrations_crewai.py +116 -0
- identark-1.2.0/tests/unit/test_integrations_gemini.py +249 -0
- identark-1.2.0/tests/unit/test_integrations_langgraph.py +251 -0
- identark-1.2.0/tests/unit/test_models.py +118 -0
- identark-1.2.0/tests/unit/test_pricing.py +78 -0
- identark-1.2.0/tests/unit/test_streaming.py +159 -0
- identark-1.2.0/tests/unit/test_validation.py +153 -0
- identark-1.2.0/uv.lock +4018 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# =============================================================================
|
|
2
|
+
# identark-sdk — Environment Variables Template
|
|
3
|
+
# =============================================================================
|
|
4
|
+
# Copy this file to .env and fill in your values.
|
|
5
|
+
# NEVER commit .env — only .env.example belongs in version control.
|
|
6
|
+
# =============================================================================
|
|
7
|
+
|
|
8
|
+
# -----------------------------------------------------------------------------
|
|
9
|
+
# SDK — ControlPlaneGateway configuration
|
|
10
|
+
# Required when using ControlPlaneGateway outside a sandbox
|
|
11
|
+
# -----------------------------------------------------------------------------
|
|
12
|
+
IDENTARK_API_KEY=your-identark-api-key-here
|
|
13
|
+
IDENTARK_CONTROL_PLANE_URL=https://api.identark.io/v1
|
|
14
|
+
|
|
15
|
+
# Inside a IdentArk sandbox these are injected automatically:
|
|
16
|
+
IDENTARK_SESSION_TOKEN=
|
|
17
|
+
IDENTARK_SESSION_ID=
|
|
18
|
+
|
|
19
|
+
# -----------------------------------------------------------------------------
|
|
20
|
+
# LLM Providers — DirectGateway (local development only)
|
|
21
|
+
# -----------------------------------------------------------------------------
|
|
22
|
+
OPENAI_API_KEY=sk-...
|
|
23
|
+
ANTHROPIC_API_KEY=sk-ant-...
|
|
24
|
+
|
|
25
|
+
# -----------------------------------------------------------------------------
|
|
26
|
+
# identark-cloud (cloud control plane local dev)
|
|
27
|
+
# -----------------------------------------------------------------------------
|
|
28
|
+
DATABASE_URL=postgresql+asyncpg://postgres:postgres@localhost:5432/identark_dev
|
|
29
|
+
SUPABASE_URL=https://your-project.supabase.co
|
|
30
|
+
SUPABASE_SERVICE_KEY=your-supabase-service-key
|
|
31
|
+
|
|
32
|
+
# HashiCorp Vault (credential storage)
|
|
33
|
+
VAULT_ADDR=http://localhost:8200
|
|
34
|
+
VAULT_TOKEN=dev-root-token # dev only — never use root token in production
|
|
35
|
+
|
|
36
|
+
# Stripe (billing)
|
|
37
|
+
STRIPE_SECRET_KEY=sk_test_...
|
|
38
|
+
STRIPE_WEBHOOK_SECRET=whsec_...
|
|
39
|
+
|
|
40
|
+
# -----------------------------------------------------------------------------
|
|
41
|
+
# Observability
|
|
42
|
+
# -----------------------------------------------------------------------------
|
|
43
|
+
SENTRY_DSN=
|
|
44
|
+
LOGFIRE_TOKEN=
|
|
45
|
+
|
|
46
|
+
# -----------------------------------------------------------------------------
|
|
47
|
+
# CI / GitHub Actions
|
|
48
|
+
# These are set as GitHub repository secrets — never hardcode them
|
|
49
|
+
# PYPI_API_TOKEN → set in GitHub secrets as PYPI_API_TOKEN
|
|
50
|
+
# CODECOV_TOKEN → set in GitHub secrets as CODECOV_TOKEN
|
|
51
|
+
# -----------------------------------------------------------------------------
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
# Python package dependencies
|
|
4
|
+
- package-ecosystem: pip
|
|
5
|
+
directory: "/"
|
|
6
|
+
schedule:
|
|
7
|
+
interval: daily
|
|
8
|
+
time: "04:00"
|
|
9
|
+
timezone: "UTC"
|
|
10
|
+
open-pull-requests-limit: 10
|
|
11
|
+
reviewers:
|
|
12
|
+
- security-team
|
|
13
|
+
allow:
|
|
14
|
+
- dependency-type: "minor"
|
|
15
|
+
- dependency-type: "patch"
|
|
16
|
+
ignore:
|
|
17
|
+
- dependency-name: "*"
|
|
18
|
+
update-types:
|
|
19
|
+
- "version-update:semver-major"
|
|
20
|
+
groups:
|
|
21
|
+
minor-and-patch:
|
|
22
|
+
dependency-types:
|
|
23
|
+
- "minor"
|
|
24
|
+
- "patch"
|
|
25
|
+
|
|
26
|
+
# GitHub Actions
|
|
27
|
+
- package-ecosystem: github-actions
|
|
28
|
+
directory: "/"
|
|
29
|
+
schedule:
|
|
30
|
+
interval: weekly
|
|
31
|
+
day: monday
|
|
32
|
+
time: "04:00"
|
|
33
|
+
timezone: "UTC"
|
|
34
|
+
open-pull-requests-limit: 10
|
|
35
|
+
reviewers:
|
|
36
|
+
- security-team
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main, develop]
|
|
6
|
+
tags: ["v*"]
|
|
7
|
+
pull_request:
|
|
8
|
+
branches: [main]
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
lint:
|
|
12
|
+
name: Lint
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
- uses: actions/setup-python@v5
|
|
17
|
+
with:
|
|
18
|
+
python-version: "3.12"
|
|
19
|
+
cache: pip
|
|
20
|
+
- run: pip install ruff
|
|
21
|
+
- run: ruff check identark/ tests/
|
|
22
|
+
|
|
23
|
+
typecheck:
|
|
24
|
+
name: Type Check
|
|
25
|
+
runs-on: ubuntu-latest
|
|
26
|
+
steps:
|
|
27
|
+
- uses: actions/checkout@v4
|
|
28
|
+
- uses: actions/setup-python@v5
|
|
29
|
+
with:
|
|
30
|
+
python-version: "3.12"
|
|
31
|
+
cache: pip
|
|
32
|
+
- run: pip install -e ".[dev]"
|
|
33
|
+
- run: mypy identark/
|
|
34
|
+
|
|
35
|
+
security-audit:
|
|
36
|
+
name: Security Audit
|
|
37
|
+
runs-on: ubuntu-latest
|
|
38
|
+
steps:
|
|
39
|
+
- uses: actions/checkout@v4
|
|
40
|
+
- uses: actions/setup-python@v5
|
|
41
|
+
with:
|
|
42
|
+
python-version: "3.12"
|
|
43
|
+
cache: pip
|
|
44
|
+
- run: pip install pip-audit
|
|
45
|
+
- run: pip install -e ".[all]"
|
|
46
|
+
- name: Run pip-audit
|
|
47
|
+
run: pip-audit --strict --desc
|
|
48
|
+
continue-on-error: true # Don't block CI, but surface findings
|
|
49
|
+
- name: Check for known vulnerabilities
|
|
50
|
+
run: pip-audit --format=json --output=audit-results.json || true
|
|
51
|
+
- uses: actions/upload-artifact@v4
|
|
52
|
+
with:
|
|
53
|
+
name: security-audit
|
|
54
|
+
path: audit-results.json
|
|
55
|
+
if: always()
|
|
56
|
+
|
|
57
|
+
test:
|
|
58
|
+
name: Test (Python ${{ matrix.python-version }})
|
|
59
|
+
runs-on: ubuntu-latest
|
|
60
|
+
strategy:
|
|
61
|
+
fail-fast: false
|
|
62
|
+
matrix:
|
|
63
|
+
python-version: ["3.10", "3.11", "3.12"]
|
|
64
|
+
steps:
|
|
65
|
+
- uses: actions/checkout@v4
|
|
66
|
+
- uses: actions/setup-python@v5
|
|
67
|
+
with:
|
|
68
|
+
python-version: ${{ matrix.python-version }}
|
|
69
|
+
cache: pip
|
|
70
|
+
- run: pip install -e ".[dev,all]"
|
|
71
|
+
- name: Run unit tests
|
|
72
|
+
run: pytest tests/unit/ -v --cov=identark --cov-report=xml --cov-report=term-missing
|
|
73
|
+
- name: Upload coverage
|
|
74
|
+
uses: codecov/codecov-action@v4
|
|
75
|
+
if: matrix.python-version == '3.12'
|
|
76
|
+
with:
|
|
77
|
+
file: coverage.xml
|
|
78
|
+
flags: unittests
|
|
79
|
+
continue-on-error: true
|
|
80
|
+
|
|
81
|
+
test-minimum-deps:
|
|
82
|
+
name: Test (Minimum Dependencies)
|
|
83
|
+
runs-on: ubuntu-latest
|
|
84
|
+
steps:
|
|
85
|
+
- uses: actions/checkout@v4
|
|
86
|
+
- uses: actions/setup-python@v5
|
|
87
|
+
with:
|
|
88
|
+
python-version: "3.10" # Minimum supported version
|
|
89
|
+
cache: pip
|
|
90
|
+
- name: Install with minimum versions
|
|
91
|
+
run: |
|
|
92
|
+
pip install "httpx==0.26.0" # Minimum httpx
|
|
93
|
+
pip install -e ".[dev]"
|
|
94
|
+
- name: Run core tests
|
|
95
|
+
run: pytest tests/unit/test_models.py tests/unit/test_exceptions.py tests/unit/test_gateways.py -v
|
|
96
|
+
|
|
97
|
+
build-verify:
|
|
98
|
+
name: Build & Verify
|
|
99
|
+
runs-on: ubuntu-latest
|
|
100
|
+
steps:
|
|
101
|
+
- uses: actions/checkout@v4
|
|
102
|
+
- uses: actions/setup-python@v5
|
|
103
|
+
with:
|
|
104
|
+
python-version: "3.12"
|
|
105
|
+
cache: pip
|
|
106
|
+
- run: pip install build twine
|
|
107
|
+
- name: Build distribution
|
|
108
|
+
run: python -m build
|
|
109
|
+
- name: Verify package
|
|
110
|
+
run: twine check dist/*
|
|
111
|
+
- name: Check package contents
|
|
112
|
+
run: |
|
|
113
|
+
echo "=== Package contents ==="
|
|
114
|
+
python -m zipfile -l dist/*.whl | head -30
|
|
115
|
+
echo ""
|
|
116
|
+
echo "=== Package size ==="
|
|
117
|
+
ls -lh dist/
|
|
118
|
+
- uses: actions/upload-artifact@v4
|
|
119
|
+
with:
|
|
120
|
+
name: dist
|
|
121
|
+
path: dist/
|
|
122
|
+
|
|
123
|
+
benchmark:
|
|
124
|
+
name: Benchmark
|
|
125
|
+
runs-on: ubuntu-latest
|
|
126
|
+
needs: test
|
|
127
|
+
steps:
|
|
128
|
+
- uses: actions/checkout@v4
|
|
129
|
+
- uses: actions/setup-python@v5
|
|
130
|
+
with:
|
|
131
|
+
python-version: "3.12"
|
|
132
|
+
cache: pip
|
|
133
|
+
- run: pip install -e ".[dev,openai]"
|
|
134
|
+
- name: Run SDK overhead benchmark
|
|
135
|
+
run: python benchmarks/benchmark_sdk_overhead.py
|
|
136
|
+
continue-on-error: true
|
|
137
|
+
|
|
138
|
+
publish:
|
|
139
|
+
name: Publish to PyPI
|
|
140
|
+
needs: [lint, typecheck, test, build-verify]
|
|
141
|
+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
|
|
142
|
+
runs-on: ubuntu-latest
|
|
143
|
+
environment: pypi
|
|
144
|
+
permissions:
|
|
145
|
+
id-token: write
|
|
146
|
+
steps:
|
|
147
|
+
- uses: actions/checkout@v4
|
|
148
|
+
- uses: actions/setup-python@v5
|
|
149
|
+
with:
|
|
150
|
+
python-version: "3.12"
|
|
151
|
+
- run: pip install build
|
|
152
|
+
- run: python -m build
|
|
153
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main, develop]
|
|
6
|
+
tags: ["v*"]
|
|
7
|
+
pull_request:
|
|
8
|
+
branches: [main]
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
test:
|
|
12
|
+
name: Test Python ${{ matrix.python-version }}
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
strategy:
|
|
15
|
+
fail-fast: false
|
|
16
|
+
matrix:
|
|
17
|
+
python-version: ["3.10", "3.11", "3.12"]
|
|
18
|
+
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v4
|
|
21
|
+
|
|
22
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
23
|
+
uses: actions/setup-python@v5
|
|
24
|
+
with:
|
|
25
|
+
python-version: ${{ matrix.python-version }}
|
|
26
|
+
cache: pip
|
|
27
|
+
|
|
28
|
+
- name: Install dependencies
|
|
29
|
+
run: pip install -e ".[dev]"
|
|
30
|
+
|
|
31
|
+
- name: Lint with ruff
|
|
32
|
+
run: ruff check identark/ tests/
|
|
33
|
+
|
|
34
|
+
- name: Type check with mypy
|
|
35
|
+
run: mypy identark/
|
|
36
|
+
|
|
37
|
+
- name: Run unit tests
|
|
38
|
+
run: pytest tests/unit/ -v --cov=identark --cov-report=xml
|
|
39
|
+
|
|
40
|
+
- name: Run SDK benchmarks
|
|
41
|
+
run: |
|
|
42
|
+
pip install pytest-benchmark
|
|
43
|
+
python benchmarks/benchmark_sdk_overhead.py
|
|
44
|
+
continue-on-error: true
|
|
45
|
+
|
|
46
|
+
- name: Upload coverage
|
|
47
|
+
uses: codecov/codecov-action@v4
|
|
48
|
+
with:
|
|
49
|
+
file: ./coverage.xml
|
|
50
|
+
flags: unittests
|
|
51
|
+
fail_ci_if_error: false
|
|
52
|
+
|
|
53
|
+
publish:
|
|
54
|
+
name: Publish to PyPI
|
|
55
|
+
runs-on: ubuntu-latest
|
|
56
|
+
needs: test
|
|
57
|
+
# Only runs on version tags — never on branch pushes
|
|
58
|
+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
|
|
59
|
+
environment:
|
|
60
|
+
name: pypi
|
|
61
|
+
url: https://pypi.org/p/identark
|
|
62
|
+
permissions:
|
|
63
|
+
id-token: write # Required for OIDC trusted publishing
|
|
64
|
+
|
|
65
|
+
steps:
|
|
66
|
+
- uses: actions/checkout@v4
|
|
67
|
+
|
|
68
|
+
- name: Set up Python
|
|
69
|
+
uses: actions/setup-python@v5
|
|
70
|
+
with:
|
|
71
|
+
python-version: "3.11"
|
|
72
|
+
cache: pip
|
|
73
|
+
|
|
74
|
+
- name: Install build tools
|
|
75
|
+
run: pip install build hatchling
|
|
76
|
+
|
|
77
|
+
- name: Build distribution
|
|
78
|
+
run: python -m build
|
|
79
|
+
|
|
80
|
+
- name: Verify distribution contents
|
|
81
|
+
run: |
|
|
82
|
+
pip install twine
|
|
83
|
+
twine check dist/*
|
|
84
|
+
|
|
85
|
+
- name: Publish to PyPI
|
|
86
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
87
|
+
# No API token needed — uses OIDC trusted publisher
|
|
88
|
+
# Configure once at pypi.org/manage/project/identark/settings/publishing/
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
name: CodeQL
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
- develop
|
|
8
|
+
pull_request:
|
|
9
|
+
branches:
|
|
10
|
+
- main
|
|
11
|
+
schedule:
|
|
12
|
+
- cron: "0 2 * * 0" # Weekly, Sunday at 2 AM UTC
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
analyze:
|
|
16
|
+
name: Analyze
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
permissions:
|
|
19
|
+
actions: read
|
|
20
|
+
contents: read
|
|
21
|
+
security-events: write
|
|
22
|
+
|
|
23
|
+
strategy:
|
|
24
|
+
fail-fast: false
|
|
25
|
+
matrix:
|
|
26
|
+
language: ["python"]
|
|
27
|
+
|
|
28
|
+
steps:
|
|
29
|
+
- name: Checkout repository
|
|
30
|
+
uses: actions/checkout@v4
|
|
31
|
+
|
|
32
|
+
- name: Initialize CodeQL
|
|
33
|
+
uses: github/codeql-action/init@v2
|
|
34
|
+
with:
|
|
35
|
+
languages: ${{ matrix.language }}
|
|
36
|
+
queries: security-extended
|
|
37
|
+
db-location: "${{ runner.temp }}/codeql_databases"
|
|
38
|
+
|
|
39
|
+
- name: Set up Python
|
|
40
|
+
uses: actions/setup-python@v5
|
|
41
|
+
with:
|
|
42
|
+
python-version: "3.11"
|
|
43
|
+
cache: pip
|
|
44
|
+
|
|
45
|
+
- name: Install dependencies
|
|
46
|
+
run: |
|
|
47
|
+
pip install -e ".[dev]"
|
|
48
|
+
|
|
49
|
+
- name: Perform CodeQL Analysis
|
|
50
|
+
uses: github/codeql-action/analyze@v2
|
|
51
|
+
with:
|
|
52
|
+
category: "/language:${{ matrix.language }}"
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*"
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
publish:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
environment: pypi
|
|
12
|
+
permissions:
|
|
13
|
+
id-token: write # Required for trusted publishing
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
|
|
18
|
+
- name: Set up Python
|
|
19
|
+
uses: actions/setup-python@v5
|
|
20
|
+
with:
|
|
21
|
+
python-version: "3.12"
|
|
22
|
+
|
|
23
|
+
- name: Install build dependencies
|
|
24
|
+
run: pip install build
|
|
25
|
+
|
|
26
|
+
- name: Build package
|
|
27
|
+
run: python -m build
|
|
28
|
+
|
|
29
|
+
- name: Publish to PyPI
|
|
30
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
name: Scorecard supply-chain security
|
|
2
|
+
on:
|
|
3
|
+
branch_protection_rule:
|
|
4
|
+
schedule:
|
|
5
|
+
- cron: "0 2 * * 0" # Weekly, Sunday at 2 AM UTC
|
|
6
|
+
push:
|
|
7
|
+
branches:
|
|
8
|
+
- main
|
|
9
|
+
|
|
10
|
+
permissions: read-all
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
analysis:
|
|
14
|
+
name: Scorecard analysis
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
permissions:
|
|
17
|
+
# Needed to upload the results to code-scanning dashboard.
|
|
18
|
+
security-events: write
|
|
19
|
+
# Used to receive a badge. (Upcoming feature)
|
|
20
|
+
id-token: write
|
|
21
|
+
|
|
22
|
+
steps:
|
|
23
|
+
- name: "Checkout code"
|
|
24
|
+
uses: actions/checkout@v4
|
|
25
|
+
with:
|
|
26
|
+
persist-credentials: false
|
|
27
|
+
|
|
28
|
+
- name: "Run Scorecard"
|
|
29
|
+
uses: ossf/scorecard-action@v2.3.0
|
|
30
|
+
with:
|
|
31
|
+
results_file: results.sarif
|
|
32
|
+
results_format: sarif
|
|
33
|
+
publish_results: true
|
|
34
|
+
|
|
35
|
+
- name: "Upload SARIF results to code scanning"
|
|
36
|
+
uses: github/codeql-action/upload-sarif@v2
|
|
37
|
+
with:
|
|
38
|
+
sarif_file: results.sarif
|
|
39
|
+
wait-for-processing: true
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
# =============================================================================
|
|
2
|
+
# identark-sdk .gitignore
|
|
3
|
+
# =============================================================================
|
|
4
|
+
|
|
5
|
+
# =============================================================================
|
|
6
|
+
# CRITICAL — SECRETS & CREDENTIALS
|
|
7
|
+
# Never commit these under any circumstances
|
|
8
|
+
# =============================================================================
|
|
9
|
+
.env
|
|
10
|
+
.env.*
|
|
11
|
+
# .env.example is safe to commit — it contains no real values
|
|
12
|
+
!.env.example
|
|
13
|
+
.env.local
|
|
14
|
+
.env.production
|
|
15
|
+
.env.staging
|
|
16
|
+
|
|
17
|
+
# IdentArk-specific secrets
|
|
18
|
+
identark.key
|
|
19
|
+
*.pem
|
|
20
|
+
*.p12
|
|
21
|
+
*.pfx
|
|
22
|
+
*.key
|
|
23
|
+
vault-token
|
|
24
|
+
vault.json
|
|
25
|
+
.vault-token
|
|
26
|
+
|
|
27
|
+
# API keys and tokens that may be created during development
|
|
28
|
+
api_keys.json
|
|
29
|
+
secrets.json
|
|
30
|
+
credentials.json
|
|
31
|
+
service_account.json
|
|
32
|
+
|
|
33
|
+
# =============================================================================
|
|
34
|
+
# PYTHON
|
|
35
|
+
# =============================================================================
|
|
36
|
+
__pycache__/
|
|
37
|
+
*.py[cod]
|
|
38
|
+
*$py.class
|
|
39
|
+
*.so
|
|
40
|
+
|
|
41
|
+
# Distribution / packaging
|
|
42
|
+
.Python
|
|
43
|
+
build/
|
|
44
|
+
develop-eggs/
|
|
45
|
+
dist/
|
|
46
|
+
downloads/
|
|
47
|
+
eggs/
|
|
48
|
+
.eggs/
|
|
49
|
+
lib/
|
|
50
|
+
lib64/
|
|
51
|
+
parts/
|
|
52
|
+
sdist/
|
|
53
|
+
var/
|
|
54
|
+
wheels/
|
|
55
|
+
share/python-wheels/
|
|
56
|
+
*.egg-info/
|
|
57
|
+
.installed.cfg
|
|
58
|
+
*.egg
|
|
59
|
+
MANIFEST
|
|
60
|
+
|
|
61
|
+
# PyInstaller
|
|
62
|
+
*.manifest
|
|
63
|
+
*.spec
|
|
64
|
+
|
|
65
|
+
# Installer logs
|
|
66
|
+
pip-log.txt
|
|
67
|
+
pip-delete-this-directory.txt
|
|
68
|
+
|
|
69
|
+
# Unit test / coverage
|
|
70
|
+
.tox/
|
|
71
|
+
.nox/
|
|
72
|
+
.coverage
|
|
73
|
+
.coverage.*
|
|
74
|
+
.cache
|
|
75
|
+
nosetests.xml
|
|
76
|
+
coverage.xml
|
|
77
|
+
*.cover
|
|
78
|
+
*.py,cover
|
|
79
|
+
.hypothesis/
|
|
80
|
+
.pytest_cache/
|
|
81
|
+
htmlcov/
|
|
82
|
+
pytest-results.xml
|
|
83
|
+
|
|
84
|
+
# Virtual environments — never commit these
|
|
85
|
+
.venv/
|
|
86
|
+
venv/
|
|
87
|
+
env/
|
|
88
|
+
ENV/
|
|
89
|
+
env.bak/
|
|
90
|
+
venv.bak/
|
|
91
|
+
.python-version
|
|
92
|
+
|
|
93
|
+
# mypy
|
|
94
|
+
.mypy_cache/
|
|
95
|
+
.dmypy.json
|
|
96
|
+
dmypy.json
|
|
97
|
+
|
|
98
|
+
# ruff cache
|
|
99
|
+
.ruff_cache/
|
|
100
|
+
|
|
101
|
+
# pyright
|
|
102
|
+
pyrightconfig.json # local overrides only — project config belongs in pyproject.toml
|
|
103
|
+
|
|
104
|
+
# =============================================================================
|
|
105
|
+
# IDENTARK CLOUD — LOCAL DEV ARTEFACTS
|
|
106
|
+
# These are generated during local cloud development and must never be committed
|
|
107
|
+
# =============================================================================
|
|
108
|
+
|
|
109
|
+
# Local database files
|
|
110
|
+
*.db
|
|
111
|
+
*.sqlite
|
|
112
|
+
*.sqlite3
|
|
113
|
+
local.db
|
|
114
|
+
dev.db
|
|
115
|
+
|
|
116
|
+
# HashiCorp Vault local dev data
|
|
117
|
+
vault-data/
|
|
118
|
+
vault.log
|
|
119
|
+
|
|
120
|
+
# Local cloud config overrides
|
|
121
|
+
cloud/.env
|
|
122
|
+
cloud/config.local.yaml
|
|
123
|
+
cloud/config.local.json
|
|
124
|
+
|
|
125
|
+
# Docker local overrides
|
|
126
|
+
docker-compose.override.yml
|
|
127
|
+
docker-compose.local.yml
|
|
128
|
+
|
|
129
|
+
# Alembic generated migration artifacts (keep migrations themselves)
|
|
130
|
+
alembic.ini.local
|
|
131
|
+
|
|
132
|
+
# =============================================================================
|
|
133
|
+
# EDITOR & IDE
|
|
134
|
+
# =============================================================================
|
|
135
|
+
|
|
136
|
+
# VS Code — commit .vscode/extensions.json and .vscode/settings.json
|
|
137
|
+
# only if they contain project-wide settings (not personal overrides)
|
|
138
|
+
.vscode/launch.json
|
|
139
|
+
.vscode/*.code-workspace
|
|
140
|
+
.vscode/settings.json # personal settings — use .vscode/settings.json.example instead
|
|
141
|
+
|
|
142
|
+
# JetBrains (PyCharm, etc.)
|
|
143
|
+
.idea/
|
|
144
|
+
*.iml
|
|
145
|
+
*.iws
|
|
146
|
+
*.ipr
|
|
147
|
+
|
|
148
|
+
# Vim / Neovim
|
|
149
|
+
*.swp
|
|
150
|
+
*.swo
|
|
151
|
+
*~
|
|
152
|
+
.netrwhist
|
|
153
|
+
|
|
154
|
+
# Emacs
|
|
155
|
+
\#*\#
|
|
156
|
+
.\#*
|
|
157
|
+
|
|
158
|
+
# Sublime Text
|
|
159
|
+
*.sublime-project
|
|
160
|
+
*.sublime-workspace
|
|
161
|
+
|
|
162
|
+
# =============================================================================
|
|
163
|
+
# OS GENERATED
|
|
164
|
+
# =============================================================================
|
|
165
|
+
.DS_Store
|
|
166
|
+
.DS_Store?
|
|
167
|
+
._*
|
|
168
|
+
.Spotlight-V100
|
|
169
|
+
.Trashes
|
|
170
|
+
ehthumbs.db
|
|
171
|
+
Thumbs.db
|
|
172
|
+
desktop.ini
|
|
173
|
+
|
|
174
|
+
# =============================================================================
|
|
175
|
+
# LOGS & RUNTIME
|
|
176
|
+
# =============================================================================
|
|
177
|
+
*.log
|
|
178
|
+
logs/
|
|
179
|
+
*.pid
|
|
180
|
+
*.seed
|
|
181
|
+
*.pid.lock
|
|
182
|
+
|
|
183
|
+
# =============================================================================
|
|
184
|
+
# NODE / TYPESCRIPT (for the n8n adapter in adapters/n8n/)
|
|
185
|
+
# =============================================================================
|
|
186
|
+
node_modules/
|
|
187
|
+
npm-debug.log*
|
|
188
|
+
yarn-debug.log*
|
|
189
|
+
yarn-error.log*
|
|
190
|
+
.pnpm-debug.log*
|
|
191
|
+
adapters/n8n/dist/
|
|
192
|
+
adapters/n8n/.turbo/
|
|
193
|
+
adapters/n8n/coverage/
|
|
194
|
+
adapters/n8n/.nyc_output/
|
|
195
|
+
|
|
196
|
+
# =============================================================================
|
|
197
|
+
# DOCUMENTATION BUILD ARTEFACTS
|
|
198
|
+
# =============================================================================
|
|
199
|
+
docs/_build/
|
|
200
|
+
docs/site/
|
|
201
|
+
site/
|
|
202
|
+
.sphinx_cache/
|
|
203
|
+
|
|
204
|
+
# =============================================================================
|
|
205
|
+
# BENCHMARKS & PROFILING
|
|
206
|
+
# =============================================================================
|
|
207
|
+
*.prof
|
|
208
|
+
benchmarks/results/
|
|
209
|
+
profiling/
|
|
210
|
+
|
|
211
|
+
# =============================================================================
|
|
212
|
+
# TESTING ARTEFACTS
|
|
213
|
+
# =============================================================================
|
|
214
|
+
# Real credentials used in local integration tests — NEVER commit
|
|
215
|
+
tests/integration/.env
|
|
216
|
+
tests/fixtures/real_credentials/
|
|
217
|
+
tests/fixtures/*.key
|
|
218
|
+
|
|
219
|
+
# =============================================================================
|
|
220
|
+
# JUPYTER (if used for prototyping)
|
|
221
|
+
# =============================================================================
|
|
222
|
+
.ipynb_checkpoints/
|
|
223
|
+
*.ipynb # notebooks are for exploration, not production code
|
|
224
|
+
|
|
225
|
+
# =============================================================================
|
|
226
|
+
# MISC
|
|
227
|
+
# =============================================================================
|
|
228
|
+
*.bak
|
|
229
|
+
*.tmp
|
|
230
|
+
*.temp
|
|
231
|
+
.scratch/
|
|
232
|
+
scratch/
|
|
233
|
+
TODO.local.md # personal notes — use GitHub Issues instead
|
|
234
|
+
.claude/
|
|
235
|
+
.vercel
|