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

feat(file)!: snippets upload using SSH input stream #1085

Merged
merged 9 commits into from
Mar 3, 2024

Conversation

bpg
Copy link
Owner

@bpg bpg commented Mar 2, 2024

Contributor's Note

  • I have added / updated documentation in /docs for any user-facing features or additions.
  • I have added / updated templates in /example for any new or updated resources / data sources.
  • I have ran make example to verify that the change works as expected.

⚠ BREAKING CHANGES

The new upload implementation requires a new sudo permission. If you configured provider to use a non-root user account, please update your sudoers file (assuming terraform is the username):

  • remove line
    terraform ALL=(root) NOPASSWD: /usr/bin/mv /tmp/tfpve/* /var/lib/vz/*
  • add line
    terraform ALL=(root) NOPASSWD: /usr/bin/tee /var/lib/vz/*

Proof of Work

Acceptance tests pass on CI

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #1008
Closes #1070

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
@bpg bpg marked this pull request as draft March 2, 2024 22:48
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
@bpg bpg changed the title feat(file)!: safer snippets upload using SSH input stream feat(file)!: snippets upload using SSH input stream Mar 2, 2024
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
@bpg bpg marked this pull request as ready for review March 2, 2024 23:50
mergify[bot]
mergify bot previously approved these changes Mar 2, 2024
Copy link

@mergify mergify bot left a comment

Choose a reason for hiding this comment

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

🤖 LGTM! beep boop

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
…provider-proxmox into streaming-snippets-upload
Copy link

@mergify mergify bot left a comment

Choose a reason for hiding this comment

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

🤖 LGTM! beep boop

@bpg bpg merged commit 3195b3c into main Mar 3, 2024
8 of 11 checks passed
@bpg bpg deleted the streaming-snippets-upload branch March 3, 2024 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

snippets upload does not work on Windows Implement a safer snippet file transferring mechanism
1 participant