Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document specifying secrets for CHAP authentication #289

Open
Patricol opened this issue Sep 1, 2024 · 3 comments
Open

Document specifying secrets for CHAP authentication #289

Patricol opened this issue Sep 1, 2024 · 3 comments

Comments

@Patricol
Copy link

Patricol commented Sep 1, 2024

To save the next person some time - as best I can tell from the code - you add a volumeAttribute (to the pv) named 'secret'; with a value matching this pseudocode format:

jsonencode({
  "node.session.auth.username": "your userid"
  "node.session.auth.password": "your password"
  "node.session.auth.username_in": "your mutual_userid"
  "node.session.auth.password_in": "your mutual_password"
  "node.sendtargets.auth.username": "your discovery userid"
  "node.sendtargets.auth.password": "your discovery password"
  "node.sendtargets.auth.username_in": "your discovery mutual_userid"
  "node.sendtargets.auth.password_in": "your discovery mutual_password"
})
@Patricol
Copy link
Author

Patricol commented Sep 1, 2024

Actually you can specify with kubernetes secrets; put the content described above in a secret and use ControllerExpandSecretRef/ControllerPublishSecretRef/NodePublishSecretRef/NodeStageSecretRef to point to it. (Not sure which are actually needed; no harm in giving all four afaict.)

@humblec
Copy link
Contributor

humblec commented Oct 1, 2024

Please feel free to send a PR @Patricol

@vamage
Copy link

vamage commented Oct 11, 2024

/assign vamage going to add this to docs based on open-iscsi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants