mirror of
https://github.com/floci-io/floci.git
synced 2026-12-05 19:18:01 -05:00
* feat(neptune): support neo4j backend for openCypher via NEPTUNE_DB_TYPE Neptune emulation always started a TinkerPop Gremlin Server, which only speaks Gremlin. Add a global db-type selector (FLOCI_SERVICES_NEPTUNE_DB_TYPE, mirroring LocalStack's NEPTUNE_DB_TYPE) so clusters can be backed by Neo4j and served over the Bolt protocol for openCypher. - Add NeptuneDbType enum (gremlin -> 8182, neo4j -> 7687) with alias parsing - Add db-type and default-neo4j-image config (default neo4j:5-community) - Resolve image/port per engine in NeptuneService and NeptuneContainerManager - Run Neo4j with NEO4J_AUTH=none and probe readiness via the Bolt handshake - Add openCypher/Bolt integration test and NeptuneDbType unit test - Document the new option in README and docs/services/neptune.md * test(neptune): assert DeleteDBCluster cleanup and clarify docs Assert the openCypher integration test's DeleteDBCluster cleanup returns 200 so a failed delete surfaces instead of silently leaking a backend container and proxy port into later tests. Also drop the misleading backend ports from the db-type table (users connect via the proxy port range, not the container-native port) and correct the SigV4 auth-header comment to reference the management request routing. * fix(neptune): treat all-zero Bolt handshake reply as not-ready The Neo4j readiness probe accepted any non-empty response, but Neo4j answers the Bolt handshake with 0x00000000 when it rejects every proposed version (Bolt disabled, wrong port, or an unsupported server version). That made the probe report ready for a backend whose sessions would then fail. Require a non-zero agreed version for the neo4j db-type so such a backend times out with a clear error instead. * fix(neptune): fall back to default db-type on unknown config value A server-side typo in FLOCI_SERVICES_NEPTUNE_DB_TYPE shouldn't fail the client's CreateDBCluster. Make NeptuneDbType.fromConfig return an Optional and have NeptuneService fall back to GREMLIN with a WARN for an unrecognised value, instead of throwing InvalidParameterValue. The cluster still comes up on the default engine.
356 lines
11 KiB
YAML
356 lines
11 KiB
YAML
quarkus:
|
|
log:
|
|
console:
|
|
format: "%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c{3.}] %s%e%n"
|
|
category:
|
|
"io.apicurio":
|
|
level: WARN
|
|
|
|
http:
|
|
port: ${floci.port}
|
|
host: 0.0.0.0
|
|
limits:
|
|
max-body-size: ${floci.max-request-size}M
|
|
datasource:
|
|
active: false
|
|
security:
|
|
security-providers: BC
|
|
shutdown:
|
|
# Enables the pre-shutdown phase so stop hooks run before the HTTP server stops.
|
|
# No 'delay' value is set - observers run synchronously, no artificial sleep is introduced.
|
|
delay-enabled: true
|
|
native:
|
|
resources:
|
|
# The Pricing service reads its bundled snapshot, EC2 reads its image
|
|
# catalog (ec2/image-catalog.yaml), AppSync's GraphQL parser reads its
|
|
# message bundles, and API Gateway's Velocity engine reads its default
|
|
# properties at runtime via
|
|
# ClassLoader#getResourceAsStream. Quarkus's static resource analysis
|
|
# cannot detect these dynamically-built paths, so they are registered
|
|
# explicitly to ensure GraalVM includes every file in the native image.
|
|
includes:
|
|
- pricing-snapshots/**
|
|
- ui/*.html
|
|
- ec2/*.yaml
|
|
- i18n/*.properties
|
|
- org/apache/velocity/runtime/defaults/*.properties
|
|
additional-build-args:
|
|
- --report-unsupported-elements-at-runtime
|
|
- --allow-incomplete-classpath
|
|
- --enable-url-protocols=http,https
|
|
- --initialize-at-run-time=io.vertx.ext.mail.impl.sasl.NTLMEngineImpl
|
|
- --initialize-at-run-time=com.github.dockerjava.transport.NamedPipeSocket$Kernel32
|
|
- --initialize-at-run-time=org.bouncycastle.jcajce.provider.drbg.DRBG$Default
|
|
- --initialize-at-run-time=org.bouncycastle.jcajce.provider.drbg.DRBG$NonceAndIV
|
|
- --initialize-at-run-time=org.bouncycastle.crypto.prng.SP800SecureRandom
|
|
- --initialize-at-run-time=org.bouncycastle.jcajce.provider.asymmetric.rsa.KeyPairGeneratorSpi
|
|
- --initialize-at-run-time=org.bouncycastle.jcajce.provider.asymmetric.x509.CertificateFactory
|
|
- --initialize-at-run-time=io.github.hectorvent.floci.core.common.BouncyCastleInitializer
|
|
- --initialize-at-run-time=io.github.hectorvent.floci.services.acm.AcmService
|
|
- --initialize-at-run-time=io.github.hectorvent.floci.services.acm.CertificateGenerator
|
|
- --initialize-at-run-time=io.github.hectorvent.floci.config.TlsConfigSource
|
|
- --initialize-at-run-time=io.github.hectorvent.floci.services.cognito.CognitoSrpHelper
|
|
- --initialize-at-run-time=io.github.hectorvent.floci.services.ses.SesService
|
|
- --initialize-at-run-time=io.github.hectorvent.floci.services.route53.Route53Service
|
|
- --initialize-at-run-time=io.github.hectorvent.floci.services.kms.KmsService
|
|
- --initialize-at-run-time=io.github.hectorvent.floci.services.cloudfront.CloudFrontService
|
|
- --initialize-at-run-time=io.github.hectorvent.floci.services.emr.EmrService
|
|
|
|
|
|
floci:
|
|
port: 4566
|
|
max-request-size: 2048
|
|
base-url: "http://localhost:4566"
|
|
# hostname: "" # When set, overrides the hostname in response URLs (e.g. SQS QueueUrl).
|
|
# Needed for multi-container Docker setups. Example: FLOCI_HOSTNAME=floci
|
|
default-region: us-east-1
|
|
default-account-id: "000000000000"
|
|
storage:
|
|
# Supported modes: memory, persistent, hybrid, wal
|
|
mode: memory
|
|
persistent-path: ./data
|
|
host-persistent-path: ./data
|
|
prune-volumes-on-delete: false
|
|
wal:
|
|
compaction-interval-ms: 30000
|
|
services:
|
|
ssm:
|
|
flush-interval-ms: 5000
|
|
dynamodb:
|
|
flush-interval-ms: 5000
|
|
sns:
|
|
flush-interval-ms: 5000
|
|
lambda:
|
|
flush-interval-ms: 5000
|
|
cloudwatchlogs:
|
|
flush-interval-ms: 5000
|
|
cloudwatchmetrics:
|
|
flush-interval-ms: 5000
|
|
secretsmanager:
|
|
flush-interval-ms: 5000
|
|
acm:
|
|
flush-interval-ms: 5000
|
|
opensearch:
|
|
flush-interval-ms: 5000
|
|
batch:
|
|
flush-interval-ms: 5000
|
|
rds:
|
|
# Override storage mode for RDS (memory = no Docker volumes; hybrid/persistent = named volume per instance)
|
|
# mode: memory
|
|
ec2:
|
|
# Override storage mode for EC2 (defaults to the global storage mode). EC2 networking and
|
|
# instance metadata persist so CloudFormation-created VPC/subnet ids survive a restart (#1297).
|
|
# mode: memory
|
|
|
|
dns:
|
|
# Extra hostname suffixes resolved to Floci's container IP by the embedded DNS server.
|
|
# Useful when migrating from LocalStack — add localhost.localstack.cloud to avoid
|
|
# changing Lambda endpoint environment variables.
|
|
# Via env var (comma-separated): FLOCI_DNS_EXTRA_SUFFIXES=localhost.localstack.cloud,other.internal
|
|
# extra-suffixes:
|
|
# - localhost.localstack.cloud
|
|
|
|
# Public resolvers appended after Floci's embedded DNS on spawned containers' HostConfig.Dns,
|
|
# and used as the fallback upstream for Floci's own DNS forwarder. Lets Lambda/CodeBuild
|
|
# resolve public hostnames even if the embedded forwarder cannot answer.
|
|
# Disable in offline/locked-down networks where these resolvers are blocked.
|
|
container-fallback-enabled: true # FLOCI_DNS_CONTAINER_FALLBACK_ENABLED
|
|
container-fallback-servers: # FLOCI_DNS_CONTAINER_FALLBACK_SERVERS=1.1.1.1,1.0.0.1
|
|
- 8.8.8.8
|
|
- 8.8.4.4
|
|
|
|
auth:
|
|
validate-signatures: false
|
|
presign-secret: local-emulator-secret
|
|
|
|
security:
|
|
# Comma-separated browser origins allowed by the global CORS filter.
|
|
# Env var: EXTRA_CORS_ALLOWED_ORIGINS=http://localhost:3000
|
|
# extra-cors-allowed-origins:
|
|
# Extra request/response CORS header names for browser clients.
|
|
# extra-cors-allowed-headers:
|
|
# extra-cors-expose-headers:
|
|
disable-cors-headers: false
|
|
|
|
tls:
|
|
enabled: false # FLOCI_TLS_ENABLED (default: false)
|
|
# cert-path: "" # FLOCI_TLS_CERT_PATH (PEM certificate file)
|
|
# key-path: "" # FLOCI_TLS_KEY_PATH (PEM private key file)
|
|
self-signed: true # FLOCI_TLS_SELF_SIGNED — auto-generate a self-signed cert if no cert-path provided
|
|
|
|
docker:
|
|
log-max-size: "10m"
|
|
log-max-file: "3"
|
|
docker-host: unix:///var/run/docker.sock
|
|
docker-config-path: ""
|
|
|
|
services:
|
|
ssm:
|
|
enabled: true
|
|
max-parameter-history: 5
|
|
sqs:
|
|
enabled: true
|
|
default-visibility-timeout: 30
|
|
max-message-size: 1048576
|
|
clear-fifo-deduplication-cache-on-purge: false
|
|
s3:
|
|
enabled: true
|
|
default-presign-expiry-seconds: 3600
|
|
dynamodb:
|
|
enabled: true
|
|
sns:
|
|
enabled: true
|
|
lambda:
|
|
enabled: true
|
|
ephemeral: false
|
|
default-memory-mb: 128
|
|
default-timeout-seconds: 3
|
|
runtime-api-base-port: 9200
|
|
runtime-api-max-port: 9299
|
|
code-path: ./data/lambda-code
|
|
poll-interval-ms: 1000
|
|
container-idle-timeout-seconds: 300
|
|
region-concurrency-limit: 1000
|
|
unreserved-concurrency-min: 100
|
|
# aws-config-path: # Host path to bind-mount (read-only) at /opt/aws-config for real credential discovery
|
|
hot-reload:
|
|
enabled: false
|
|
apigateway:
|
|
enabled: true
|
|
apigatewayv2:
|
|
enabled: true
|
|
iam:
|
|
enabled: true
|
|
enforcement-enabled: false
|
|
seed-deployer-principal: false
|
|
msk:
|
|
enabled: true
|
|
mock: false
|
|
default-image: "redpandadata/redpanda:latest"
|
|
elasticache:
|
|
enabled: true
|
|
proxy-base-port: 6379
|
|
proxy-max-port: 6399
|
|
default-image: "valkey/valkey:8"
|
|
default-memcached-image: "memcached:1.6"
|
|
rds:
|
|
enabled: true
|
|
proxy-base-port: 7001
|
|
proxy-max-port: 7099
|
|
default-postgres-image: "postgres:16-alpine"
|
|
default-mysql-image: "mysql:8.0"
|
|
default-mariadb-image: "mariadb:11"
|
|
rds-data:
|
|
enabled: true
|
|
transaction-ttl-seconds: 180
|
|
neptune:
|
|
enabled: true
|
|
proxy-base-port: 8182
|
|
proxy-max-port: 8282
|
|
db-type: "gremlin"
|
|
default-image: "tinkerpop/gremlin-server:3.7.3"
|
|
default-neo4j-image: "neo4j:5-community"
|
|
eventbridge:
|
|
enabled: true
|
|
cloudmap:
|
|
enabled: true
|
|
emr:
|
|
enabled: true
|
|
wafv2:
|
|
enabled: true
|
|
scheduler:
|
|
enabled: true
|
|
cloudwatchlogs:
|
|
enabled: true
|
|
max-events-per-query: 10000
|
|
cloudwatchmetrics:
|
|
enabled: true
|
|
secretsmanager:
|
|
enabled: true
|
|
default-recovery-window-days: 30
|
|
kinesis:
|
|
enabled: true
|
|
firehose:
|
|
enabled: true
|
|
kms:
|
|
enabled: true
|
|
cognito:
|
|
enabled: true
|
|
stepfunctions:
|
|
enabled: true
|
|
cloudformation:
|
|
enabled: true
|
|
acm:
|
|
enabled: true
|
|
validation-wait-seconds: 0
|
|
athena:
|
|
enabled: true
|
|
mock: false
|
|
duck:
|
|
# url: http://floci-duck:3000 # set to skip container management
|
|
default-image: "floci/floci-duck:latest"
|
|
glue:
|
|
enabled: true
|
|
ses:
|
|
enabled: true
|
|
# smtp-host: mailpit # SMTP server for email relay (empty = store only)
|
|
# smtp-port: 1025
|
|
# smtp-user: ""
|
|
# smtp-pass: ""
|
|
# smtp-starttls: DISABLED # DISABLED, OPTIONAL, or REQUIRED
|
|
opensearch:
|
|
enabled: true
|
|
mock: false
|
|
# default-image: optional override; uncomment to lock every domain to a
|
|
# single image (e.g. private registry mirror). When unset, the image is
|
|
# picked from OpenSearchVersions.imageFor(EngineVersion).
|
|
# default-image: "registry.example.com/opensearch:2.19.5"
|
|
proxy-base-port: 9400
|
|
proxy-max-port: 9499
|
|
keep-running-on-shutdown: false
|
|
ec2:
|
|
enabled: true
|
|
imds-port: 9169
|
|
ssh-port-range-start: 2200
|
|
ssh-port-range-end: 2299
|
|
mock: false
|
|
ecs:
|
|
enabled: true
|
|
mock: false
|
|
appconfig:
|
|
enabled: true
|
|
appconfigdata:
|
|
enabled: true
|
|
ecr:
|
|
enabled: true
|
|
registry-image: "registry:2"
|
|
registry-container-name: floci-ecr-registry
|
|
registry-base-port: 5100
|
|
registry-max-port: 5199
|
|
data-path: ./data/ecr
|
|
tls-enabled: false
|
|
keep-running-on-shutdown: true
|
|
uri-style: hostname
|
|
ui:
|
|
enabled: true
|
|
image: "floci/floci-ui:latest"
|
|
container-name: floci-ui
|
|
port: 4500
|
|
keep-running-on-shutdown: false
|
|
bedrock-runtime:
|
|
enabled: true
|
|
eks:
|
|
enabled: true
|
|
mock: false
|
|
provider: k3s
|
|
default-image: "rancher/k3s:latest"
|
|
api-server-base-port: 6500
|
|
api-server-max-port: 6599
|
|
data-path: ./data/eks
|
|
keep-running-on-shutdown: false
|
|
endpoint-mode: host # host = https://localhost:<hostPort> (host-reachable); network = container DNS name
|
|
iam-auth-webhook: true # wire a token-auth webhook into k3s so `aws eks get-token` works
|
|
elbv2:
|
|
enabled: true
|
|
mock: false
|
|
codebuild:
|
|
enabled: true
|
|
# docker-network: floci-network
|
|
batch:
|
|
enabled: true
|
|
runner-mode: immediate
|
|
# docker-network: floci-network
|
|
codedeploy:
|
|
enabled: true
|
|
autoscaling:
|
|
enabled: true
|
|
backup:
|
|
enabled: true
|
|
job-completion-delay-seconds: 3
|
|
route53:
|
|
enabled: true
|
|
transfer:
|
|
enabled: true
|
|
textract:
|
|
enabled: true
|
|
pricing:
|
|
enabled: true
|
|
transcribe:
|
|
enabled: true
|
|
ce:
|
|
enabled: true
|
|
credit-usd-monthly: 0.0
|
|
cur:
|
|
enabled: true
|
|
emit-mode: synchronous
|
|
staging-bucket: floci-cur-staging
|
|
bcm-data-exports:
|
|
enabled: true
|
|
emit-mode: synchronous
|
|
cloudtrail:
|
|
enabled: true
|
|
cloudfront:
|
|
enabled: true
|
|
appsync:
|
|
enabled: true
|