Dağıtım Çerezini ve Düğüm Erişimini Güçlendirme
Yetkisiz erişimi önlemek için çerezler, izin verilen düğüm listeleri ve ağ yalıtımı kullanarak kümenize hangi düğümlerin bağlanabileceğini kısıtlayın.
Dağıtım Çerezini ve Düğüm Erişimini Güçlendirme, CoddyKit'te ücretsiz bir Erlang OTP: Distributed & Fault-Tolerant Systems Programming dersidir. Bu, 4 dersinin 4. dersidir. Aşağıdan dersin tamamını ücretsiz okuyabilir, sonra tarayıcıda yerleşik kod editörü ve 7/24 yapay zeka koçu ile uygulamalı olarak pratik yapabilirsin. Bu, Erlang OTP: Distributed & Fault-Tolerant Systems Programming öğrenme yolunun bir parçasıdır ve ilerlemeniz web ve CoddyKit uygulaması arasında senkronize olur. Erlang OTP: Distributed & Fault-Tolerant Systems Programming kursu toplamda 4 dersten oluşur.
Bu dersin bazı bölümleri henüz çevrilmemiş olup İngilizce olarak gösterilmektedir.
How Nodes Authenticate
Erlang nodes form a cluster by sharing a secret cookie. Any node that knows the cookie and can reach the port may connect — and once connected, can run arbitrary code. This makes the cookie a critical secret.
The Magic Cookie
By default each node reads its cookie from ~/.erlang.cookie. If two nodes share it, they trust each other completely.
erlang:get_cookie().The Danger of Defaults
A weak or default cookie on a publicly reachable distribution port is a full remote-code-execution hole. Treat the cookie like a root password.
Setting a Strong Cookie
Set a long, random cookie explicitly at startup rather than relying on the file default.
erlang:set_cookie(node(), 'a-very-long-random-secret').Protecting the Cookie File
The cookie file must be readable only by its owner. Erlang refuses to start if permissions are too open.
chmod 400 ~/.erlang.cookieRestricting Node Names
Use net_kernel options and firewall rules so only known hostnames can even attempt a connection. Distribution should never be exposed to the open internet.
Binding the Distribution Port
Pin the distribution to specific ports and bind EPMD to a private interface so the cluster is unreachable from outside the trusted network.
erl -kernel inet_dist_listen_min 9100 inet_dist_listen_max 9105Monitoring Connections
nodes/0 lists currently connected nodes. Periodically auditing this list helps detect an unexpected peer.
nodes().Reacting to New Nodes
Subscribe to node up/down events with net_kernel:monitor_nodes/1 to log or reject connections you did not expect.
net_kernel:monitor_nodes(true).Hidden Nodes
Start tooling or monitoring nodes as hidden with -hidden so they connect without joining the full mesh, reducing the trust surface of your cluster.
erl -hidden -name tool@10.0.0.5 -setcookie SECRETDefense in Depth
Cookies alone are not enough. Combine them with TLS distribution, a private network (VPN/VLAN), firewalled EPMD, and least-privilege node placement.
Quick Check
Test your node security knowledge.
Recap
You learned to harden node access:
- The shared cookie is the cluster password — keep it long, random, secret
- Protect
~/.erlang.cookiewith 400 permissions - Bind distribution and EPMD to private interfaces; firewall them
- Audit connected nodes with
nodes/0and monitor events - Layer cookies with TLS and network isolation
Sıkça Sorulan Sorular
“Dağıtım Çerezini ve Düğüm Erişimini Güçlendirme” dersi ücretsiz mi?
Evet — “Dağıtım Çerezini ve Düğüm Erişimini Güçlendirme” dersin tüm metni burada web'de ücretsiz olarak okunabilir. Etkileşimli olarak pratik yapmak (yerleşik kod editörü ve 7/24 yapay zeka koçu) ve Erlang OTP: Distributed & Fault-Tolerant Systems Programming kursunun geri kalanını açmak için CoddyKit PRO'ya yükselt. Erlang OTP: Distributed & Fault-Tolerant Systems Programming kursu toplamda 4 dersten oluşur.
“Dağıtım Çerezini ve Düğüm Erişimini Güçlendirme” dersinde ne öğreneceğim?
Yetkisiz erişimi önlemek için çerezler, izin verilen düğüm listeleri ve ağ yalıtımı kullanarak kümenize hangi düğümlerin bağlanabileceğini kısıtlayın. Erlang OTP: Distributed & Fault-Tolerant Systems Programming ile uygulamalı kodu tarayıcıda doğrudan çalıştırarak pratik yaparsın ve 7/24 yapay zeka koçu dersi çalışırken sorularını yanıtlar.
Erlang OTP: Distributed & Fault-Tolerant Systems Programming öğrenmeye başlamak için deneyim gerekli mi?
Önceden deneyim gerekmez. CoddyKit'te Erlang OTP: Distributed & Fault-Tolerant Systems Programming, başlangıçtan ileri seviyeye kadar yapılandırıldığı için buradan başlayabilir veya başından başlayıp kendi hızında ilerleme yapabilirsin. Bu, 4 dersinin 4. dersidir.
“Dağıtım Çerezini ve Düğüm Erişimini Güçlendirme” dersi ne kadar sürer?
Çoğu CoddyKit dersi yaklaşık 5–10 dakika sürer. Her biri kısa ve etkileşimli olduğu için sabit ilerleme yaparsın ve web ile uygulama arasında tam olarak bıraktığın yerden devam edebilirsin.
Bu Erlang OTP: Distributed & Fault-Tolerant Systems Programming dersinde kod yazıp çalıştırabilir miyim?
Evet. Her Erlang OTP: Distributed & Fault-Tolerant Systems Programming dersi yerleşik bir kod editörü içerir, bu sayede tarayıcıda gerçek kod yazıp çalıştırabilir ve anlık yapay zeka geri bildirimi alırsın — yerel kurulum gerekli değildir.
Bu kursun tüm dersleri
- Güvenli Düğüm İletişimi (TLS)
- Kimlik Doğrulama ve Yetkilendirme
- Hassas Verilerin Korunması
- Dağıtım Çerezini ve Düğüm Erişimini Güçlendirme