Apply Composer changes: comprehensive API updates, migrations, middleware, and infrastructure improvements
- Add comprehensive database migrations (001-024) for schema evolution - Enhance API schema with expanded type definitions and resolvers - Add new middleware: audit logging, rate limiting, MFA enforcement, security, tenant auth - Implement new services: AI optimization, billing, blockchain, compliance, marketplace - Add adapter layer for cloud integrations (Cloudflare, Kubernetes, Proxmox, storage) - Update Crossplane provider with enhanced VM management capabilities - Add comprehensive test suite for API endpoints and services - Update frontend components with improved GraphQL subscriptions and real-time updates - Enhance security configurations and headers (CSP, CORS, etc.) - Update documentation and configuration files - Add new CI/CD workflows and validation scripts - Implement design system improvements and UI enhancements
This commit is contained in:
70
templates/blockchain/hyperledger-besu.ptf
Normal file
70
templates/blockchain/hyperledger-besu.ptf
Normal file
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"version": "1.0",
|
||||
"name": "Hyperledger Besu Network",
|
||||
"description": "Deploys a Hyperledger Besu blockchain network",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "networkName",
|
||||
"type": "string",
|
||||
"description": "Name of the blockchain network",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"name": "validatorCount",
|
||||
"type": "number",
|
||||
"description": "Number of validator nodes",
|
||||
"default": 3,
|
||||
"validation": {
|
||||
"min": 1,
|
||||
"max": 10
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "consensus",
|
||||
"type": "string",
|
||||
"description": "Consensus algorithm",
|
||||
"default": "IBFT2",
|
||||
"validation": {
|
||||
"enum": ["IBFT2", "QBFT", "Clique"]
|
||||
}
|
||||
}
|
||||
],
|
||||
"resources": [
|
||||
{
|
||||
"type": "kubernetes_namespace",
|
||||
"name": "besu_namespace",
|
||||
"properties": {
|
||||
"name": "${networkName}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "kubernetes_deployment",
|
||||
"name": "besu_validator",
|
||||
"dependsOn": ["kubernetes_namespace.besu_namespace"],
|
||||
"properties": {
|
||||
"name": "besu-validator",
|
||||
"namespace": "${networkName}",
|
||||
"replicas": "${validatorCount}",
|
||||
"image": "hyperledger/besu:latest",
|
||||
"ports": [
|
||||
{
|
||||
"containerPort": 8545,
|
||||
"name": "rpc"
|
||||
},
|
||||
{
|
||||
"containerPort": 8546,
|
||||
"name": "ws"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "rpc_endpoint",
|
||||
"description": "RPC endpoint URL",
|
||||
"value": "http://besu-validator.${networkName}.svc.cluster.local:8545"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
52
templates/network/vpc.ptf
Normal file
52
templates/network/vpc.ptf
Normal file
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"version": "1.0",
|
||||
"name": "VPC Template",
|
||||
"description": "Creates a Virtual Private Cloud with subnets",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "vpcName",
|
||||
"type": "string",
|
||||
"description": "Name of the VPC",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"name": "cidr",
|
||||
"type": "string",
|
||||
"description": "CIDR block for the VPC",
|
||||
"default": "10.0.0.0/16",
|
||||
"validation": {
|
||||
"pattern": "^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}/\\d{1,2}$"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "subnetCount",
|
||||
"type": "number",
|
||||
"description": "Number of subnets to create",
|
||||
"default": 2,
|
||||
"validation": {
|
||||
"min": 1,
|
||||
"max": 10
|
||||
}
|
||||
}
|
||||
],
|
||||
"resources": [
|
||||
{
|
||||
"type": "phoenix_vpc",
|
||||
"name": "main_vpc",
|
||||
"properties": {
|
||||
"name": "${vpcName}",
|
||||
"cidr": "${cidr}",
|
||||
"enable_dns": true,
|
||||
"enable_dns_hostnames": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "vpc_id",
|
||||
"description": "ID of the created VPC",
|
||||
"value": "${phoenix_vpc.main_vpc.id}"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user