Commit Graph

19 Commits

Author SHA1 Message Date
gitea d4a57cc4f5 feat(astrololo): wejscie po https z wlasnym CA (PRE-16)
Do tej pory aplikacja chodzila po zwyklym http, a logowanie szlo przez HTTP
Basic — czyli haslo leciało siecia w postaci trywialnej do podsluchania.

Poza bezpieczenstwem TLS naprawia DWIE funkcje zepsute dzis z tego samego
powodu: geolokalizacja przegladarki („Tu i teraz") i kopiowanie promptu do
schowka dzialaja wylacznie w secure context, wiec po http po prostu odmawialy.

Wlasne CA, nie Let's Encrypt — klaster stoi w LAN (traefik trzyma LoadBalancera
na 192.168.1.x), wiec walidacja HTTP-01 nie ma jak dojsc z internetu, a DNS-01
wymagalby trzymania w klastrze tokena API do domeny.

Co dochodzi:
- tls.yaml — Issuer selfSigned -> korzen CA (10 lat, importowany raz do
  przegladarki) -> Issuer CA -> certyfikat serwera (90 dni, odnawiany sam).
  Krotki termin certyfikatu serwera jest CELOWY: odnawianie sprawdza sie wtedy
  co kwartal, a nie dopiero za dekade.
- ingress.yaml — wejscie po https + naglowki (HSTS rok, nosniff, frameDeny)
  oraz osobny Ingress na porcie 80 robiacy przekierowanie. Rozdzielone
  swiadomie: gdyby redirect wisial na tym samym routerze co wejscie po https,
  odsylalby sam do siebie w kolko.
- presentation: Service NodePort -> ClusterIP. NodePort byl druga,
  nieszyfrowana droga do aplikacji, czyli obejsciem calego PRE-16.

Zmiana wymagajaca uwagi: TRUST_PROXY=true. Za Ingressem bezposrednim rozmowca
jest zawsze pod Traefika, wiec bez tego limit zadan liczylby WSZYSTKICH do
jednego wiadra i pierwsza osoba, ktora go wyklika, odcielaby pozostalych.

Sprawdzone: Ingress i Middleware przechodza `kubectl apply --dry-run=server`
na zywym klastrze (CRD traefik.io/v1alpha1 sa, entrypointy web/websecure sa).
Obiekty cert-managera zwalidowane offline wobec oficjalnego schematu z CRD
v1.21.0 z additionalProperties=false — literowka w nazwie pola zostalaby
zlapana. `kubectl kustomize` przechodzi dla obu profili (bazowego i swisseph).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-22 23:26:38 +02:00
argocd-image-updater affd8b60ff build: automatic update of astrololo
updates image gitea/astrololo-presentation tag '877ec91f' to '163ace42'
2026-07-22 20:31:22 +00:00
argocd-image-updater 584340b82d build: automatic update of astrololo
updates image gitea/astrololo-logic tag '877ec91f' to '163ace42'
2026-07-22 20:29:16 +00:00
argocd-image-updater 570f879c77 build: automatic update of astrololo
updates image gitea/astrololo-data tag '752f477a' to '877ec91f'
updates image gitea/astrololo-logic tag '5203ba9e' to '877ec91f'
updates image gitea/astrololo-presentation tag '64d1afc7' to '877ec91f'
2026-07-22 19:18:28 +00:00
argocd-image-updater ef4ba6d83a build: automatic update of astrololo
updates image gitea/astrololo-logic tag '64d1afc7' to '5203ba9e'
2026-07-22 15:18:19 +00:00
argocd-image-updater 8af10ce98a build: automatic update of astrololo
updates image gitea/astrololo-logic tag '4ef90b30' to '64d1afc7'
updates image gitea/astrololo-presentation tag '4ef90b30' to '64d1afc7'
2026-07-21 22:15:54 +00:00
argocd-image-updater 6b98f566eb build: automatic update of astrololo
updates image gitea/astrololo-logic tag '73fd41b9' to '4ef90b30'
updates image gitea/astrololo-presentation tag '752f477a' to '4ef90b30'
2026-07-21 19:40:29 +00:00
argocd-image-updater a386674078 build: automatic update of astrololo
updates image gitea/astrololo-logic tag '04b26afa' to '73fd41b9'
updates image gitea/astrololo-presentation tag '04b26afa' to '752f477a'
2026-07-21 18:35:56 +00:00
argocd-image-updater 2594183c39 build: automatic update of astrololo
updates image gitea/astrololo-logic tag '04b26afa' to '752f477a'
updates image gitea/astrololo-presentation tag '04b26afa' to '752f477a'
2026-07-21 17:29:23 +00:00
argocd-image-updater 32b4387d5c build: automatic update of astrololo
updates image gitea/astrololo-data tag 'de5d5895' to '752f477a'
2026-07-21 17:27:21 +00:00
argocd-image-updater fec8fae922 build: automatic update of astrololo
updates image gitea/astrololo-logic tag '6f87b2b3' to '04b26afa'
updates image gitea/astrololo-presentation tag '6f87b2b3' to '04b26afa'
2026-07-21 16:52:54 +00:00
argocd-image-updater b686837d19 build: automatic update of astrololo
updates image gitea/astrololo-logic tag 'de5d5895' to '6f87b2b3'
updates image gitea/astrololo-presentation tag 'a2aabd37' to '6f87b2b3'
2026-07-21 14:35:50 +00:00
argocd-image-updater fb332c4e75 build: automatic update of astrololo
updates image gitea/astrololo-logic tag 'de5d5895' to '6f87b2b3'
2026-07-21 14:33:47 +00:00
argocd-image-updater 69ac1aa90b build: automatic update of astrololo
updates image gitea/astrololo-presentation tag 'de5d5895' to 'a2aabd37'
2026-07-21 01:57:20 +00:00
argocd-image-updater 6405a2544c build: automatic update of astrololo
updates image gitea/astrololo-data tag 'c75f8377' to 'de5d5895'
updates image gitea/astrololo-logic tag 'ab6fc072' to 'de5d5895'
updates image gitea/astrololo-presentation tag 'ab6fc072' to 'de5d5895'
2026-07-21 01:18:43 +00:00
argocd-image-updater b8c9d96edf build: automatic update of astrololo
updates image gitea/astrololo-logic tag '6ced2ddd' to 'ab6fc072'
updates image gitea/astrololo-presentation tag '6ced2ddd' to 'ab6fc072'
2026-07-21 00:18:13 +00:00
argocd-image-updater cfeb47020d build: automatic update of astrololo
updates image gitea/astrololo-logic tag 'c75f8377' to '6ced2ddd'
updates image gitea/astrololo-presentation tag 'c75f8377' to '6ced2ddd'
2026-07-20 18:52:05 +00:00
argocd-image-updater 8fff933578 build: automatic update of astrololo
updates image gitea/astrololo-data tag '9323803c' to 'c75f8377'
updates image gitea/astrololo-logic tag '9323803c' to 'c75f8377'
updates image gitea/astrololo-presentation tag '9323803c' to 'c75f8377'
2026-07-20 17:53:31 +00:00
gitea 748c450a85 astrololo: manifesty k8s (data+logic+presentation) 2026-07-17 13:54:46 +02:00