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(custom-keys): roll out any bytes to the specificed hierarchy #239

Merged
merged 3 commits into from
Sep 6, 2023

Conversation

RiSKeD
Copy link
Contributor

@RiSKeD RiSKeD commented Aug 15, 2023

Use-Case: Testing that SecureBoot keys with a invalid signature or signing date must not be added to the efi.

Fabian Wienand added 2 commits August 16, 2023 11:23
Signed-off-by: Fabian Wienand <fabian.wienand@9elements.com>
Signed-off-by: Fabian Wienand <fabian.wienand@9elements.com>
@Cornelicorn
Copy link
Contributor

I might be missing something, but this is not really useful for general use of wanting to manage valid secureboot keys and should be possible using efivar(8), no?

@Foxboron
Copy link
Owner

We already have enroll-keys --custom, can we extend this instead of introducing a new command?

@RiSKeD
Copy link
Contributor Author

RiSKeD commented Aug 17, 2023

We already have enroll-keys --custom, can we extend this instead of introducing a new command?

Sure, I was not sure if that would be best as the command already has a bunch of different options, but I can incorporate the functionality into it 👍

@RiSKeD
Copy link
Contributor Author

RiSKeD commented Aug 17, 2023

I might be missing something, but this is not really useful for general use of wanting to manage valid secureboot keys and should be possible using efivar(8), no?

In general, I agree with you, but i would like to put one additional flag inside the enroll-keys command to roll out invalid/empty/... keys for testing purposes. The convenience of sbctl as a pure-go tool is beneficial for some environments.

Signed-off-by: Fabian Wienand <fabian.wienand@9elements.com>
@Foxboron
Copy link
Owner

Foxboron commented Sep 4, 2023

semi-forgot this in the middle of work and camp 🙃

Generally I don't mind adding specialized flags to sbctl. We can hide them by default or introduce an --expert command if it would make things easier for us.

@Foxboron
Copy link
Owner

Foxboron commented Sep 4, 2023

Generally, I think I should spend more time fixing the plumbing inside go-uefi so we can utilize the integration/end-to-end tests that I started working on. It would make it easier to introduce features like this and also have them testable.

https://github.com/Foxboron/sbctl/blob/master/cmd/sbctl/status_test.go

Otherwise, LGTM.

@Foxboron
Copy link
Owner

Foxboron commented Sep 6, 2023

Thanks!

@Foxboron Foxboron merged commit 21b6b3d into Foxboron:master Sep 6, 2023
2 checks passed
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.

None yet

3 participants