{"id":49419922,"url":"https://github.com/blockdaemon/automated-approver-service","last_synced_at":"2026-04-29T05:09:50.307Z","repository":{"id":344062206,"uuid":"1085468022","full_name":"Blockdaemon/automated-approver-service","owner":"Blockdaemon","description":"Reference implementation of the Institutional Vault Automated Approver Service","archived":false,"fork":false,"pushed_at":"2026-03-13T00:45:02.000Z","size":51,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-13T04:58:38.939Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Blockdaemon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-29T04:42:06.000Z","updated_at":"2026-03-13T00:45:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Blockdaemon/automated-approver-service","commit_stats":null,"previous_names":["blockdaemon/automated-approver-service"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Blockdaemon/automated-approver-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blockdaemon%2Fautomated-approver-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blockdaemon%2Fautomated-approver-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blockdaemon%2Fautomated-approver-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blockdaemon%2Fautomated-approver-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Blockdaemon","download_url":"https://codeload.github.com/Blockdaemon/automated-approver-service/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blockdaemon%2Fautomated-approver-service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32411692,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T03:46:11.172Z","status":"ssl_error","status_checked_at":"2026-04-29T03:37:55.317Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-29T05:09:46.412Z","updated_at":"2026-04-29T05:09:50.301Z","avatar_url":"https://github.com/Blockdaemon.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Institutional Vault Automated Approver Service - Reference Implementation\n\n## Overview\n\nThe Automated Approver Service is a lightweight approval server designed for testing MPC Policy Authority (MPA) approval workflows. It provides cryptographic approval signing capabilities for transaction intents.\n\n## Features\n\n- ✅ **Intent Approval**: Automatically approves and signs transaction intents\n- 🔐 **Cryptographic Signing**: ECDSA P-256 signature generation\n- 🔒 **TLS Support**: Optional TLS with Ed25519 certificates\n- 📦 **Multiple Operation Types**: Supports transfer, contract call, contract deployment and raw transaction intents\n- ☁️ **AWS Integration**: Secrets Manager integration\n\n### Components\n\n1. **Approval Server** (`approval-service/`): Core Go service that handles approval requests\n2. **Infrastructure** (`infra/`): Service configuration files\n3. **Configuration** (`cue.mod/`): CUE schemas for configuration validation\n\n## Prerequisites\n\n- Go 1.23 or higher\n- Docker (optional, for containerized deployment)\n\n\n## Configuration\n\nFor local development, configure via `infra/config/config_local.cue`:\n\n- `port`: Server port (default: 9294)\n- `private_key`: Base64-encoded ASN.1 DER private key for signing https://go.dev/play/p/hvTalsJgu2T\n- `tls_private_key_seed`: Base64-encoded 32-byte seed for TLS certificate https://go.dev/play/p/t7OAtd0-ilL\n- `secret_manager`: Use `\"local\"` for local development \n\nOtherwise, use AWS Secrets Manager:\n\nRequired secrets names:\n- `sandbox-approval-tls-private-key`: TLS private key\n- `sandbox-approval-key-seed`: TLS certificate seed\n- `sandbox-approval-tls-public-key`: TLS public key (auto-generated)\n- `sandbox-approval-signature-verification-key`: Signature verification key (auto-generated)\n\n\n## Deployment\n\nBuild and run the container:\n```bash\ndocker build -f approval-service/Dockerfile -t approval-service:latest .\ndocker run -p 9294:9294 \\\n  -v $(pwd)/infra/config:/config \\\n  approval-service:latest \\\n  --configFile=/config/config_local.cue\n```\n\nThe service will start on `http://localhost:9294`.\n\n## API Endpoints\n\n### POST /confirm\n\nApproves and signs a transaction intent.\n\n**Request:**\n```json\n{\n  \"EnrichedIntent\": \"\u003cbase64-encoded-intent-bytes\u003e\",\n  \"MPASignature\": \"\u003cbase64-encoded-signature-bytes\u003e\"\n}\n```\n\n**Response:**\n```json\n{\n  \"Confirmed\": true,\n  \"Signature\": \"\u003cbase64-encoded-signature-bytes\u003e\"\n}\n```\n\n### GET /public-key\n\nReturns the server's public key for signature verification.\n\n**Response:**\n```json\n{\n  \"public_key\": \"\u003c65-byte-uncompressed-public-key\u003e\"\n}\n```\n\n## Security Considerations\n\n⚠️ **IMPORTANT**: This service is designed for **sandbox/testing environments only**.\n- The service automatically approves **all** valid requests\n- Secrets are logged to stdout for debugging purposes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblockdaemon%2Fautomated-approver-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblockdaemon%2Fautomated-approver-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblockdaemon%2Fautomated-approver-service/lists"}