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

Show error if there's no secret to encode #1580

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alemorcuq
Copy link
Collaborator

Description of the change
Kubeseal will throw an error when trying to seal no secrets. This will happen when the file is empty or invalid, and the error suggests the user to check the file encoding as this seems to be a common issue especially in some versions of Windows #1410 #1560

Benefits
Give feedback to the user to help debugging a common issue

Possible drawbacks
Kubeseal will now throw an error where it previously just silently succeeded with no output

Applicable issues

Signed-off-by: Alejandro Moreno <alemorcuq@gmail.com>
Copy link
Contributor

github-actions bot commented Sep 4, 2024

This Pull Request has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thank you for your contribution.

@github-actions github-actions bot added the Stale label Sep 4, 2024
@alemorcuq
Copy link
Collaborator Author

Not stale

@github-actions github-actions bot removed the Stale label Sep 8, 2024
Copy link
Member

@agarcia-oss agarcia-oss left a comment

Choose a reason for hiding this comment

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

A test case covering this particular corner case will be much appreciated here, thanks!

@agarcia-oss agarcia-oss added enhancement backlog Issues/PRs that will be included in the project roadmap labels Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Issues/PRs that will be included in the project roadmap enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kubeseal is creating an empty file kubeseal with Secret input from -f fails silently
2 participants