Skip to content

feat: ASOBI_DB_SOCKET_OPTS=inet default for kura pool#38

Merged
Taure merged 1 commit intomainfrom
feat/db-socket-opts-default
May 3, 2026
Merged

feat: ASOBI_DB_SOCKET_OPTS=inet default for kura pool#38
Taure merged 1 commit intomainfrom
feat/db-socket-opts-default

Conversation

@Taure
Copy link
Copy Markdown
Contributor

@Taure Taure commented May 3, 2026

Summary

Adds ENV ASOBI_DB_SOCKET_OPTS=inet to the Dockerfile and renders it into the kura socket_options list in prod_sys.config.src. Pairs with widgrensit/asobi#113.

Why

Default inet keeps existing IPv4 deployments unchanged. On IPv6-only Postgres networks (Fly Managed/Unmanaged Postgres on .flycast/.internal, certain k8s setups), override with ASOBI_DB_SOCKET_OPTS=inet6.

kura already reads socket_options from app env (kura_app.erl:42-43), so this is purely a config exposure.

Reviews

  • ✅ asobi-architecture-guardian: ACCEPT WITH CHANGES (incorporated)
  • ✅ erlang-code-reviewer (quick): no blockers, Dockerfile comment added per nit

Test plan

  • CI green (image builds, release embeds [inet] in rendered sys.config)
  • On Fly: flyctl secrets set ASOBI_DB_SOCKET_OPTS=inet6 → kura pool connects to .flycast Postgres without sys.config patching
  • Local docker-compose (default inet): unchanged behaviour, IPv4 connection to postgres container

Related

Pairs with widgrensit/asobi PR for env-controlled socket_options.
Default inet keeps existing IPv4 deployments unchanged. On IPv6-only
Postgres networks (Fly, certain k8s setups), override with
ASOBI_DB_SOCKET_OPTS=inet6.

Approved by asobi-architecture-guardian and erlang-code-reviewer.
@Taure Taure merged commit cb9ed8a into main May 3, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant