From 9d577f8a7254e079d887560761eafd13430295c3bea1a16bb3287e3cbd28b267 Mon Sep 17 00:00:00 2001 From: Richard Brown Date: Mon, 14 Feb 2022 13:29:14 +0000 Subject: [PATCH] Accepting request 954038 from home:ojkastl_buildservice:Branch_devel_kubic new package teleport: SSH and kubernetes access and lots of other things (not sure if that fits into devel:kubic?) OBS-URL: https://build.opensuse.org/request/show/954038 OBS-URL: https://build.opensuse.org/package/show/devel:kubic/teleport?expand=0&rev=1 --- .gitattributes | 23 ++++++++ .gitignore | 1 + _service | 22 ++++++++ _servicedata | 4 ++ teleport-6.2.28.tar.gz | 3 ++ teleport.changes | 9 ++++ teleport.service | 15 ++++++ teleport.spec | 118 +++++++++++++++++++++++++++++++++++++++++ teleport.yaml | 35 ++++++++++++ vendor.tar.gz | 3 ++ 10 files changed, 233 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _servicedata create mode 100644 teleport-6.2.28.tar.gz create mode 100644 teleport.changes create mode 100644 teleport.service create mode 100644 teleport.spec create mode 100644 teleport.yaml create mode 100644 vendor.tar.gz 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..f341aff --- /dev/null +++ b/_service @@ -0,0 +1,22 @@ + + + https://github.com/gravitational/teleport + git + disable + .git + v6.2.28 + @PARENT_TAG@ + enable + v(.*) + + + teleport + + + *.tar + gz + + + teleport-6.2.28.tar.gz + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..27e7841 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/gravitational/teleport + aecb32b912e7c123a7750c40b125af75689ffe61 \ No newline at end of file diff --git a/teleport-6.2.28.tar.gz b/teleport-6.2.28.tar.gz new file mode 100644 index 0000000..5843cc7 --- /dev/null +++ b/teleport-6.2.28.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8b471edc086fb950e8812661a4e84879f514f9b02c5a3200626a1863b74d567d +size 52181315 diff --git a/teleport.changes b/teleport.changes new file mode 100644 index 0000000..0aa87a9 --- /dev/null +++ b/teleport.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Sat Feb 12 20:48:45 UTC 2022 - Johannes Kastl + +- split up into three packages: teleport aka server/daemon, teleport-tctl and teleport-tsh + +------------------------------------------------------------------- +Sat Feb 12 08:10:06 UTC 2022 - Johannes Kastl + +- new package teleport: Teleport is an identity-aware, multi-protocol access proxy which understands SSH, HTTPS, RDP, Kubernetes API, MySQL, MongoDB and PostgreSQL wire protocols. diff --git a/teleport.service b/teleport.service new file mode 100644 index 0000000..3e8fc79 --- /dev/null +++ b/teleport.service @@ -0,0 +1,15 @@ +[Unit] +Description=Teleport SSH Service +After=network.target + +[Service] +Type=simple +Restart=on-failure +EnvironmentFile=-/etc/default/teleport +ExecStart=/usr/sbin/teleport start --pid-file=/run/teleport.pid +ExecReload=/bin/kill -HUP $MAINPID +PIDFile=/run/teleport.pid +LimitNOFILE=8192 + +[Install] +WantedBy=multi-user.target diff --git a/teleport.spec b/teleport.spec new file mode 100644 index 0000000..ece8e38 --- /dev/null +++ b/teleport.spec @@ -0,0 +1,118 @@ +# +# spec file for package teleport +# +# Copyright (c) 2022 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 __arch_install_post export NO_BRP_STRIP_DEBUG=true + +Name: teleport +Version: 6.2.28 +Release: 0 +Summary: Identity-aware, multi-protocol access proxy +License: Apache-2.0 +URL: https://github.com/gravitational/teleport +Source: %{name}-%{version}.tar.gz +Source1: vendor.tar.gz +Source2: teleport.service +Source3: teleport.yaml +BuildRequires: go >= 1.17 +BuildRequires: systemd-rpm-macros +Requires: teleport-tctl + +%description +Teleport is the easiest, most secure way to access all your infrastructure. Teleport is an identity-aware, multi-protocol access proxy which understands SSH, HTTPS, RDP, Kubernetes API, MySQL, MongoDB and PostgreSQL wire protocols. + +On the server-side, Teleport is a single binary which enables convenient secure access to behind-NAT resources such as: +* SSH nodes - SSH works in browsers too! +* Kubernetes clusters +* PostgreSQL, MongoDB, CockroachDB and MySQL databases +* Internal Web apps +* Windows Hosts +* Networked servers + +%package -n teleport-tctl +Summary: CLI tool for managing a teleport server +License: Apache-2.0 + +%description -n teleport-tctl +An administrative tool that can configure Teleport Auth Service. + +%package -n teleport-tsh +Summary: CLI tool for logging into nodes via Teleport SSH +License: Apache-2.0 + +%description -n teleport-tsh +A tool that lets end users interact with Teleport nodes. This replaces ssh. + +%prep +%setup -q +%setup -q -T -D -a 1 + +%build +go build \ + -mod=vendor \ + -buildmode=pie \ + -ldflags="-X main.VERSION=%{version}" \ + -o bin/tsh ./tool/tsh +go build \ + -mod=vendor \ + -buildmode=pie \ + -ldflags="-X main.VERSION=%{version}" \ + -o bin/tctl ./tool/tctl +go build \ + -mod=vendor \ + -buildmode=pie \ + -ldflags="-X main.VERSION=%{version}" \ + -o bin/teleport ./tool/teleport + +%install +# Install the binary. +install -D -m 0755 bin/tsh "%{buildroot}/%{_bindir}/tsh" +install -D -m 0755 bin/tctl "%{buildroot}/%{_bindir}/tctl" +install -D -m 0755 bin/teleport "%{buildroot}/%{_sbindir}/teleport" +install -D -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/teleport.service +install -D -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/teleport.yaml + +%pre -n teleport +%service_add_pre teleport.service + +%post -n teleport +%service_add_post teleport.service + +%preun -n teleport +%service_del_preun teleport.service + +%postun -n teleport +%service_del_postun teleport.service + +%files -n teleport +%doc README.md +%license LICENSE +%{_sbindir}/teleport +%{_unitdir}/teleport.service +%config(noreplace) %{_sysconfdir}/teleport.yaml + +%files -n teleport-tsh +%doc README.md +%license LICENSE +%{_bindir}/tsh + +%files -n teleport-tctl +%doc README.md +%license LICENSE +%{_bindir}/tctl + +%changelog diff --git a/teleport.yaml b/teleport.yaml new file mode 100644 index 0000000..0adf1d2 --- /dev/null +++ b/teleport.yaml @@ -0,0 +1,35 @@ +# Please check the documentation at +# https://goteleport.com/docs/setup/reference/config/ + +# Sample Teleport configuration file. +# Creates a single proxy, auth and node server. +# +# Things to update: +# 1. license.pem: You only need a license from https://dashboard.goteleport.com +# if you are an Enterprise customer. +# +teleport: + nodename: your-hostname-goes-here + data_dir: /var/lib/teleport + log: + output: stderr + severity: INFO + format: + output: text + ca_pin: "" +auth_service: + enabled: "yes" + listen_addr: 0.0.0.0:3025 +ssh_service: + enabled: "yes" + labels: + env: example + commands: + - name: hostname + command: [hostname] + period: 1m0s +proxy_service: + enabled: "yes" + listen_addr: 0.0.0.0:3023 + https_keypairs: [] + acme: {} diff --git a/vendor.tar.gz b/vendor.tar.gz new file mode 100644 index 0000000..8429d68 --- /dev/null +++ b/vendor.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0b07ae3054859902dcb1d1509d67107b97bfd9388834ae456d9d0cfc5b1f6b03 +size 12350435