From 7b4ba890f4fbfeefd402aef6eefe8bd76bd377e657960c82f2537ecc7410afb3 Mon Sep 17 00:00:00 2001 From: Marcus Rueckert Date: Wed, 5 Mar 2025 10:44:23 +0000 Subject: [PATCH] update to 0.28.4 OBS-URL: https://build.opensuse.org/package/show/security/step-cli?expand=0&rev=18 --- .gitattributes | 23 ++ .gitignore | 1 + _service | 8 + add-missing-targets.patch | 24 ++ cli-0.28.0.tar.gz | 3 + cli-0.28.2.tar.gz | 3 + cli-0.28.3.tar.gz | 3 + cli-0.28.4.tar.gz | 3 + more-units.patch | 59 +++++ series | 2 + step-cli.changes | 506 ++++++++++++++++++++++++++++++++++++++ step-cli.spec | 144 +++++++++++ vendor.tar.xz | 3 + 13 files changed, 782 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 add-missing-targets.patch create mode 100644 cli-0.28.0.tar.gz create mode 100644 cli-0.28.2.tar.gz create mode 100644 cli-0.28.3.tar.gz create mode 100644 cli-0.28.4.tar.gz create mode 100644 more-units.patch create mode 100644 series create mode 100644 step-cli.changes create mode 100644 step-cli.spec create mode 100644 vendor.tar.xz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..fa8bb8e --- /dev/null +++ b/_service @@ -0,0 +1,8 @@ + + + + + cli-*.tar.gz + xz + + diff --git a/add-missing-targets.patch b/add-missing-targets.patch new file mode 100644 index 0000000..73cb03f --- /dev/null +++ b/add-missing-targets.patch @@ -0,0 +1,24 @@ +Index: cli-0.22.0/systemd/ssh-cert-renewer.service +=================================================================== +--- cli-0.22.0.orig/systemd/ssh-cert-renewer.service ++++ cli-0.22.0/systemd/ssh-cert-renewer.service +@@ -3,6 +3,7 @@ Description=Renew the local SSH host cer + After=network-online.target + Documentation=https://smallstep.com/docs/step-ca/certificate-authority-server-production + StartLimitIntervalSec=0 ++PartOf=cert-renewer.target + + [Service] + Type=oneshot +Index: cli-0.22.0/systemd/ssh-cert-renewer.timer +=================================================================== +--- cli-0.22.0.orig/systemd/ssh-cert-renewer.timer ++++ cli-0.22.0/systemd/ssh-cert-renewer.timer +@@ -1,6 +1,7 @@ + [Unit] + Description=Timer to renew the local SSH host certificate + Documentation=https://smallstep.com/docs/step-ca/certificate-authority-server-production ++PartOf=cert-renewer.target + + [Timer] + Persistent=true diff --git a/cli-0.28.0.tar.gz b/cli-0.28.0.tar.gz new file mode 100644 index 0000000..6da7e02 --- /dev/null +++ b/cli-0.28.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d6b527da7509af013b8dfff6a72d12950cf557b3b896ca38b8a5802d26c6a09b +size 1649298 diff --git a/cli-0.28.2.tar.gz b/cli-0.28.2.tar.gz new file mode 100644 index 0000000..169db60 --- /dev/null +++ b/cli-0.28.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f5de9e11b21ec346b2109afcca43dfccf2d0dcd48f6f626b43e559d72d79535a +size 1649519 diff --git a/cli-0.28.3.tar.gz b/cli-0.28.3.tar.gz new file mode 100644 index 0000000..bfb7c93 --- /dev/null +++ b/cli-0.28.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aef846bcf86f1994a274837b1c69cdf21c6e6f230eccaa1d1d8473486480e0fc +size 1649479 diff --git a/cli-0.28.4.tar.gz b/cli-0.28.4.tar.gz new file mode 100644 index 0000000..b6ed30f --- /dev/null +++ b/cli-0.28.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3e0e7c56616465da0e19106cd71a3dac6bd0a113082848dcaf3c28ae444a1f9e +size 1650313 diff --git a/more-units.patch b/more-units.patch new file mode 100644 index 0000000..d9450af --- /dev/null +++ b/more-units.patch @@ -0,0 +1,59 @@ +Index: cli-0.22.0/systemd/ssh-cert-renewer@.service +=================================================================== +--- /dev/null ++++ cli-0.22.0/systemd/ssh-cert-renewer@.service +@@ -0,0 +1,30 @@ ++[Unit] ++Description=Smallstep SSH Certificate Renewal for the %I host certificate ++After=network-online.target ++Documentation=https://smallstep.com/docs/step-ca/certificate-authority-server-production ++StartLimitIntervalSec=0 ++PartOf=cert-renewer.target ++ ++[Service] ++Type=oneshot ++User=root ++ ++Environment=STEPPATH=/etc/step \ ++ CERT_LOCATION=/etc/ssh/ssh_host_%i_key-cert.pub \ ++ KEY_LOCATION=/etc/ssh/ssh_host_%i_key ++ ++; ExecCondition checks if the certificate is ready for renewal, ++; based on the exit status of the command. ++; (In systemd <242, you can use ExecStartPre= here.) ++ExecCondition=/usr/bin/step ssh needs-renewal ${CERT_LOCATION} ++ ++; ExecStart renews the certificate, if ExecStartPre was successful. ++ExecStart=/usr/bin/step ssh renew --force ${CERT_LOCATION} ${KEY_LOCATION} ++ ++; Try to reload or restart the systemd service that relies on this cert-renewer ++; If the relying service doesn't exist, forge ahead. ++; (In systemd <229, use `reload-or-try-restart` instead of `try-reload-or-restart`) ++ExecStartPost=/usr/bin/env sh -c "! systemctl --quiet is-enabled sshd.service || systemctl try-reload-or-restart sshd" ++ ++[Install] ++WantedBy=multi-user.target +Index: cli-0.22.0/systemd/ssh-cert-renewer@.timer +=================================================================== +--- /dev/null ++++ cli-0.22.0/systemd/ssh-cert-renewer@.timer +@@ -0,0 +1,19 @@ ++[Unit] ++Description=Timer for Smallstep SSH Certificate Renewal for the %I host certificate ++Documentation=https://smallstep.com/docs/step-ca/certificate-authority-server-production ++PartOf=cert-renewer.target ++ ++[Timer] ++Persistent=true ++ ++; Run the timer unit every 5 minutes. ++OnCalendar=*:1/5 ++ ++; Always run the timer on time. ++AccuracySec=1us ++ ++; Add jitter to prevent a "thundering hurd" of simultaneous certificate renewals. ++RandomizedDelaySec=5m ++ ++[Install] ++WantedBy=timers.target diff --git a/series b/series new file mode 100644 index 0000000..2cc38e4 --- /dev/null +++ b/series @@ -0,0 +1,2 @@ +add-missing-targets.patch +more-units.patch diff --git a/step-cli.changes b/step-cli.changes new file mode 100644 index 0000000..cca228f --- /dev/null +++ b/step-cli.changes @@ -0,0 +1,506 @@ +------------------------------------------------------------------- +Wed Mar 5 10:28:16 UTC 2025 - Johannes Kastl + +- update to 0.28.4: + https://github.com/smallstep/cli/releases/tag/v0.28.4 + * Added + - Add the --set and --set-file flags to the step ca token + command, allowing the user to set keys in the "user" claim in + the resulting JWT. (#1375) + - Support for downloading additional default settings when + running 'step ssh config' (#1377) 'min-password-length' and + 'provisioner' + +------------------------------------------------------------------- +Thu Feb 20 18:19:36 UTC 2025 - Johannes Kastl + +- update to 0.28.3: + https://github.com/smallstep/cli/releases/tag/v0.28.3 + +------------------------------------------------------------------- +Wed Nov 20 22:59:35 UTC 2024 - Marcus Rueckert + +- update to 0.28.2 + https://github.com/smallstep/cli/releases/tag/v0.28.2 + +------------------------------------------------------------------- +Wed Nov 20 09:12:42 UTC 2024 - Johannes Kastl + +- use download_files service to download the tarball + +------------------------------------------------------------------- +Wed Nov 20 08:40:45 UTC 2024 - Marcus Rueckert + +- update to 0.28.1 + https://github.com/smallstep/cli/releases/tag/v0.28.1 + +------------------------------------------------------------------- +Wed Oct 30 10:31:31 UTC 2024 - Marcus Rueckert + +- update to 0.28.0 + https://github.com/smallstep/cli/releases/tag/v0.28.0 + +------------------------------------------------------------------- +Sat Oct 26 20:55:45 UTC 2024 - Marcus Rueckert + +- add back the service file for vendoring modules + +------------------------------------------------------------------- +Thu Oct 17 09:19:58 UTC 2024 - Marcus Rueckert + +- update to 0.27.5 + https://github.com/smallstep/cli/releases/tag/v0.27.5 + +------------------------------------------------------------------- +Fri Sep 13 17:51:23 UTC 2024 - Marcus Rueckert + +- update to 0.27.4 + https://github.com/smallstep/cli/releases/tag/v0.27.4 + +------------------------------------------------------------------- +Thu Jul 18 21:47:19 UTC 2024 - Marcus Rueckert + +- update to 0.27.2 + https://github.com/smallstep/cli/releases/tag/v0.27.2 + +------------------------------------------------------------------- +Fri Jul 12 10:34:15 UTC 2024 - Marcus Rueckert + +- update to 0.27.1 + https://github.com/smallstep/cli/releases/tag/v0.27.1 + https://github.com/smallstep/cli/releases/tag/v0.27.0 + +------------------------------------------------------------------- +Thu Jun 13 18:28:13 UTC 2024 - Marcus Rueckert + +- update to 0.26.2 + https://github.com/smallstep/cli/releases/tag/v0.26.2 + +------------------------------------------------------------------- +Tue Apr 23 18:26:50 UTC 2024 - Marcus Rueckert + +- update to 0.26.1 + https://github.com/smallstep/cli/releases/tag/v0.26.1 + +------------------------------------------------------------------- +Fri Mar 29 18:02:45 UTC 2024 - Marcus Rueckert + +- update to 0.26.0 + https://github.com/smallstep/cli/releases/tag/v0.26.0 + +------------------------------------------------------------------- +Fri Jan 19 23:36:18 UTC 2024 - Marcus Rueckert + +- update to 0.25.2 + https://github.com/smallstep/cli/releases/tag/v0.25.2 + +------------------------------------------------------------------- +Wed Nov 29 12:27:56 UTC 2023 - Marcus Rueckert + +- update to 0.25.1 + https://github.com/smallstep/cli/releases/tag/v0.25.1 + +------------------------------------------------------------------- +Wed Sep 27 21:16:37 UTC 2023 - Marcus Rueckert + +- update to 0.25.0 + https://github.com/smallstep/cli/releases/tag/v0.25.0 + +------------------------------------------------------------------- +Thu May 11 23:07:50 UTC 2023 - Marcus Rueckert + +- update to 0.24.4 + https://github.com/smallstep/cli/releases/tag/v0.24.4 + +------------------------------------------------------------------- +Mon Apr 17 09:47:37 UTC 2023 - Marcus Rueckert + +- update to 0.24.3 + https://github.com/smallstep/cli/releases/tag/v0.24.3 + +------------------------------------------------------------------- +Fri Apr 14 20:04:25 UTC 2023 - Marcus Rueckert + +- update to 0.24.2 + https://github.com/smallstep/cli/releases/tag/v0.24.2 + +------------------------------------------------------------------- +Fri Apr 14 11:58:43 UTC 2023 - Marcus Rueckert + +- update to 0.24.1 + https://github.com/smallstep/cli/releases/tag/v0.24.1 + https://github.com/smallstep/cli/releases/tag/v0.24.0 + +------------------------------------------------------------------- +Thu Apr 6 10:14:59 UTC 2023 - Marcus Rueckert + +- bump requires for go as 1.17 is nolonger sufficient + +------------------------------------------------------------------- +Sat Mar 11 11:15:52 UTC 2023 - Marcus Rueckert + +- update to 0.23.4 + https://github.com/smallstep/cli/releases/tag/v0.23.4 + +------------------------------------------------------------------- +Wed Mar 1 22:36:44 UTC 2023 - Marcus Rueckert + +- update to 0.23.3 + https://github.com/smallstep/cli/releases/tag/v0.23.3 + +------------------------------------------------------------------- +Tue Feb 14 15:33:13 UTC 2023 - Marcus Rueckert + +- move salt related tools into its own package + +------------------------------------------------------------------- +Mon Feb 13 12:20:29 UTC 2023 - Marcus Rueckert + +- Added step-ssl-merge-certs-for-salt helper script + +------------------------------------------------------------------- +Tue Feb 7 00:55:09 UTC 2023 - Marcus Rueckert + +- update to 0.23.2 + https://github.com/smallstep/cli/releases/tag/v0.23.2 + +------------------------------------------------------------------- +Mon Jan 23 11:13:11 UTC 2023 - Marcus Rueckert + +- make our helper scripts expire certs after 14 days + TODO: this should be configurable + +------------------------------------------------------------------- +Wed Jan 11 00:39:24 UTC 2023 - Marcus Rueckert + +- update to 0.23.1 + https://github.com/smallstep/cli/releases/tag/v0.23.1 + +------------------------------------------------------------------- +Tue Dec 13 13:35:52 UTC 2022 - Marcus Rueckert + +- Add zsh as requires to the completion package + +------------------------------------------------------------------- +Wed Nov 30 16:09:16 UTC 2022 - Marcus Rueckert + +- Add 2 wrappers to help salt with deciding if certs need renewal + +------------------------------------------------------------------- +Sat Nov 12 02:56:49 UTC 2022 - Marcus Rueckert + +- update to 0.23.0 + https://github.com/smallstep/cli/releases/tag/v0.23.0 + +------------------------------------------------------------------- +Fri Aug 26 22:46:01 UTC 2022 - Marcus Rueckert + +- update to 0.22.0 + https://github.com/smallstep/cli/releases/tag/v0.22.0 +- drop merged chunks from more-units.patch +- added add-missing-targets.patch: + ssh service had no target + +------------------------------------------------------------------- +Thu Jul 7 10:49:00 UTC 2022 - Marcus Rueckert + +- update to 0.21.0 + https://github.com/smallstep/cli/releases/tag/v0.21.0 + +------------------------------------------------------------------- +Fri May 27 12:42:42 UTC 2022 - Marcus Rueckert + +- update to 0.20.0 + https://github.com/smallstep/cli/releases/tag/v0.20.0 + +------------------------------------------------------------------- +Thu Apr 21 10:23:27 UTC 2022 - Marcus Rueckert + +- update to 0.19.0 + https://github.com/smallstep/cli/releases/tag/v0.19.0 + +------------------------------------------------------------------- +Thu Mar 24 19:17:43 UTC 2022 - Marcus Rueckert + +- Adds more-units.patch: + - Add unit files for renewing ssh certificates + - Add target files for both instantiated services + +------------------------------------------------------------------- +Wed Mar 23 00:26:13 UTC 2022 - Marcus Rueckert + +- we also need the /etc/step/config/ directory + +------------------------------------------------------------------- +Thu Mar 3 00:53:31 UTC 2022 - Marcus Rueckert + +- also install the renewer service +- replace packageand with the newer (pkg1 and pkg2) syntax + +------------------------------------------------------------------- +Wed Mar 2 00:25:37 UTC 2022 - Marcus Rueckert + +- update to 0.18.2 + https://github.com/smallstep/cli/releases/tag/v0.18.2 + +------------------------------------------------------------------- +Fri Feb 4 01:39:05 UTC 2022 - Marcus Rueckert + +- update to 0.18.1 + https://github.com/smallstep/cli/releases/tag/v0.18.1 + +------------------------------------------------------------------- +Thu Nov 18 10:07:42 UTC 2021 - Marcus Rueckert + +- update to 0.18.0 + https://github.com/smallstep/cli/releases/tag/v0.18.0 + +------------------------------------------------------------------- +Thu Oct 21 12:39:02 UTC 2021 - Marcus Rueckert + +- update to 0.17.7 + https://github.com/smallstep/cli/releases/tag/v0.17.7 + +------------------------------------------------------------------- +Fri Oct 1 18:08:18 UTC 2021 - Marcus Rueckert + +- update to 0.17.6 + https://github.com/smallstep/cli/releases/tag/v0.17.6 + +------------------------------------------------------------------- +Wed Sep 29 10:51:44 UTC 2021 - Marcus Rueckert + +- update to 0.17.5 + https://github.com/smallstep/cli/releases/tag/v0.17.5 + +------------------------------------------------------------------- +Sat Sep 25 00:57:30 UTC 2021 - Marcus Rueckert + +- update to 0.17.4 + https://github.com/smallstep/cli/releases/tag/v0.17.4 + +------------------------------------------------------------------- +Sat Sep 25 00:54:38 UTC 2021 - Marcus Rueckert + +- update to 0.17.3 + https://github.com/smallstep/cli/releases/tag/v0.17.3 + +------------------------------------------------------------------- +Tue Aug 31 09:15:25 UTC 2021 - Marcus Rueckert + +- update to 0.17.2 + https://github.com/smallstep/cli/releases/tag/v0.17.2 + +------------------------------------------------------------------- +Fri Aug 27 08:04:12 UTC 2021 - Marcus Rueckert + +- update to 0.17.1 + https://github.com/smallstep/cli/releases/tag/v0.17.1 + +------------------------------------------------------------------- +Thu Aug 26 12:25:22 UTC 2021 - Marcus Rueckert + +- update to 0.17.0 + https://github.com/smallstep/cli/releases/tag/v0.17.0 + +------------------------------------------------------------------- +Mon Jul 12 11:06:21 UTC 2021 - Marcus Rueckert + +- update to 0.16.1 + https://github.com/smallstep/cli/releases/tag/v0.16.1 + +------------------------------------------------------------------- +Tue Jul 6 22:20:32 UTC 2021 - Marcus Rueckert + +- update to 0.15.17 + https://github.com/smallstep/cli/releases/tag/v0.15.17 + +------------------------------------------------------------------- +Fri Apr 16 06:03:42 UTC 2021 - Marcus Rueckert + +- update to 0.15.16 + https://github.com/smallstep/cli/releases/tag/v0.15.16 + +------------------------------------------------------------------- +Thu Apr 15 18:25:38 UTC 2021 - Marcus Rueckert + +- update to 0.15.15 + https://github.com/smallstep/cli/releases/tag/v0.15.15 + +------------------------------------------------------------------- +Thu Apr 15 00:02:57 UTC 2021 - Marcus Rueckert + +- zsh-completion should also require the base package. bash + completion already did. + +------------------------------------------------------------------- +Sat Mar 27 01:55:14 UTC 2021 - Marcus Rueckert + +- update to 0.15.14 + https://github.com/smallstep/cli/releases/tag/v0.15.14 + +------------------------------------------------------------------- +Fri Mar 12 23:39:25 UTC 2021 - Marcus Rueckert + +- update to 0.15.13 + https://github.com/smallstep/cli/releases/tag/v0.15.9 + https://github.com/smallstep/cli/releases/tag/v0.15.10 + https://github.com/smallstep/cli/releases/tag/v0.15.11 + https://github.com/smallstep/cli/releases/tag/v0.15.12 + https://github.com/smallstep/cli/releases/tag/v0.15.13 + +------------------------------------------------------------------- +Tue Mar 9 23:57:52 UTC 2021 - Marcus Rueckert + +- update to 0.15.8 + https://github.com/smallstep/cli/releases/tag/v0.15.8 + +------------------------------------------------------------------- +Fri Feb 19 16:50:40 UTC 2021 - Marcus Rueckert + +- update to 0.15.7 + https://github.com/smallstep/cli/releases/tag/v0.15.3 + https://github.com/smallstep/cli/releases/tag/v0.15.4 + https://github.com/smallstep/cli/releases/tag/v0.15.5 + https://github.com/smallstep/cli/releases/tag/v0.15.6 + https://github.com/smallstep/cli/releases/tag/v0.15.7 + +------------------------------------------------------------------- +Sun Nov 29 01:19:58 UTC 2020 - Marcus Rueckert + +- switching to go 1.15 + +------------------------------------------------------------------- +Mon Aug 31 22:11:36 UTC 2020 - Marcus Rueckert + +- update to 0.15.2 + https://github.com/smallstep/cli/releases/tag/v0.15.2 + +------------------------------------------------------------------- +Mon Aug 31 21:28:15 UTC 2020 - Marcus Rueckert + +- update to 0.15.1 + https://github.com/smallstep/cli/releases/tag/v0.15.1 + +------------------------------------------------------------------- +Mon Aug 17 14:58:16 UTC 2020 - Marcus Rueckert + +- update to 0.15.0 + https://github.com/smallstep/cli/releases/tag/v0.15.0 + +------------------------------------------------------------------- +Thu Jul 2 21:10:23 UTC 2020 - Marcus Rueckert + +- update to 0.14.6 + https://github.com/smallstep/cli/releases/tag/v0.14.6 + +------------------------------------------------------------------- +Thu Jul 2 15:55:20 UTC 2020 - Marcus Rueckert + +- update to 0.14.5 + https://github.com/smallstep/cli/releases/tag/v0.14.5 + +------------------------------------------------------------------- +Tue May 19 09:35:23 UTC 2020 - Marcus Rueckert + +- update to 0.14.4 + https://github.com/smallstep/cli/releases/tag/v0.14.4 + +------------------------------------------------------------------- +Mon May 4 23:06:05 UTC 2020 - Marcus Rueckert + +- update to 0.14.4~rc1 + https://github.com/smallstep/cli/releases/tag/v0.14.4-rc.1 + +------------------------------------------------------------------- +Fri May 1 18:10:31 UTC 2020 - Marcus Rueckert + +- update to 0.14.3 + https://github.com/smallstep/cli/releases/tag/v0.14.3 + +------------------------------------------------------------------- +Wed Apr 22 00:33:10 UTC 2020 - Marcus Rueckert + +- update to 0.14.3~rc1 + https://github.com/smallstep/cli/releases/tag/v0.14.3-rc.1 + +------------------------------------------------------------------- +Fri Apr 10 20:19:14 UTC 2020 - Marcus Rueckert + +- we no longer need golang-github-golang-dep + +------------------------------------------------------------------- +Fri Apr 10 10:59:19 UTC 2020 - Marcus Rueckert + +- update to 0.14.2 + https://github.com/smallstep/cli/releases/tag/v0.14.1 + https://github.com/smallstep/cli/releases/tag/v0.14.2 + +------------------------------------------------------------------- +Thu Apr 9 17:31:35 UTC 2020 - Marcus Rueckert + +- update to 0.14.0 + https://github.com/smallstep/cli/releases/tag/v0.14.0 + +------------------------------------------------------------------- +Tue Apr 7 22:21:15 UTC 2020 - Marcus Rueckert + +- update to 0.14.0~rc5 + https://github.com/smallstep/cli/releases/tag/v0.14.0-rc.5 + +------------------------------------------------------------------- +Thu Mar 19 14:22:57 UTC 2020 - Marcus Rueckert + +- update to 0.14.0~rc4 + https://github.com/smallstep/cli/releases/tag/v0.14.0-rc.4 + +------------------------------------------------------------------- +Mon Mar 9 18:50:26 UTC 2020 - Martin Hauke + +- Supplement against bash-completion, not bash + +------------------------------------------------------------------- +Thu Feb 27 02:48:53 UTC 2020 - Marcus Rueckert + +- allow go 1.14 + +------------------------------------------------------------------- +Sat Feb 8 20:29:03 UTC 2020 - Marcus Rueckert + +- update to 0.14.0~rc3 + https://github.com/smallstep/cli/releases/tag/v0.14.0-rc.2 + https://github.com/smallstep/cli/releases/tag/v0.14.0-rc.3 + +------------------------------------------------------------------- +Sun Nov 17 09:38:29 UTC 2019 - Marcus Rueckert + +- no longer rename the binary but conflict on the package which + provides the other /usr/bin/step + +------------------------------------------------------------------- +Fri Nov 15 20:31:22 UTC 2019 - Martin Hauke + +- Add subpackages for bash- and zsh-completion +- Correct license (BSD-3-Clause -> Apache-2.0) + +------------------------------------------------------------------- +Fri Nov 1 00:10:30 UTC 2019 - Marcus Rueckert + +- update to 0.14.0~rc1 + https://github.com/smallstep/cli/releases/tag/v0.14.0-rc.1 + +------------------------------------------------------------------- +Mon Sep 30 23:28:26 UTC 2019 - Marcus Rueckert + +- update to 0.13.3 + https://github.com/smallstep/cli/releases/tag/v0.13.3 + +------------------------------------------------------------------- +Mon Sep 30 17:57:05 UTC 2019 - Marcus Rueckert + +- fix version string + +------------------------------------------------------------------- +Mon Sep 30 16:29:10 UTC 2019 - Marcus Rueckert + +- initial package diff --git a/step-cli.spec b/step-cli.spec new file mode 100644 index 0000000..255c479 --- /dev/null +++ b/step-cli.spec @@ -0,0 +1,144 @@ +# +# spec file for package step-cli +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define configdir %{_sysconfdir}/step +%define certsdir %{_sysconfdir}/step/certs +%define services cert-renewer.target ssh-cert-renewer.timer ssh-cert-renewer@.timer cert-renewer@.timer ssh-cert-renewer.service ssh-cert-renewer@.service cert-renewer@.service +%define pkg_name cli +%define pkg_version %{version} +Name: step-cli +Version: 0.28.4 +Release: 0 +Summary: Zero trust swiss army knife for working with X509, OAuth, JWT, OATH OTP, etc +License: Apache-2.0 +URL: https://smallstep.com/cli +# https://github.com/smallstep/cli/releases +Source: https://github.com/smallstep/cli/archive/refs/tags/v%{pkg_version}.tar.gz#/%{pkg_name}-%{pkg_version}.tar.gz +Source1: vendor.tar.xz +Source2: series +Patch0: more-units.patch +Patch1: add-missing-targets.patch +BuildRequires: fish +BuildRequires: golang-packaging +BuildRequires: pkgconfig +BuildRequires: zsh +BuildRequires: golang(API) >= 1.23.6 +BuildRequires: pkgconfig(bash-completion) +BuildRequires: pkgconfig(systemd) +Conflicts: step +%{?systemd_ordering} + +%description +A zero trust swiss army knife for working with X509, OAuth, JWT, OATH OTP, etc. + +%package bash-completion +Summary: Bash Completion for %{name} +Requires: %{name} = %{version} +Requires: bash-completion +Supplements: (%{name} and bash-completion) +BuildArch: noarch + +%description bash-completion +Bash completion script for %{name}. + +%package fish-completion +Summary: Fish completion for %{name} +Requires: %{name} = %{version} +Requires: fish +Supplements: (%{name} and fish) +BuildArch: noarch + +%description fish-completion +fish shell completions for %{name}. + +%package zsh-completion +Summary: ZSH completion for %{name} +Requires: %{name} = %{version} +Requires: zsh +Supplements: (%{name} and zsh) +BuildArch: noarch + +%description zsh-completion +zsh shell completions for %{name}. + +%prep +%autosetup -p1 -n %{pkg_name}-%{pkg_version} -a 1 + +%build +DATE_FMT="+%%Y-%%m-%%dT%%H:%%M:%%SZ" +BUILD_DATE=$(date -u -d "@${SOURCE_DATE_EPOCH}" "${DATE_FMT}" 2>/dev/null || date -u -r "${SOURCE_DATE_EPOCH}" "${DATE_FMT}" 2>/dev/null || date -u "${DATE_FMT}") +go build -buildmode=pie -mod=vendor -ldflags="-w -X 'main.Version=%{version}' -X 'main.BuildTime=${BUILD_DATE}'" ./cmd/... +for shell in bash zsh fish ; do +./step completion ${shell} > autocomplete/${shell}_autocomplete +done + +%install +install -D -m 0755 step %{buildroot}%{_bindir}/step +# shell completions +install -D -m 0644 autocomplete/bash_autocomplete %{buildroot}%{_datadir}/bash-completion/completions/%{name} +install -D -m 0644 autocomplete/zsh_autocomplete %{buildroot}%{_sysconfdir}/zsh_completion.d/%{name} +install -D -m 0644 autocomplete/fish_autocomplete %{buildroot}%{_datadir}/fish/vendor_completions.d/%{name}.fish + +for unit in %{services} ; do +install -D -m 0644 systemd/${unit} %{buildroot}%{_unitdir}/${unit} +done + +install -D -d -m 0711 %{buildroot}%{configdir}/{certs,config} + +%check +./step --version | grep %{version} + +%pre +%service_add_pre %{services} + +%post +%service_add_post %{services} + +%preun +%service_del_preun %{services} + +%postun +%service_del_postun %{services} + +%files +%doc README.md +%license LICENSE +%{_bindir}/step* +%{_unitdir}/ssh-cert-renewer.service +%{_unitdir}/ssh-cert-renewer.timer +%{_unitdir}/ssh-cert-renewer@.service +%{_unitdir}/ssh-cert-renewer@.timer +%{_unitdir}/cert-renewer@.service +%{_unitdir}/cert-renewer@.timer +%{_unitdir}/cert-renewer.target +%config(noreplace) %attr(-,root,root) %{configdir} +%config(noreplace) %attr(640,root,root) %ghost %{configdir}/config/defaults.json + +%files bash-completion +%license LICENSE +%{_datadir}/bash-completion/completions/%{name} + +%files zsh-completion +%license LICENSE +%config %{_sysconfdir}/zsh_completion.d/%{name} + +%files fish-completion +%license LICENSE +%{_datadir}/fish/vendor_completions.d/%{name}.fish + +%changelog diff --git a/vendor.tar.xz b/vendor.tar.xz new file mode 100644 index 0000000..da689a1 --- /dev/null +++ b/vendor.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:666832f1dcaf9ce2dba450706f5ed026c7739a15719572016c961f270a09c252 +size 5050072