Source: field feedback (auth lifecycle / security).
Three related gaps in how the module handles authentication and sessions:
- No graceful re-auth on session expiry. When a session expires the module returns a bare
403. The FlashArray module re-authenticates gracefully. At minimum, detect the expired-session 403 and return a descriptive error that tells the caller to re-authenticate; ideally attempt a transparent re-auth using the stored credential.
- API token exposed after connect. After
Connect-PfbArray the API token is visible on the returned connection object. The token should not be surfaced in default output (store it non-displayably, e.g. behind a hidden/SecureString member).
- Credential / AD login does not work on REST API 2.x. The cred/AD login argument exists in the code but does not work against 2.x (appears supported on 1.x). Clarify whether AD/credential auth is supported on 2.x or whether callers are expected to issue and rotate their own tokens. If it is an implementation bug, fix it; if it is unsupported, document the token workflow (issuance, rotation, storage) clearly.
Acceptance
- Expired session yields an actionable error (or a transparent re-auth), not a bare 403.
- Token is not present in the default formatted output of the connection object.
- Documented, tested guidance for AD/credential vs token auth on 2.x.
Source: field feedback (auth lifecycle / security).
Three related gaps in how the module handles authentication and sessions:
403. The FlashArray module re-authenticates gracefully. At minimum, detect the expired-session403and return a descriptive error that tells the caller to re-authenticate; ideally attempt a transparent re-auth using the stored credential.Connect-PfbArraythe API token is visible on the returned connection object. The token should not be surfaced in default output (store it non-displayably, e.g. behind a hidden/SecureStringmember).Acceptance