CHAP
Cheat sheet · https://pcornel.dk/topic.php?topic=4106
Answer
CHAP validates possession of a shared secret through challenge-response during iSCSI login. It is an authentication mechanism, not payload encryption; protecting storage traffic confidentiality requires separate network/security controls such as IPsec where supported and designed.
Remember
- CHAP ≠ encryption.
- One-way CHAP ≠ mutual authentication.
- TCP reachability ≠ CHAP success.
- Successful CHAP ≠ LUN authorization if mapping policy still denies access.
First checks
grep -E 'node.session.auth' /etc/iscsi/iscsid.conf— CHAP settingsiscsiadm -m node -T <iqn> -o update -n node.session.auth.authmethod -v CHAP— enableSet-IscsiChapSecret— Windows initiator secret
Verify in this order
login → CHAP challenge/response → access
Where it usually breaks
First mismatch in initiator → link/fabric/network → session/login → target port → LUN/namespace presentation → multipath → block consumer; preserve identity/pre-state before mutation.
iSCSI → CHAP SAN/iSCSI map
| SAN/iSCSI boundary | What to verify | Proof limit |
|---|---|---|
| Identity / presentation | Initiator + target identity, portal/fabric path, LUN stable ID and mapping | Discovery or login alone does not prove correct storage ownership |
| Path / transport | Link/VLAN/IP/TCP or fabric state, path independence, session/path errors and multipath grouping | One reachable path does not prove resilience or backend health |
| Failure boundary | Successful CHAP proves authentication for the configured direction(s); it does not encrypt data or prove LUN authorization and application integrity. | Correlate host, network/fabric and target/array evidence for the same time window |
| Acceptance | Healthy evidence: intended authentication mode succeeds for correct initiator/target identities, secrets remain protected and only authorized sessions progress to mapped LUNs. | Close only after the original block workload and upper-layer consistency check succeeds |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4106