generated from ublue-os/udev-rules
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add signing files and keys * feat: Add packaging for Universal Blue signing files and keys * fix: update path in spec file * fix: move key to right directory --------- Co-authored-by: RJ Trujillo <[email protected]>
- Loading branch information
Showing
5 changed files
with
124 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{ | ||
"default": [ | ||
{ | ||
"type": "reject" | ||
} | ||
], | ||
"transports": { | ||
"docker": { | ||
"registry.access.redhat.com": [ | ||
{ | ||
"type": "signedBy", | ||
"keyType": "GPGKeys", | ||
"keyPath": "/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release" | ||
} | ||
], | ||
"registry.redhat.io": [ | ||
{ | ||
"type": "signedBy", | ||
"keyType": "GPGKeys", | ||
"keyPath": "/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release" | ||
} | ||
], | ||
"ghcr.io/ublue-os": [ | ||
{ | ||
"type": "sigstoreSigned", | ||
"keyPath": "/usr/etc/pki/containers/ublue-os.pub", | ||
"signedIdentity": { | ||
"type": "matchRepository" | ||
} | ||
} | ||
], | ||
"": [ | ||
{ | ||
"type": "insecureAcceptAnything" | ||
} | ||
] | ||
}, | ||
"docker-daemon": { | ||
"": [ | ||
{ | ||
"type": "insecureAcceptAnything" | ||
} | ||
] | ||
}, | ||
"atomic": { | ||
"": [ | ||
{ | ||
"type": "insecureAcceptAnything" | ||
} | ||
] | ||
}, | ||
"dir": { | ||
"": [ | ||
{ | ||
"type": "insecureAcceptAnything" | ||
} | ||
] | ||
}, | ||
"oci": { | ||
"": [ | ||
{ | ||
"type": "insecureAcceptAnything" | ||
} | ||
] | ||
}, | ||
"tarball": { | ||
"": [ | ||
{ | ||
"type": "insecureAcceptAnything" | ||
} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
docker: | ||
ghcr.io/ublue-os: | ||
use-sigstore-attachments: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-----BEGIN PUBLIC KEY----- | ||
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE7lh7fJMV4dBT2jT1XafixUJa7OVA | ||
cT+QFVD8IfIJIS/KBAc8hx1aslzkH3tfeM0cwyCLB7kOStZ4sh6RyFQD9w== | ||
-----END PUBLIC KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
Name: ublue-os-signing | ||
Packager: ublue-os | ||
Vendor: ublue-os | ||
Version: 0.1 | ||
Release: 1%{?dist} | ||
Summary: Signing files and keys for Universal Blue | ||
License: MIT | ||
URL: https://github.com/ublue-os/config | ||
|
||
BuildArch: noarch | ||
|
||
Source0: ublue-os-signing.tar.gz | ||
|
||
%global sub_name %{lua:t=string.gsub(rpm.expand("%{NAME}"), "^ublue%-os%-", ""); print(t)} | ||
|
||
%description | ||
Adds files and keys for signing Universal Blue images | ||
|
||
%prep | ||
%setup -q -c -T | ||
|
||
%build | ||
mkdir -p -m0755 %{buildroot}%{_datadir}/%{VENDOR} | ||
mkdir -p -m0755 %{buildroot}%{_exec_prefix}/etc/containers/registries.d | ||
mkdir -p -m0755 %{buildroot}%{_exec_prefix}/etc/pki | ||
|
||
tar xf %{SOURCE0} -C %{buildroot}%{_datadir}/%{VENDOR} --strip-components=1 | ||
tar xf %{SOURCE0} -C %{buildroot} --strip-components=2 | ||
|
||
%files | ||
%dir %attr(0755,root,root) %{_datadir}/%{VENDOR}/%{sub_name} | ||
%attr(0644,root,root) %{_datadir}/%{VENDOR}/%{sub_name}/%{_exec_prefix}/etc/containers/policy.json | ||
%attr(0644,root,root) %{_datadir}/%{VENDOR}/%{sub_name}/%{_exec_prefix}/etc/containers/registries.d/ublue-os.yaml | ||
%attr(0644,root,root) %{_datadir}/%{VENDOR}/%{sub_name}/%{_exec_prefix}/etc/pki/containers/ublue-os.pub | ||
%attr(0644,root,root) %{_exec_prefix}/etc/containers/policy.json | ||
%attr(0644,root,root) %{_exec_prefix}/etc/containers/registries.d/ublue-os.yaml | ||
%attr(0644,root,root) %{_exec_prefix}/etc/pki/containers/ublue-os.pub | ||
|
||
%changelog | ||
* Mon Jul 17 2023 RJ Trujillo <[email protected]> - 0.1 | ||
- Add package for signing files and keys |