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

Fix SSH Key missing fields #13520

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

torchiaf
Copy link
Member

@torchiaf torchiaf commented Feb 26, 2025

Summary

Fixes #13474

Occurred changes and/or fixed issues

Technical notes summary

Areas or cases that should be tested

Areas which could experience regressions

Screenshot/Video

Checklist

  • The PR is linked to an issue and the linked issue has a Milestone, or no issue is needed
  • The PR has a Milestone
  • The PR template has been filled out
  • The PR has been self reviewed
  • The PR has a reviewer assigned
  • The PR has automated tests or clear instructions for manual tests and the linked issue has appropriate QA labels, or tests are not needed
  • The PR has reviewed with UX and tested in light and dark mode, or there are no UX changes

@@ -44,7 +44,10 @@ export default {
update() {
this.value.setData('ssh-publickey', this.username);
this.value.setData('ssh-privatekey', this.password);
this.value.setData('known_hosts', this.knownHosts);
if (this.showKnownHosts) {
Copy link
Member Author

@torchiaf torchiaf Feb 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this, the known_hosts field will be visible only when editing a secret that already has known_hosts key in data, so not visible on creation.
The other solution is to enable it by default.

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

Successfully merging this pull request may close these issues.

Secrets: SSH Key: Unable to create SSH Key due to missing fields on Create SSH Key form
1 participant