Skip to content

Commit

Permalink
Merge branch 'master' into probakowski/dynamic-desktop-labels
Browse files Browse the repository at this point in the history
  • Loading branch information
probakowski authored Nov 14, 2024
2 parents c76048c + 5aa9b4c commit 8b5232f
Show file tree
Hide file tree
Showing 49 changed files with 3,181 additions and 960 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,12 @@ GO_LDFLAGS ?= -w -s $(KUBECTL_SETVERSION)
ifeq ("$(TELEPORT_DEBUG)","true")
BUILDFLAGS ?= $(ADDFLAGS) -gcflags=all="-N -l"
BUILDFLAGS_TBOT ?= $(ADDFLAGS) -gcflags=all="-N -l"
BUILDFLAGS_TELEPORT_UPDATE ?= $(ADDFLAGS) -gcflags=all="-N -l"
else
BUILDFLAGS ?= $(ADDFLAGS) -ldflags '$(GO_LDFLAGS)' -trimpath -buildmode=pie
BUILDFLAGS_TBOT ?= $(ADDFLAGS) -ldflags '$(GO_LDFLAGS)' -trimpath
# teleport-update builds with disabled cgo, buildmode=pie is not required.
BUILDFLAGS_TELEPORT_UPDATE ?= $(ADDFLAGS) -ldflags '$(GO_LDFLAGS)' -trimpath
endif

GO_ENV_OS := $(shell go env GOOS)
Expand Down Expand Up @@ -240,7 +243,8 @@ endif

# On Windows only build tsh. On all other platforms build teleport, tctl,
# and tsh.
BINS_default = teleport tctl tsh tbot fdpass-teleport
BINS_default = teleport tctl tsh tbot fdpass-teleport teleport-update
BINS_darwin = teleport tctl tsh tbot fdpass-teleport
BINS_windows = tsh tctl
BINS = $(or $(BINS_$(OS)),$(BINS_default))
BINARIES = $(addprefix $(BUILDDIR)/,$(BINS))
Expand Down Expand Up @@ -312,6 +316,8 @@ endif
CGOFLAG = CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++
BUILDFLAGS = $(ADDFLAGS) -ldflags '-w -s $(KUBECTL_SETVERSION)' -trimpath -buildmode=pie
BUILDFLAGS_TBOT = $(ADDFLAGS) -ldflags '-w -s $(KUBECTL_SETVERSION)' -trimpath
# teleport-update builds with disabled cgo, buildmode=pie is not required.
BUILDFLAGS_TELEPORT_UPDATE = $(ADDFLAGS) -ldflags '-w -s $(KUBECTL_SETVERSION)' -trimpath
endif

ifeq ("$(OS)","darwin")
Expand Down Expand Up @@ -397,7 +403,7 @@ $(BUILDDIR)/tbot:

.PHONY: $(BUILDDIR)/teleport-update
$(BUILDDIR)/teleport-update:
GOOS=$(OS) GOARCH=$(ARCH) CGO_ENABLED=0 go build -o $(BUILDDIR)/teleport-update $(BUILDFLAGS) ./tool/teleport-update
GOOS=$(OS) GOARCH=$(ARCH) CGO_ENABLED=0 go build -o $(BUILDDIR)/teleport-update $(BUILDFLAGS_TELEPORT_UPDATE) ./tool/teleport-update

TELEPORT_ARGS ?= start
.PHONY: teleport-hot-reload
Expand Down
5 changes: 4 additions & 1 deletion assets/install-scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ install_via_zypper() {
}


# download .tar.gz file via curl/wget, unzip it and run the install sript
# download .tar.gz file via curl/wget, unzip it and run the install script
install_via_curl() {
TEMP_DIR=$(mktemp -d -t teleport-XXXXXXXXXX)

Expand Down Expand Up @@ -387,6 +387,9 @@ install_teleport() {
if type fdpass-teleport &>/dev/null; then
echo " fdpass-teleport - Teleport Machine ID client."
fi
if type teleport-update &>/dev/null; then
echo " teleport-update - Teleport auto-update agent."
fi
}

# The suffix is "-ent" if we are installing a commercial edition of Teleport and
Expand Down
9 changes: 9 additions & 0 deletions build.assets/charts/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# DEPRECATED: Images from this dockerfile are not published for v15 and above
# https://goteleport.com/docs/changelog/#heavy-container-images-are-discontinued
# Teleport images are built from Dockerfile-distroless
# TODO(hugoShaka): cleanup the Makefile docker/image targets and remove this file.

# Stage to build the image, without FIPS entrypoint argument
FROM ubuntu:20.04 AS teleport

Expand Down Expand Up @@ -67,6 +72,10 @@ RUN --mount=target=/ctx \
# Used to track whether a Teleport agent was installed using this method.
ENV TELEPORT_INSTALL_METHOD_DOCKERFILE=true

# Attempt a graceful shutdown by default
# See https://goteleport.com/docs/reference/signals/ for signal reference.
STOPSIGNAL SIGQUIT

# By setting this entry point, we expose make target as command.
ENTRYPOINT ["/usr/bin/dumb-init", "teleport", "start", "-c", "/etc/teleport/teleport.yaml"]

Expand Down
3 changes: 3 additions & 0 deletions build.assets/charts/Dockerfile-distroless
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,7 @@ FROM $BASE_IMAGE
COPY --from=teleport /opt/staging /
COPY --from=staging /opt/staging/root /
COPY --from=staging /opt/staging/status /var/lib/dpkg/status.d
# Attempt a graceful shutdown by default
# See https://goteleport.com/docs/reference/signals/ for signal reference.
STOPSIGNAL SIGQUIT
ENTRYPOINT ["/usr/bin/dumb-init", "/usr/local/bin/teleport", "start", "-c", "/etc/teleport/teleport.yaml"]
3 changes: 3 additions & 0 deletions build.assets/charts/Dockerfile-distroless-fips
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,7 @@ FROM $BASE_IMAGE
COPY --from=teleport /opt/staging /
COPY --from=staging /opt/staging/root /
COPY --from=staging /opt/staging/status /var/lib/dpkg/status.d
# Attempt a graceful shutdown by default
# See https://goteleport.com/docs/reference/signals/ for signal reference.
STOPSIGNAL SIGQUIT
ENTRYPOINT ["/usr/bin/dumb-init", "/usr/local/bin/teleport", "start", "-c", "/etc/teleport/teleport.yaml", "--fips"]
2 changes: 1 addition & 1 deletion build.assets/install
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ VARDIR=/var/lib/teleport
echo "Starting Teleport installation..."
cd $(dirname $0)
mkdir -p $VARDIR $BINDIR
cp -f teleport tctl tsh tbot $BINDIR/ || exit 1
cp -f teleport tctl tsh tbot teleport-update $BINDIR/ || exit 1

#
# What operating system is the user running?
Expand Down
1 change: 1 addition & 0 deletions docs/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"Elastcsearch",
"Elasticvue",
"Entra",
"entraid",
"Exadata",
"Exfiltrate",
"Exrch",
Expand Down
3 changes: 2 additions & 1 deletion docs/pages/admin-guides/management/admin/troubleshooting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ through the [Teleport support portal](https://support.goteleport.com).
<TabItem scope={["oss"]} label="Teleport Community Edition">
If you need help, please ask on our [community forum](https://github.com/gravitational/teleport/discussions). You can also open an [issue on GitHub](https://github.com/gravitational/teleport/issues).

For more information about custom features, or to try the [self-hosted Enterprise edition](../../deploy-a-cluster/deploy-a-cluster.mdx) of Teleport, reach out to us at [sales](https://goteleport.com/signup/enterprise/).
For more information about Enterprise features reach out to [the Teleport sales team](https://goteleport.com/signup/enterprise/).
You can also sign up for a [free trial](https://goteleport.com/signup) of Teleport Enterprise.
</TabItem>
</Tabs>

Expand Down
Loading

0 comments on commit 8b5232f

Please sign in to comment.