Replace the design-note docs (p1–p7) with the implemented "make it real" phase docs (p8–p10) and wire production-grade, env-gated real integrations: - p8 Casper Testnet: byte-exact deploys + WASM install via casper-js-sdk; live node reads (node.testnet.casper.network); CRED402_CHAIN=sim|testnet transport. - p9 x402 + data + MCP: real EIP-712 typed-data digests (@casper-ecosystem/ casper-eip-712); casper-x402 facilitator client (x402 V2); live Open-Meteo GHI; official @modelcontextprotocol/sdk server; casper-sidecar SSE event feed. - p10 RealFi + cross-chain: real Stripe test-mode webhooks (HMAC-verified) and Plaid sandbox → privacy-preserving on-chain envelopes; Base Sepolia EVM deploy (Foundry); reachable via /api/realfi/* and /api/x402/facilitator routes. - Sign-in with Casper Wallet: real extension provider + challenge/ed25519/session flow (/v1/auth/wallet/*), console connect + sign-in button. - Branding: Cred402 logo mark, favicon, OG image; Vercel config for the console. All env-gated with sim/free-API fallbacks; full suite green, all toolchains (TS/Rust/Go/Solidity) build. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
58 lines
1.3 KiB
HCL
58 lines
1.3 KiB
HCL
variable "kubeconfig_path" {
|
|
description = "Path to the kubeconfig file"
|
|
type = string
|
|
default = "~/.kube/config"
|
|
}
|
|
|
|
variable "kube_context" {
|
|
description = "kubeconfig context to target"
|
|
type = string
|
|
default = null
|
|
}
|
|
|
|
variable "namespace" {
|
|
description = "Kubernetes namespace for the Cred402 release"
|
|
type = string
|
|
default = "cred402"
|
|
}
|
|
|
|
variable "environment" {
|
|
description = "Deployment environment"
|
|
type = string
|
|
default = "testnet"
|
|
validation {
|
|
condition = contains(["development", "testnet", "mainnet"], var.environment)
|
|
error_message = "environment must be development, testnet, or mainnet."
|
|
}
|
|
}
|
|
|
|
variable "image_tag" {
|
|
description = "Container image tag to deploy"
|
|
type = string
|
|
default = "0.1.0"
|
|
}
|
|
|
|
variable "admin_api_key" {
|
|
description = "Bootstrap admin API key (sensitive)"
|
|
type = string
|
|
sensitive = true
|
|
}
|
|
|
|
variable "webhook_secret" {
|
|
description = "Webhook signing secret (sensitive)"
|
|
type = string
|
|
sensitive = true
|
|
}
|
|
|
|
variable "ingress_enabled" {
|
|
description = "Expose the API via an ingress"
|
|
type = bool
|
|
default = false
|
|
}
|
|
|
|
variable "ingress_host" {
|
|
description = "Hostname for the ingress"
|
|
type = string
|
|
default = "api.cred402.example"
|
|
}
|