Pcornel
Storage · iSCSI

CHAP

Cheat sheet · https://pcornel.dk/topic.php?topic=4106

Back to the Topic

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 settings
  • iscsiadm -m node -T <iqn> -o update -n node.session.auth.authmethod -v CHAP — enable
  • Set-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 boundaryWhat to verifyProof limit
Identity / presentationInitiator + target identity, portal/fabric path, LUN stable ID and mappingDiscovery or login alone does not prove correct storage ownership
Path / transportLink/VLAN/IP/TCP or fabric state, path independence, session/path errors and multipath groupingOne reachable path does not prove resilience or backend health
Failure boundarySuccessful 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
AcceptanceHealthy 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

Confirmation

Confirm action

Continue?