forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to ContainerfileClear filter

2026-09-17

fix: 🔐 hab/2 sözleşmesini sertifika pinlemesi ve kalıcı-red dayanıklılığıyla tamamlaAhmet Kaan Gümüş · 3c4490c
fix: 🔐 hab/2 sözleşmesini sertifika pinlemesi ve kalıcı-red dayanıklılığıyla tamamla

hab/1 -> hab/2 geçişi ve `school` yankısı önceki iki commit'te gelmişti; wire'da
kalan iki boşluk burada kapanıyor.

- AI_TLS_FINGERPRINT: sertifika DÜZ HTTP ile çekildiği için onu pinlemek tek
  başına yetmiyordu — araya giren biri kendi sertifikasını pinletebilirdi.
  Parmak izi artık PEM'den YENİDEN hesaplanıyor, sunucunun bildirdiği
  fingerprint_sha256 yalnızca çapraz denetleniyor (uyduran onu da uydurur),
  pin verilmişse uyuşmayan sertifikaya bağlanılmıyor; boş bırakılırsa TOFU her
  açılışta uyarıyla loglanıyor. Yarım/bozuk bir pin sessizce TOFU'ya düşmüyor,
  yapılandırma hatası veriyor.
- Kayıt kalıcı olarak reddedilince (unsupported_protocol/unauthorized) köprü
  ÇIKMIYOR — zeka ile aynı şekil: üstel geri çekilme, jitter,
  AI_RECONNECT_MAX_SECS tavanı ve logun durum değişiminde BİR kez atılması.
  restart: unless-stopped altında çıkan bir köprü sonsuz crash-loop olur ve
  backend düzeltildiğinde kendiliğinden dönmez; operatörün elle müdahalesi
  gerekir.
- Cevap çerçeveleri artık ok_response/err_response ile kuruluyor: dal başına
  elle dict yazmak bir dalın school'u unutmasına açıktı ve o, backend'de
  error_code=protocol demektir.
- Sertifika her (yeniden) bağlanmada tazeleniyor (backend her boot'ta kendi
  self-signed'ını yeniden üretir); docstring ve ReadMe bunu söylüyor.
- Deploy: Containerfile ENV bloğuna AI_RECONNECT_MAX_SECS, operatör env
  örneğine AI_TLS_FINGERPRINT + AI_RECONNECT_MAX_SECS; CLAUDE.md'ye "tekrar
  keşfetme" notları (reddedilince çık davranışını geri ekleme).

Testler (tests/unit/test_bridge.py): hab/2 işareti, telde Hello gövdesi, dört
cevap dalında okul yankısı, kalıcı redde tavana çekilme + durum başına tek log,
geçici hatada üstel eğri + sağlıklı oturumda sıfırlama, ve gerçek bir X.509
gövdesi üzerinde openssl'in verdiği parmak iziyle doğrulanan aritmetik.
Süit: 465 test OK (skipped=1).

2026-09-15

refactor: 🔧 name the stack after the repo and fix the backend host - every runtime name follows the repo: image hezarfen_rule_based_chatbot, container_name, the systemd unit hezarfen_rule_based_chatbot_compose, the operator file hezarfen_rule_based_chatbot.env, the deploy dir and the release artifact - AI_BRIDGE_HOST/AI_BACKEND_URL now use hezarfen_backend: the hyphenated name does not resolve on the shared podman network (proved inside the container: getaddrinfo("hezarfen-backend") fails, hezarfen_backend and backend both point at 10.89.0.4) - AI_BACKEND_URL points at the backend's real port 7656 instead of 8080Ahmet Kaan Gümüş · 2ddc9e8
refactor: 🔧 name the stack after the repo and fix the backend host
- every runtime name follows the repo: image hezarfen_rule_based_chatbot,
  container_name, the systemd unit hezarfen_rule_based_chatbot_compose, the
  operator file hezarfen_rule_based_chatbot.env, the deploy dir and the
  release artifact
- AI_BRIDGE_HOST/AI_BACKEND_URL now use hezarfen_backend: the hyphenated
  name does not resolve on the shared podman network (proved inside the
  container: getaddrinfo("hezarfen-backend") fails, hezarfen_backend and
  backend both point at 10.89.0.4)
- AI_BACKEND_URL points at the backend's real port 7656 instead of 8080
chore: 🔧 compose stack, hab/2 protocol and VPS deploy workflow - compose.yaml: env-file driven single service that joins the backend's podman network and dials QUIC 8090; no ports, no environment block, so nothing can shadow the operator's hezarfen_chatbot.env - Containerfile is the single source of the deployment defaults (AI_* ENV block) and now CMDs the bridge; AI_BACKEND_URL points at the backend's own port 7656 instead of the stale 8080 - bridge.py speaks hab/2: the backend pins AI_PROTOCOL/AI_ALPN to hab/2 and rejects any other hello, so the bridge could never register - deploy/: operator env example + systemd user unit (compose up --no-build with both --env-file arguments) - .github/workflows/main.yml: validate ∥ build-and-test (unittest suite, Composefile image, release artifact) then an SSH deploy that rotates HEZARFEN_TAG in a deploy-owned stack.env, installs the unit, restarts and gates on the backend accepting the registration, rolling back on failureAhmet Kaan Gümüş · e013725
chore: 🔧 compose stack, hab/2 protocol and VPS deploy workflow
- compose.yaml: env-file driven single service that joins the backend's
  podman network and dials QUIC 8090; no ports, no environment block, so
  nothing can shadow the operator's hezarfen_chatbot.env
- Containerfile is the single source of the deployment defaults (AI_* ENV
  block) and now CMDs the bridge; AI_BACKEND_URL points at the backend's
  own port 7656 instead of the stale 8080
- bridge.py speaks hab/2: the backend pins AI_PROTOCOL/AI_ALPN to hab/2 and
  rejects any other hello, so the bridge could never register
- deploy/: operator env example + systemd user unit (compose up --no-build
  with both --env-file arguments)
- .github/workflows/main.yml: validate ∥ build-and-test (unittest suite,
  Composefile image, release artifact) then an SSH deploy that rotates
  HEZARFEN_TAG in a deploy-owned stack.env, installs the unit, restarts and
  gates on the backend accepting the registration, rolling back on failure

2026-08-14

chore(podman): chatbot'u tam Containerfile/podman konfigürasyonuna geçirKadir Yönak · 598b86b
chore(podman): chatbot'u tam Containerfile/podman konfigürasyonuna geçir

Front/back ile aynı Podman konvansiyonuna hizalandı (artık aktif feature
line'da, hack değil):
- Dockerfile -> Containerfile, .dockerignore -> .containerignore (git mv).
- compose.yaml: dockerfile: Containerfile, image localhost/ önekiyle.
- ReadMe.md: "# Docker / docker compose" -> "# Podman / podman compose".
- Containerfile yorumu: "Docker katman önbelleği" -> "konteyner katman önbelleği".
Davranış/kod aynı; yalnız container konfigürasyonu. Stack podman'da bu Containerfile
ile ayağa kalkıyor.