Skip to main content

MEOK AI Labs attestation signing and verification — pure stdlib HMAC-SHA256.

Project description

MEOK Attestation API

Public signing + verification surface for MEOK AI Labs compliance attestations.

Endpoints

  • GET / — docs + pricing
  • POST /sign — issue a signed attestation (requires api_key)
  • POST /verify — verify a full cert payload (public)
  • GET /verify/<cert_id> — human-readable verify page
  • GET /health — liveness

Env vars (set via Vercel dashboard or vercel env)

Var Required Notes
MEOK_ATTESTATION_KEY yes (prod) HMAC signing key. Rotate quarterly.
MEOK_MASTER_API_KEY yes Master key — Nick's own.
MEOK_PRO_KEYS optional Comma-separated list of Pro API keys.
MEOK_VERIFY_URL optional Base URL for verify links. Default: this deployment.

Deploy

vercel --prod
vercel env add MEOK_ATTESTATION_KEY production  # paste secure random string
vercel env add MEOK_MASTER_API_KEY production   # paste your master key
vercel --prod  # redeploy so env vars bind

Client usage

import json, urllib.request

req = urllib.request.Request(
    "https://meok-attestation-api.vercel.app/sign",
    data=json.dumps({
        "api_key": "YOUR_PRO_KEY",
        "regulation": "DORA",
        "entity": "Acme Bank PLC",
        "score": 82.5,
        "findings": ["Article 9 PASS", "Article 28 GAP"],
        "articles_audited": ["9", "28"],
    }).encode(),
    headers={"Content-Type": "application/json"},
)
cert = json.loads(urllib.request.urlopen(req).read())
print(cert["verify_url"])

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

meok_attestation_api-0.2.1.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

meok_attestation_api-0.2.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file meok_attestation_api-0.2.1.tar.gz.

File metadata

  • Download URL: meok_attestation_api-0.2.1.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for meok_attestation_api-0.2.1.tar.gz
Algorithm Hash digest
SHA256 4d33589e7f1e1794172b525d1ed2672a89a9b513d683db0aa1569032687289f7
MD5 62f9a12136a14b3a8e21c6cd248ad062
BLAKE2b-256 a5a86cf339a92afaf24926a6f08fc654412e2444e7cad04c571bf754c800fd74

See more details on using hashes here.

File details

Details for the file meok_attestation_api-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for meok_attestation_api-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 34f5a196ef8db0dcab5d650f1924399d62478782798da216cb46c781f2a40daa
MD5 40a0914128cb54e4084a28c40747f770
BLAKE2b-256 754d2d0fe7fea1353293316803f6417f60f864bb68b9a63f504f7d27e0bc433c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page