* Fix make build-binaries
The dockerized build (make -C build.assets build-binaries) fails
with GLIBC errors because it is a multi-stage build that runs
across several different containers.
First, we build the webassets in buildbox-node. Then we build the
Teleport binaries in buildbox-centos7, reusing the webassets built
previously.
The issue arises because buildbox-node runs a newer version of GLIBC
than buildbox-centos7, and we weren't properly cleaning some build
artifacts when switching from one builder to another. As a result,
the centos7 builder would see intermediate artifacts with a dependency
on a GLIBC version that is too new.
Fix the issue by ensuring we run a clean-build after hopping into
the centos7 container.
Closes#62594
* Fix build-enterprise-binaries too
* Get a Teleport build working without wasm-pack
* * seed docker images with wasm-opt, and wasm-bindgen-cli
* Replace potentially confusing 'CARGO_TARGET_wasm' variable.
* Replace oneoff .gitignore with a corresponding entry in the top level .gitignore.
* Replace 'printf' used to create package.json file with a cleaner multiline string.
* Remove unnecessary 'NEED_VERSION'
* Use awk to find wasm-bindgen version without using 'cargo' since it doesn't seem to be available on ARM64 runners
* Move 'WASM_BINDGEN_VERSION' definition out of versions.mk
* Pass '--locked' flag to wasm-opt install
* docs: update instructions for local build dependencies to improve clarity
* docs: use homebrew as primary dependency installer and simplify MacOS env setup
Signed-off-by: Chris Thach <chris.thach@goteleport.com>
* docs: improve consistency
Signed-off-by: Chris Thach <chris.thach@goteleport.com>
* docs: revert changes to further simplify changes
Signed-off-by: Chris Thach <chris.thach@goteleport.com>
* docs: use versions.mk as source of truth
Signed-off-by: Chris Thach <chris.thach@goteleport.com>
* docs: add missing replace instruction
* docs: simplify Go install
Signed-off-by: Chris Thach <chris.thach@goteleport.com>
* docs: replace protobuf with buf
Signed-off-by: Chris Thach <chris.thach@goteleport.com>
* docs: simplify by making all deps required for dev environment
Signed-off-by: Chris Thach <chris.thach@goteleport.com>
* docs: add testing instructions for MacOS environment setup
Signed-off-by: Chris Thach <chris.thach@goteleport.com>
* refactor: rely on Make to install deps
Signed-off-by: Chris Thach <chris.thach@goteleport.com>
* docs: remove pnpm from root README as its no longer needed to be explicitly installed
* refactor: install buf version in versions.mk
Signed-off-by: Chris Thach <chris.thach@goteleport.com>
* fix: bad link for binaryen
---------
Signed-off-by: Chris Thach <chris.thach@goteleport.com>
Some users are confused that Teleport OSS has been discontinued,
whic is not the case. Additionally, GitHub sees the community edition
license at the root of the repo and displays "Unkown licenses found"
on the repo homepage.
Move the community edition license into build.assets where the packaging
scripts live.
Closes#48788
Fix docs URLs in `gravitational/teleport` pages that correspond to
neither:
- A redirect source on the default version of the docs site
- A page on the current version of the docs site
In `web/packages/teleport/src/Discover/SelectResource/databases.tsx`,
use literal strings instead of templated strings for docs URLs so we can
check these URLs for inaccuracies.
* Adjust `package.json`s to pnpm
* Convert resolutions (pnpm doesn't support `**/` syntax)
It also removes resolutions that are no longer relevant.
* Convert `yarn.lock` to `pnpm-lock.yaml` with `pnpm import`
* Always add `e/web/teleport` workspace to the lockfile
* Adjust `jest` to new node_modules structure
* Adjust `storybook` to new node_modules structure
* Replace `toHaveStyleRule` with `toHaveStyle`
`jest-styled-components` package is no longer global, so `toHaveStyleRule` matchers is not recognized by TS.
We use them only in three places, so it's simpler to convert them to `toHaveStyle`.
* Adjust README files
* Adjust GHA workflows
* Adjust build assets
* Remove remaining `yarn` mentions
I don't think anyone uses the debug configuration for electron (and we don't have `start-electron` script for a long time).
* `corepack enable` -> `corepack enable pnpm`
* Automatically enable pnpm when running `make build/teleport`
* Run `pnpm import` again
* Run `pnpm dedupe`
* Add `yarn.lock` to .gitignore
* Link to pnpm installation docs
* Add a better comment for `transformIgnorePatterns`
* Make pattern for `shared` stories more specific
* Change `corepack enable pnpm` in readmes
* Run `pnpm import && pnpm dedupe` again
Update master as the now-source of v16 when it gets cut:
* Update `VERSION` in `Makefile` to 16.0.0-dev
* Update `BUILDBOX_VERSION` in `build.assets/Makefile` to `teleport16`
* Update a couple of mentions of v13 in `README.md` to v16
* Run `make update-version`
* Run `make dronegen`
Some workflows are to be updated once v15.0.0 is actually released.
* Initial devbox.
As devbox has added in version pinning, it seems like a viable way for
maintaining consistent tooling across devboxes. This is an initial pass
at using devbox in Teleport.
* Use latest git/bash, use clang instead of gcc.
* Add in TELEPORT_DEVBOX env variable for future use.
* Alphabetize and add in gotestsum.
* Remove gotestsum.
* Bump golangci-lint to 1.53.2
* Make sure libbpf works in linux.
* Add in notes to update devbox.json, add in a few more dependencies to devbox.json.
* Remove extraneous comments in Dockerfile, add in README.md blurb.
* Update the README to mention Teleport Team
Mention Teleport Team in the section related to installing and running
Teleport. Also replace the current instructions with a link to the
Getting Started guide, which contains up-to-date information.
* Remove out-of-date links
Responding to stevenGravy feedback.
Include references to install Yarn for building the UI, as well as the
alternative "docker-ui" make target.
The Yarn install process is currently dependent on yarn 1.x / pre-2.0
* Update security information in docs.
Update README.md with some updated security and trust information.
Additonally, update SECURITY.md to deprecate our email-based submission process
with our current process via HackerOne.
This change also removes the now-unused PGP public key document.
* Update README.md
Co-authored-by: Reed Loden <reed@goteleport.com>
* Update Teleport download link to current page.
---------
Co-authored-by: Reed Loden <reed@goteleport.com>
* Move tsconfig.json to root dir
At the moment, it looks like the TS language server has problems with
recognizing imports when editing files inside e/web.
I figured this is probably because tsconfig.json is in web, so the lang
server doesn't recognize it when editing files from e/web.
* Remove web/Dockerfile and web/Makefile
* Misc updates to readme
* Fix links in readme
Update teleport build and dependencies setup instructions
* add notes about libfido and how to build tsh with it
* add detailed instructions about installing Go and Rust
* restructure/reformat the Local Build section
* add a note about TouchID support for tsh
* add instructions for test dependencies
* link to test dependencies from testing section of the README.md
* git submodule update note
* remove $ from shell command snippets
Co-authored-by: Alan Parra <alan.parra@goteleport.com>
This code was unmaintained, created issues with our build system,
and didn't actually match the behavior of Teleport's RBAC engine.
We will revisit this functionality in the future when we investigate
"acess policies as code."