fix(docs): clarify SSH password inheritance with API token auth#2624
fix(docs): clarify SSH password inheritance with API token auth#2624
Conversation
Signed-off-by: Pavel Boldyrev <pavel@bpg.sh>
Summary of ChangesHello @bpg-dev, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the clarity of the Proxmox Terraform provider's documentation regarding SSH password inheritance, specifically when using API token authentication. It addresses a reported user confusion by explicitly stating that the SSH Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request primarily clarifies the behavior of SSH password inheritance when using API token authentication in the Proxmox provider. Documentation in docs/index.md was updated with warnings and explicit notes stating that the SSH password cannot be inherited from the provider's password field when using API tokens, requiring explicit configuration via ssh-agent, password, or private_key in the ssh block. The example/main.tf also received a similar clarifying comment. Additionally, the schema descriptions for the ssh.password attribute in fwprovider/provider.go and proxmoxtf/provider/schema.go were updated to reflect this distinction. A review comment suggested improving the consistency of one of the new documentation warnings by using backticks for attribute names and tools, and by mentioning environment variables as an alternative for providing credentials.
| } | ||
| ``` | ||
|
|
||
| ~> When using **API token** authentication, the SSH password cannot be inherited from the provider `password` field (since there is none). You must ensure that either `ssh-agent` has the appropriate keys loaded, or explicitly configure `password` or `private_key` in the `ssh` block. |
There was a problem hiding this comment.
For consistency with the rest of the documentation and the warning callout below, consider using backticks for attribute names and tools. Also, mentioning environment variables here would be helpful for completeness.
| ~> When using **API token** authentication, the SSH password cannot be inherited from the provider `password` field (since there is none). You must ensure that either `ssh-agent` has the appropriate keys loaded, or explicitly configure `password` or `private_key` in the `ssh` block. | |
| ~> When using **API token** authentication, the SSH password cannot be inherited from the provider `password` field (since there is none). You must ensure that either `ssh-agent` has the appropriate keys loaded, or explicitly configure `password` or `private_key` in the `ssh` block (or their corresponding environment variables). |
References
- Documentation — Schema descriptions should be clear and accurate. (link)
What does this PR do?
Clarifies that the SSH
passwordfield's default (inheriting from the provider's APIpassword) only works with username/password authentication — not with API token authentication, since there is no password to inherit.This was reported in #2578 where a user expected SSH password to be automatically available when using
api_token, but the provider has no password to fall back to in that case. The fix updates schema descriptions, provider docs, and the example configuration to make this limitation explicit.Contributor's Note
make lintand fixed any issues.make docs; SDK: manual/docs/edits).!in PR title).make exampleto verify the change works (mainly for SDK / provider config changes).Proof of Work
Documentation-only change — no API behavior or code logic changes.
Files changed:
fwprovider/provider.gopasswordschema description to clarify API token limitationproxmoxtf/provider/schema.godocs/index.mdmake docsexample/main.tfapi_tokenCommunity Note
Closes #2578