22 Commits

Author SHA256 Message Date
ff582da4e2 Accepting request 1318215 from utilities
OBS-URL: https://build.opensuse.org/request/show/1318215
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sbctl?expand=0&rev=9
2025-11-18 14:33:23 +00:00
f08c042844 bsc#1251399, CVE-2025-47911 and bsc#1251609, CVE-2025-58190
OBS-URL: https://build.opensuse.org/package/show/utilities/sbctl?expand=0&rev=21
2025-11-17 10:25:53 +00:00
217ce0a4d2 Accepting request 1311046 from utilities
OBS-URL: https://build.opensuse.org/request/show/1311046
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sbctl?expand=0&rev=8
2025-10-13 13:35:52 +00:00
Jan Loeser
1637564abc - Update to version 0.18:
* logging: fixup new go vet warning
  * workflows: add cc for cross compile
  * workflow: add sudo to apt
  * workflow: add pcsclite to ci
  * workflow: try enable cgo
  * go.mod: update golang.org/x/ dependencies
  * fix: avoid adding bogus Country attribute to subject DNs
  * sbctl: only store file if we did actually sign the file
  * installkernel: add post install hook for Debian's traditional installkernel
  * CI: missing libpcsclite pkg
  * workflows: add missing depends and new pattern keyword
  * Add yubikey example for create keys to the README
  * Initial yubikey backend keytype support
  * verify: ensure we pass args in correct order

OBS-URL: https://build.opensuse.org/package/show/utilities/sbctl?expand=0&rev=19
2025-10-13 09:29:00 +00:00
c60bbc1c3c Accepting request 1302168 from utilities
- bsc#1248949 (CVE-2025-58058):
  Bump xz to 0.5.14

OBS-URL: https://build.opensuse.org/request/show/1302168
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sbctl?expand=0&rev=7
2025-09-01 15:18:43 +00:00
5c51d31a33 - bsc#1248949 (CVE-2025-58058):
Bump xz to 0.5.14

OBS-URL: https://build.opensuse.org/package/show/utilities/sbctl?expand=0&rev=17
2025-09-01 09:40:51 +00:00
dae1d4d9fa Accepting request 1274530 from utilities
OBS-URL: https://build.opensuse.org/request/show/1274530
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sbctl?expand=0&rev=6
2025-05-05 20:29:15 +00:00
Jan Loeser
07ab3bca73 - Update to version 0.17:
* Ensure we don't wrongly compare input/output files when signing
  * Added --json supprt to sbctl verify
  * Ensure sbctl setup with no arguments returns a helpful output
  * Import latest Microsoft keys for KEK and db databases
  * Ensure we print the path of the file when encountering an invalid PE file
  * Misc fixups in tests
  * Misc typo fixes in prints

OBS-URL: https://build.opensuse.org/package/show/utilities/sbctl?expand=0&rev=15
2025-05-05 11:38:27 +00:00
e4a2885070 Accepting request 1223291 from utilities
OBS-URL: https://build.opensuse.org/request/show/1223291
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sbctl?expand=0&rev=5
2024-11-11 12:46:49 +00:00
Jan Loeser
46227b9917 - Disable tests that fail due to gh/foxboron/sbctl#343
- Update to version 0.16:
  * Ensure sbctl reads --config even if /etc/sbctl/sbctl.conf is
    present
  * Fixed a bug where sbctl would abort if the TPM eventlog
    contains the same byte multiple times
  * Fixed a landlock bug where enroll-keys --export did not work
  * Fixed a bug where an ESP mounted to multiple paths would not be
    detected
  * Exporting keys without efivars present work again
  * sbctl sign will now use the saved output path if the signed
    file is enrolled
  * enroll-keys --append will now work without --force.
- Updates from version 0.15.4:
  * Fixed an issue where sign-all did not report a non-zero exit
    code when something failed
  * Fixed and issue where we couldn't write to a file with landlock
  * Fixed an issue where --json would print the human readable
    output and the json
  * Fixes landlock for UKI/bundles by disabling the sandbox feature
  * Some doc fixups that mentioned /usr/share/

OBS-URL: https://build.opensuse.org/package/show/utilities/sbctl?expand=0&rev=13
2024-11-11 07:48:00 +00:00
c8315ff856 Accepting request 1191164 from utilities
OBS-URL: https://build.opensuse.org/request/show/1191164
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sbctl?expand=0&rev=4
2024-08-02 15:27:24 +00:00
Jan Loeser
a2c36c2f28 Accepting request 1191021 from home:smolsheep:upgrades
- Update to version 0.15.3:
  * Fixed a mistake where the db_additions setting in sbctl.conf
    was not wired up to sbctl setup.
  * Relaxed the check for an existing install in sbctl setup form
    looking after /var/lib/sbctl to check for /var/lib/sbctl/keys.
  * Fixed a bug where dmi information was not read for quirk
    detection when landlock was enabled.
  * Fixed a bug where sbctl create-keys did not have access to
    /var/lib under landlock.
  * Fixed a bug where sbctl setup didn't have access to /usr/share.
- Added minimum go required version
- Update to version 0.15.2:
  * Fixed a bug where sbctl setup aborts early because
    /var/lib/sbctl already exists.
- Updates from version 0.15.1:
  * Fixed an issue where sbctl migrate did not work without
    --disable-landlock.
  * Fixed an issue where bundles.db would be written to files.json
    deleting list of files.
- Updates from version 0.15:
  See the release for full changes.
  https://github.com/Foxboron/sbctl/releases/tag/0.15
  * sbctl will try to sandbox all commands with landlock. Landlock
    is a unpriviledged sandbox, similar to OpenBSD pledge, that
    allows sbctl to declare the directories and files we are
    reading/writing a head. This feature is enabled by default and
    can be disabled by setting landlock: false in the new config
    file, or by passing --disable-landlock flag.
  * sbctl has moved from using /usr/share/secureboot to
    /var/lib/sbctl. The useage of /usr was mostly for legacy
    reasons but there wasn't any motivation to fix this until now.
    To help with the migration sbctl migrate has been implemented.
    It will move all the files from the old location to
    /var/lib/sbctl and rename files accordingly.
  * sbctl now support creation of TPM key files using
    go-tpm-keyfiles. These keys are mostly compatible with how
    other TPM2 TSS keyfiles are created. This key type can be used
    by passing on of several keytype flags to create-keys or
    rotate-keys, or by specifying the type in the new configuration
    file.

OBS-URL: https://build.opensuse.org/request/show/1191021
OBS-URL: https://build.opensuse.org/package/show/utilities/sbctl?expand=0&rev=11
2024-08-02 11:04:58 +00:00
ff6558cb77 Accepting request 1173965 from utilities
OBS-URL: https://build.opensuse.org/request/show/1173965
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sbctl?expand=0&rev=3
2024-05-15 19:26:10 +00:00
Jan Loeser
6346249e5c Accepting request 1173789 from home:smolsheep:upgrades
- Enable tests
- Fix bashism error in 91-sbctl.install by using bash shebang
- Service to use manual instead of deprecated disabled and pattern
  cleanup
- Update to version 0.14:
  New commands
  * export-enrolled-keys will export all enrolled keys on the
    system to a directory
  * list-enrolled-keys will list the enrolled keys on the system
  New Things
  * The test suite has now been rewritten to use the new vmtest
    library.
  Bugfixes
  * sign-all won't abort when it encounters a file it can't sign.
  * The kernel-install hook won't try to sign things if there are
    no signing keys available.
  * The kernel-install hook will now only remove things if they
    actually did exist on the system.
  * The mkinitcpio hook now only sign the built kernel/UKI instead
    of all the sbctl files.

OBS-URL: https://build.opensuse.org/request/show/1173789
OBS-URL: https://build.opensuse.org/package/show/utilities/sbctl?expand=0&rev=9
2024-05-14 11:33:33 +00:00
Jan Loeser
ec786e0a29 Accepting request 1153586 from home:jloeser:branches:utilities
Add maintainer to deb packages

OBS-URL: https://build.opensuse.org/request/show/1153586
OBS-URL: https://build.opensuse.org/package/show/utilities/sbctl?expand=0&rev=8
2024-03-01 07:32:36 +00:00
342b67822b Accepting request 1135886 from utilities
OBS-URL: https://build.opensuse.org/request/show/1135886
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sbctl?expand=0&rev=2
2024-01-03 11:27:17 +00:00
Jan Loeser
20da3ce21e Accepting request 1135228 from home:smolsheep:upgrades
- Update to version 0.13:
  * --export,-e and --database-path,-d now work properly and don't
    overwrite the create-keys variables internally
  * remove erronous dbx enrollment. Previous release implemented
    support for dbx that doesn't really work as expected. It
    would also fail to enroll keys for previously setup clients.
    Implementation has been removed and will be iterated upon at a
    later date.
  * make: fix github artifact upload
  * Change shebang
  * Ensure file signing hook is run when initrd is rebuilt
  * Fixed typo, removed mention enroll-keys enables Secure Boot
    automatically
  * Ignore Setup mode and immutable variables for export
  * Specify file origin + always print signing message
  * tests/utils/certs.go: drop keyUsage bitfield
  * update manpage docs
  * allow specifying keys and GUID paths
  * Update README.md
  * keys.go: drop the keyUsage bitfield
  * Check and return Open errs
  * Update documentation for custom dbx

OBS-URL: https://build.opensuse.org/request/show/1135228
OBS-URL: https://build.opensuse.org/package/show/utilities/sbctl?expand=0&rev=6
2023-12-31 15:41:12 +00:00
9d9bcd8ee5 Accepting request 1127877 from utilities
Add sbctl to Factory/Tumbleweed

OBS-URL: https://build.opensuse.org/request/show/1127877
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sbctl?expand=0&rev=1
2023-11-22 17:54:34 +00:00
Jan Loeser
460e6ecb96 Accepting request 1127869 from home:jloeser:branches:utilities
Add Copyright comment

OBS-URL: https://build.opensuse.org/request/show/1127869
OBS-URL: https://build.opensuse.org/package/show/utilities/sbctl?expand=0&rev=4
2023-11-21 09:47:47 +00:00
Jan Loeser
de4c399fa1 Accepting request 1119296 from home:smolsheep:upgrades
- Update to version 0.12:
  * sbctl bundle might be depreciated in the future.
  * sbctl now allows you to enroll custom certificates into KEK
    and db. 
  * sbctl now allows keys to be exported as EFI Signature Lists
    (esl) or EFI Authenticated Variables (auth), which are pre-signed.
  * sbctl can now enroll certificates found in dbxDefault,
    dbDefault, KEKDefault and PKDefault.
  * Before this release sbctl would enroll, reset and rotate the
    entire key hierarchy when requested. With this release several
    improvements have been made to have the ability to support
    partial key hierarchies. This can be used through the --partial
    flag in their respective commands.
  * add documentation for the extra flags of enroll/rotate/reset
  * feat: add option to remove specific certs from db instead of an entire reset
  * feat: add append option to enroll-keys
  * feat: force key flag
  * Add support for OEM dbx enrollment
  * feat(dbx): enroll/rotate/reset dbx keys
  * feat(rotate): enable partial rotation and providing different sources
  * feat(reset): enable partial resets of secureboot keys
  * feat(enroll-keys): add partial enrollment of keys
  * Implement full support for loading builtin firmware certificates
  * Add support for loading certificates from dbDefault

OBS-URL: https://build.opensuse.org/request/show/1119296
OBS-URL: https://build.opensuse.org/package/show/utilities/sbctl?expand=0&rev=3
2023-10-23 16:34:35 +00:00
Jan Loeser
f8fd068b55 Accepting request 1074719 from home:jloeser:branches:utilities
Use latest tag from repository

OBS-URL: https://build.opensuse.org/request/show/1074719
OBS-URL: https://build.opensuse.org/package/show/utilities/sbctl?expand=0&rev=2
2023-03-27 14:24:20 +00:00
63ec556d12 Accepting request 1074682 from home:jloeser:secureboot
I want to maintain sbctl in Factory and would like to use utilities as the devel/feeder project. sbctl intends to be a user-friendly secure boot key manager capable of setting up secure boot, offer key management capabilities, and keep track of files that needs to be signed in the boot chain.

OBS-URL: https://build.opensuse.org/request/show/1074682
OBS-URL: https://build.opensuse.org/package/show/utilities/sbctl?expand=0&rev=1
2023-03-27 13:07:30 +00:00