Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
730 commits
Select commit Hold shift + click to select a range
5593b46
[v10] Use Buf linters and formatter on lib/teleterm protos (#15919)
codingllama Aug 30, 2022
02f0d23
[v10] Connect: Add tests for ParseClusterURI (#15942)
ravicious Aug 30, 2022
c841fee
[v10] Fix link in Authentication options docs (#15276)
ptgott Aug 30, 2022
73469f9
[v10] Organize docs guide sections chronologically (#15735)
ptgott Aug 30, 2022
e1e470b
[v10] Fix race in `reversetunnel.remoteConn` (#15943)
espadolini Aug 30, 2022
a63e911
Release 10.1.8 (#15952)
r0mant Aug 30, 2022
d48edd2
[v10] backports for 13630 14267 14959 15289 15364 15789 15743 (direct…
Aug 30, 2022
e98e12c
[v10] Record when a session recording is accessed (#15729)
ryanclark Aug 30, 2022
c9f1bc4
[v10] Add default debug setting for install.sh AMI script (#15936)
Joerger Aug 30, 2022
8f6f6cc
Release 10.1.9 (#15980)
r0mant Aug 30, 2022
839ec21
[v10] Azure mysql postgres auto discovery configuration (#15988)
GavinFrazar Aug 31, 2022
40b4f49
[v10] Apply linters to legacy protos (#15961)
codingllama Aug 31, 2022
161fd84
[v10] Azure mysql postgres auto discovery config create (#15990)
GavinFrazar Aug 31, 2022
126c14c
[v10] azure mysql postgres auto discovery proto (#15989)
GavinFrazar Aug 31, 2022
29e6031
[v10] azure mysql postgres auto discovery api (#15991)
GavinFrazar Aug 31, 2022
4a5744c
Added section on Cloud upgrades.
russjones Aug 31, 2022
a307c49
[v10] Add lock target to lock.create event (#15981)
zmb3 Aug 31, 2022
cc2fefc
github releases scraper
fspmarshall Aug 2, 2022
8458326
fncache test improvements
fspmarshall Aug 10, 2022
90256b9
improve semaphore flakiness test
fspmarshall Aug 12, 2022
4c1f307
[v10] NodeJoin script: fix when no labels are provided (#15755)
marcoandredinis Sep 1, 2022
5872832
[v10] Fix a flaky operator test (#16010)
hugoShaka Sep 1, 2022
a00affa
[v10] Remove deprecated upsert password endpoint (#15855) (#15938)
strideynet Sep 1, 2022
c69ce17
[v10] Update on-prem version to 10.1.9 (#16020)
stevenGravy Sep 1, 2022
8af896f
[v10] Avoid wrongly filtering Yubikey4 devices (#16011)
codingllama Sep 1, 2022
1069c9d
[v10] Add architecture guide for Machine ID (#16036)
strideynet Sep 1, 2022
7746cdc
[v10] Add Access Request ID to response for UserContext (#15962)
rudream Sep 1, 2022
c148597
[v10] azure mysql postgres auto discovery watchers (#15992)
GavinFrazar Sep 1, 2022
30c5411
[v10] Backport TLS routing Ping connection (#16017)
gabrielcorado Sep 1, 2022
0816613
Added 09/01 Upcoming Releases Update
russjones Sep 1, 2022
03d6ce2
[v10] Add support for `FileNamesInformation` (#16054)
Sep 1, 2022
9bfa5da
[v10] Add an `is_empty` field to `FileSystemObject` (#16059)
Sep 2, 2022
f56fe30
dronegen: Enable verbose logs for electron tooling on macOS (#15836) …
ravicious Sep 2, 2022
26060a3
[v10] Correct links to tracks (#16078)
benarent Sep 2, 2022
62eefe1
Fix infinite session heartbeat failures (#16065)
rosstimothy Sep 2, 2022
e60fb5a
Add comment and import cycle proto linters (#16092)
codingllama Sep 2, 2022
3d695db
Add omitempty for GitHub teams_to_roles (#16012)
zmb3 Sep 2, 2022
6cae734
Fix username in example (#14276) (#16077)
GavinFrazar Sep 2, 2022
503641d
Drop libudev-dev from buildbox dependencies (#16102)
codingllama Sep 2, 2022
e0fe73f
[v10] Update Library for new systemd install (#16030)
Sep 2, 2022
31594e5
[v10] Use regional STS endpoints for IAM join method (#15915)
nklaassen Sep 2, 2022
1f72250
Increase dynamo get limit (#16103)
rosstimothy Sep 2, 2022
37b139d
Fix outdated CHANGELOG links (#16110)
ptgott Sep 2, 2022
7f8dbd8
[v10] Make `tctl bots add` display the proxy address (#16089)
strideynet Sep 2, 2022
409b639
Support AWS Console for US GovCloud Partition (#13442) (#16067)
greedy52 Sep 3, 2022
d8151c3
Forward flags to "tsh ssh" and "tsh aws" (#16058) (#16094)
greedy52 Sep 3, 2022
703efee
[v10] ConnectionDiagnostics: SSH Tester (#15413) (#16087)
marcoandredinis Sep 5, 2022
3d5d97d
Add support for `--browser none` to `tctl sso test`. (#16086)
Tener Sep 5, 2022
bdae69e
Restrict Google JSON creds to service_account (#16042)
espadolini Sep 5, 2022
0c27d09
[v10] Add retries on operation denied in fido2 (#16085)
tobiaszheller Sep 6, 2022
a91481d
[v10] Docs: Update Contributing Page (#16115)
alexfornuto Sep 6, 2022
5015249
Plugin ECR Documenation updates (#15719)
logand22 Sep 6, 2022
d7ed5e5
[v10] Update user traits when renew session (#16122)
kimlisa Sep 6, 2022
c6504a7
[v10] Update buildbox to push to ECR (#15725)
logand22 Sep 6, 2022
1a6e44e
[v10] Add section on teleport.cluster.local (#16153)
strideynet Sep 6, 2022
6cd27e1
[v10] Add OS compatibility checker (#16141)
jakule Sep 6, 2022
5622975
[auto] Update webassets in teleport/branch/v10 from webassets/telepor…
kimlisa Sep 6, 2022
26b8921
Auditd integration (#14948) (#16140)
jakule Sep 6, 2022
5612640
Rename web JSON field names and wrap traits (#14611) (#16173)
kimlisa Sep 6, 2022
f255468
[v10] Replace quay.io with amazon ECR where appropriate (#15713)
logand22 Sep 6, 2022
2f9ad08
[v10] Generalize private keys in tsh (PIV integration) (#15890)
Joerger Sep 6, 2022
7ac7cec
implements IRP_MJ_LOCK_CONTROL (#16139)
Sep 6, 2022
7d1b4f7
upgrade notifications
fspmarshall Aug 23, 2022
b8cdfe9
Release 10.2.0 (#16172)
r0mant Sep 7, 2022
f1f74b9
[v10] Add a guide to Desktop Access Directory Sharing (#15932)
ptgott Sep 7, 2022
3651e7a
Fix running ssh command on multiple nodes with mfa per session (#16148)
tobiaszheller Sep 7, 2022
3571bdb
bumps rust to 1.63.0, fixes linting errors (#16056) (#16152)
Sep 7, 2022
627a0df
[v10] Update the CockroachDB logo in our guide (#16194)
alexfornuto Sep 7, 2022
62e8823
Add serialization of writes to `known_hosts` file. (#16203)
AntonAM Sep 7, 2022
bc74d99
[v10] bump go mod go1.18 (#16088)
Sep 8, 2022
5e468b4
[v10] Correct cluster auth preference dynamic example (#16246)
stevenGravy Sep 8, 2022
599659c
Add validation for hostname read from EC2 (#16015)
atburke Sep 8, 2022
41f85c5
Update grpc-go (#16199)
rosstimothy Sep 8, 2022
e19fdbb
Added 09/08 Upcoming Releases Update
russjones Sep 8, 2022
8b9c61f
[v10] Calculate shasums of TCon Linux OS packages (#16253) (#16256)
justinas Sep 8, 2022
df7f32d
[v10] fix tctl auth server flag (#16255)
GavinFrazar Sep 8, 2022
81bf631
(v10) Bump Go to 1.18.6 (#16259)
r0mant Sep 8, 2022
876a56f
Change base image for os compatibility check. (#16177)
jakule Sep 9, 2022
1677c18
Update Helm snapshots when updating version (#16189)
r0mant Sep 9, 2022
43b404c
Remove the "." from the end of the auth token generated by "tctl toke…
strideynet Sep 9, 2022
f60e7af
[v10] Categorize Teleport Connect linux builds correctly (#16272)
justinas Sep 9, 2022
90fb3dc
[v10] Add documentation for Jira Helm chart (#15921)
ptgott Sep 9, 2022
08d2d6c
[v10] Reduce the severity of the upgrade alert to 'info' (#16211)
hatched Sep 9, 2022
ef41398
[auto] Update webassets in teleport/branch/v10 from webassets/telepor…
kimlisa Sep 9, 2022
e568d22
[auto] Update webassets in teleport/branch/v10 from webassets/telepor…
kimlisa Sep 9, 2022
2560469
Release 10.2.1 (#16283)
r0mant Sep 9, 2022
7684774
changelog: fix moderated sessions typo (#16222)
zmb3 Sep 10, 2022
d1c98e4
Tweak TestAgentForward (#16304)
r0mant Sep 10, 2022
303fba5
Update on-prem docs version (#16313)
stevenGravy Sep 11, 2022
ff4c536
[v10] docs: Add missing commands key to dynamic labels in reference (…
webvictim Sep 11, 2022
3f9702a
spell fixes (#16166)
stevenGravy Sep 12, 2022
8f3c559
[v10] Dial by UUID for label based ssh (#16324)
rosstimothy Sep 12, 2022
51ab75d
[v10] Clarify access denied due to Teleport role permission (#16331)
stevenGravy Sep 12, 2022
788bdf1
[v10] Adds warning about directories blocked from being shared (#16328)
Sep 12, 2022
c7e5969
[v10] Wrap `desktopplayback` endpoint with `WithClusterAuth` rather t…
Sep 12, 2022
d940022
[v10] backport #16136 and #16151 (#16213)
Sep 12, 2022
afefb68
Fix `TestTokenGeneration` flakiness (#15090) (#16362)
mcbattirola Sep 13, 2022
5a925a3
updates changelog to document when rdp licensing negotiation was adde…
Sep 13, 2022
3e74ba6
[v10] Add /webapi/sites/:site/alerts endpoint to the apiserver (#16336)
hatched Sep 13, 2022
7b5b032
[v10] Document `tbot configure` (#16373)
strideynet Sep 13, 2022
493ae24
Use tracing handler per server not per route (#16372)
rosstimothy Sep 13, 2022
075f87e
Documentation for AWS API access (#14429) (#16066)
greedy52 Sep 13, 2022
fb5e7b1
[v10] Kubernetes Exec via Websockets (#16282)
tigrato Sep 13, 2022
c435250
[v10] ci: Add paths/paths-ignore to GitHub Actions workflows to reduc…
reedloden Sep 14, 2022
3b9934c
[v10] docs: fix joinParams reference (#16381)
hugoShaka Sep 14, 2022
3495312
[v10] Correct hsm service docs command (#16405)
stevenGravy Sep 14, 2022
17254d0
[v10] Prevent ssh.Session SendRequest from wrapping payload twice (#1…
rosstimothy Sep 14, 2022
1684eaf
Add Default Allow Rules for new resources (#16237) (#16399)
r0mant Sep 14, 2022
7f6a3e4
Unhide tctl alert create (#16290)
zmb3 Sep 14, 2022
38e87cf
Remove Stripe from `Content-Security-Policy` header (#16390)
reedloden Sep 14, 2022
6c415d6
[v10] Rephrase docs on moderated sessions backward compatibility (#16…
nklaassen Sep 14, 2022
3be967b
Capture stderr from "tsh db connect" and reformat redis error (#13843…
greedy52 Sep 14, 2022
f501198
[v10] helm: support Kubernetes 1.25 (#16343)
hugoShaka Sep 14, 2022
29b8121
Add `where` predicate and Machine ID support to SSH host certificates…
timothyb89 Sep 15, 2022
b0956a2
operator: Fix flaky drift tests (#15815) (#16338)
hugoShaka Sep 15, 2022
eb29d9d
Added 09/15 Upcoming Releases Update
russjones Sep 15, 2022
ba1794b
[v10] Nodes use FIPS STS endpoints for IAM join method when in FIPS m…
nklaassen Sep 15, 2022
faf4efb
[v10] Fix `known_hosts` locking by refactoring our locks in `utils/fs…
AntonAM Sep 15, 2022
a88f6f1
Fix auditd status on older kernels (#16448)
jakule Sep 15, 2022
7c616ed
Fix minor issues that impact SEO (#15920)
ptgott Sep 15, 2022
4f03cea
adding video banner to mssql server db quide (#16420)
benarent Sep 16, 2022
5bf7b81
Add documentation for Event Handler chart (#15662)
ptgott Sep 16, 2022
564878f
[v10] VSCode remote ssh extension settings (#16462)
stevenGravy Sep 16, 2022
e2d6200
Fix incorrect PagerDuty guide redirect (#15917)
ptgott Sep 16, 2022
601a44e
Add EC2 joining for Windows Desktop Service (#16438)
zmb3 Sep 16, 2022
cdb9c7e
rework cmd registration
fspmarshall Sep 2, 2022
1e422e8
update e-ref
fspmarshall Sep 9, 2022
dd70f8a
Release 10.2.2 (#16469)
r0mant Sep 17, 2022
279b38d
Change caching resolver to return a copy of cached data (#16219) (#16…
GavinFrazar Sep 18, 2022
f4333ec
Fix issue "tsh db env" returns error when TLS routing enabled (#16252…
greedy52 Sep 19, 2022
eefb96a
[v10] TLS Routing support with Teleport Proxy behind ALB for database…
greedy52 Sep 19, 2022
91c97f3
Update on-prem v10 docs version (#16514)
stevenGravy Sep 19, 2022
53bf30f
[v10] Register Windows native artifacts in release API (#16197) (#16540)
justinas Sep 20, 2022
b7012a3
[v10] Move GitHub review bot to shared-workflows repository (#16226) …
gozer Sep 20, 2022
71d04dc
Allow opting out of forced OIDC email verification (#15847) (#16142)
Sep 20, 2022
8fc7f7b
[v10] [Docs] note S3 versioning requirement (#16454)
Sep 20, 2022
893b4ba
[v10] ci: Swap CodeQL to larger runner and improve workflow (#16535)
reedloden Sep 20, 2022
a6886e4
add status interface for cluster alerts (#16505) (#16574)
michellescripts Sep 21, 2022
7f7e3ed
Generic retrieval of FnCache values (#16485) (#16544)
rosstimothy Sep 21, 2022
8dd7c63
Fix CA pool loading for etcd backend (#16484) (#16598)
r0mant Sep 21, 2022
2ea7eee
add cluster alert links (#16426) (#16595)
michellescripts Sep 21, 2022
bce0018
Make the Fluentd guide more usable (#16051)
ptgott Sep 21, 2022
ddf6431
[v10] azure mysql postgres auto discovery docs (#16562)
GavinFrazar Sep 21, 2022
0a921f4
spell fix (#16607)
stevenGravy Sep 21, 2022
9e719f1
Backport V10: Add an AWS EC2 instance fetcher (#13886) (#16006)
Sep 22, 2022
d435ffb
[v10] Connect: Fix premature `proxyClient.Close()` when getting kube …
gzdunek Sep 22, 2022
e612c95
Introduce discovery_service and automatically run an SSM Document on …
Sep 22, 2022
b99a49b
docs: move S3 IAM policy into an include (#16476)
zmb3 Sep 22, 2022
1c260ec
Add a version support table to the FAQ (#15924) (#16630)
Sep 22, 2022
183847f
bucket etcd leases (#16659)
fspmarshall Sep 23, 2022
10e8fac
Add a timeout for device cancels (#16657)
codingllama Sep 23, 2022
5c550fb
helm: add minReadySeconds to teleport-cluster chart (#16675)
hugoShaka Sep 23, 2022
08b2cc3
[v10] Fix flaky integration test: TestAppServersHA/RootServer (#16628…
smallinsky Sep 23, 2022
9b5bd95
Use `testauthority` instead of `native` to generate keys in tests (#1…
rosstimothy Sep 23, 2022
d9c1d6e
[v10] ci: Add Dependency Review linting tool (#16651)
reedloden Sep 23, 2022
1eef7f1
Fix issue with builtin remote proxy role getting access denied to rol…
r0mant Sep 23, 2022
3b676ab
[v10] Improve logging when TDP input streaming fails (#16525)
zmb3 Sep 23, 2022
515824c
[v10] Misc Backports (#16674)
zmb3 Sep 24, 2022
ae29220
Release 10.2.3 (#16686)
r0mant Sep 24, 2022
17ef933
Disable MongoDB server selection in tests (#14622) (#16695)
jakule Sep 24, 2022
c4355a7
[v10] helm: allow custom CA in teleport-cluster without custom certs …
hugoShaka Sep 26, 2022
77de241
Fix link with a long redirect chain in the CHANGELOG (#16527)
ptgott Sep 26, 2022
15ae386
Release 10.2.4 (#16712)
r0mant Sep 26, 2022
ded02b0
Edit the FAQ (#16648)
ptgott Sep 26, 2022
badeb78
[v10] Add HostKeyAlgorithms to ssh_config (#16662)
jakule Sep 26, 2022
a3cde27
[v10] ci: Don't run the Dependency Review workflow on `push` actions …
reedloden Sep 26, 2022
2caa6eb
Add documentation for MatterMost Helm chart (#16474)
ptgott Sep 26, 2022
71eade8
[v10] Docs: Updates to Docker Compose Guide (#16511)
Sep 26, 2022
5aab76f
[v10] Add PEM certificate support in desktop access config
Aug 23, 2022
3ffc45b
[v10] Add webapi endpoints for desktop access configuration
Aug 25, 2022
d912105
Disable ControlMaster test for proxy recording mode (#16726)
zmb3 Sep 26, 2022
085805d
Refresh the Enterprise Getting Started guide (#16655)
ptgott Sep 26, 2022
3fc4fb2
Release 10.2.5 (#16736)
r0mant Sep 26, 2022
8fddc09
Use teleport client sitename for sql server local proxy tunnel db cer…
GavinFrazar Sep 26, 2022
29fc9ae
[auto] Update webassets in teleport/branch/v10 from webassets/telepor…
kimlisa Sep 27, 2022
46438b4
Release 10.2.6 (#16764)
r0mant Sep 27, 2022
2bf8ea7
Hide `--db-user`/`--db-name` flags if they are not needed. (#16747)
Tener Sep 27, 2022
8f164ad
[v10] update e ref (#16731)
nklaassen Sep 27, 2022
9777fa9
[v10] fix: Handle failures when checking for excluded credentials (#1…
codingllama Sep 27, 2022
5f893ea
[v10] Backport PagerDuty edits (#16052)
ptgott Sep 28, 2022
660a6ee
Update the docs issues contributing guide (#16529) (#16631)
Sep 28, 2022
ac37f9c
docs: add ssh_file_copy to role spec (#16766)
zmb3 Sep 28, 2022
cf29530
[v10] Docs: Update Docker Config Path (#16522)
Sep 28, 2022
3e0bfa3
[v10] Retrieve an IMDS token in the default ec2 discovery installer (…
Sep 28, 2022
684a6af
Updated operating system support
russjones Sep 28, 2022
d3d210c
[v10] Fix auto discovery on secondary cluster of a global Aurora data…
greedy52 Sep 29, 2022
fb89e96
Update on-prem docs version (#16725)
stevenGravy Sep 29, 2022
942abf7
[v10] Document MsTeams access plugin (#16642)
Sep 29, 2022
26cc23b
[v10] Change kube logged in message (#16829)
gzdunek Sep 29, 2022
272b839
[v10] security: one allow one exec request per SSH channel (#16813)
nklaassen Sep 29, 2022
e083d42
[v10] Add an Elastic Stack guide (#16842)
ptgott Sep 29, 2022
c9f29d3
[v10] Clean up old artifacts when retrying a tag build (#16669) (#16785)
justinas Sep 29, 2022
d940292
[auto] Update webassets in teleport/branch/v10 from webassets/telepor…
nklaassen Sep 29, 2022
4f46509
Initial RDPDR tests (#16470) (#16846)
Sep 29, 2022
9276d95
update eref (#16859)
michellescripts Sep 29, 2022
7513419
update webassets (#16860)
michellescripts Sep 29, 2022
856424f
Added 09/29 Upcoming Releases Update
russjones Sep 29, 2022
4a15c12
[v10] Drop a couple of deprecated/shallow Go dependencies (#16883)
codingllama Sep 30, 2022
e3bc3a7
Update download link (#16836)
Sep 30, 2022
e62476e
[v10] Backport Elasticsearch suppport (#16873)
Tener Sep 30, 2022
d9e016e
[auto] Update webassets in teleport/branch/v10 from webassets/telepor…
kimlisa Sep 30, 2022
d55e30c
Implement RFD 82: Session Tracker Resource RBAC (#15760) (#16554)
Sep 30, 2022
44b530f
Fix label based tsh when per session mfa is enabled via role (#16893)
rosstimothy Sep 30, 2022
af7ec9b
typo correction (#16839)
Sep 30, 2022
be127dd
[v10] security: include exec command in session.start.initial_command…
nklaassen Sep 30, 2022
5569141
Release 10.3.0 (#16891)
r0mant Sep 30, 2022
bf0b441
security patch alerts
fspmarshall Sep 6, 2022
059cd4f
local alert resync
fspmarshall Sep 28, 2022
4b29535
[v10] Drop direct dependency on github.com/golang/protobuf (#16904)
codingllama Sep 30, 2022
67f92d1
docs: add more details on audit log retention (#16814)
zmb3 Sep 30, 2022
2fa9454
Release 10.3.1 (#16915)
r0mant Sep 30, 2022
e654aff
Fix client idle timeout ending sessions too early (#16868)
atburke Oct 1, 2022
9bf6252
Fixes Dismiss Stale Workflows Runs GitHub Actions (#16926)
gozer Oct 3, 2022
6ebbb37
snowflake access fixes (#16940)
stevenGravy Oct 3, 2022
b43d442
bump cloud version (#16855) (#16885)
michellescripts Oct 3, 2022
5b6e2df
[v10] [Docs] Update 'Using Teleport Connect' for Linux & Windows (#16…
Oct 3, 2022
18da156
docs: mention that WindowsDesktop now supports EC2 join (#16811)
zmb3 Oct 4, 2022
c5ee2ac
[v10] Add docs for IdP-initiated SSO (#16897)
Oct 4, 2022
403d6fd
correct protocol name (#16995)
Oct 4, 2022
4390ec5
Refactor TestResolveEndpoints to avoid test failure when AWS SDK chan…
greedy52 Oct 4, 2022
719debc
[v10] correct plugin name reference (#17019)
stevenGravy Oct 4, 2022
cc3a650
Missing spaces in on/offboarding section (#17039)
stevenGravy Oct 5, 2022
2dd61d4
Stop using etcd serializable mode (#17049)
rosstimothy Oct 5, 2022
8e88e85
[v10] Finalize CI release API integration (#17064)
justinas Oct 5, 2022
7db0e56
[v10] fix: data race in NodeSession.runCommand (#17073)
nklaassen Oct 5, 2022
2f536ba
Update on-prem version in docs (#17091)
stevenGravy Oct 5, 2022
e6fd0d7
Add `username_claim` to OIDC config to select claim from Identity Pro…
rudream Oct 6, 2022
8984683
Added 10/06 Upcoming Releases Update
russjones Oct 6, 2022
7afac6a
Fix ListResources for WindowsDesktops (#17093) (#17117)
rosstimothy Oct 6, 2022
a3d5a93
Revert change from PKCS1 to PKCS8 (#17045)
Joerger Oct 6, 2022
42c40ec
Remove cacert flag from curl output during tsh app login.
Sep 27, 2022
bb925dc
Update tool/tsh/app.go
mdwn Sep 30, 2022
7808461
Fix unit test.
Sep 30, 2022
f756675
Update tool/tsh/app.go
mdwn Oct 4, 2022
1700f35
Port in Tiago's feedback.
Oct 4, 2022
c2b148d
Limit number of resources loaded into memory for version metrics (#17…
rosstimothy Oct 6, 2022
48a1aa8
Drain errChan in `api.client/connect` (#17159)
espadolini Oct 7, 2022
4877411
Fix background database local proxy termination by SIGINT signal (#16…
smallinsky Oct 7, 2022
779a480
Bump Cloud Version (#17150)
jimbishopp Oct 7, 2022
f82c016
desktop clipboard: prevent integer underflow (#17179)
zmb3 Oct 7, 2022
fcb6753
[v10] Ensure operator tests are run when Go dependencies change (#17032)
zmb3 Oct 7, 2022
997f7b1
[v10] Fetch tags when promoting rpm/deb (#17031)
wadells Oct 8, 2022
7e01ddd
[v10] Manually print installer scripts instead of using asciitable (…
Oct 10, 2022
989c52d
[v10] Fix X11 forwarding for non-root users (#17130)
Joerger Oct 10, 2022
1f86be8
[v10] Remove installer, app and database watchers for remote proxies …
tigrato Oct 10, 2022
41de0da
AWS Terraform App Access, DB listeners variables (#17105)
stevenGravy Oct 10, 2022
44756a8
Tweak wording of joining nodes blurb.
Oct 6, 2022
3dd2fad
[v10] Refactor Drone Pipelines to use AWS role assumption (#17244)
wadells Oct 11, 2022
3a66fe3
Add AWS Roles to the buildbox pipeline
wadells Oct 11, 2022
75a78b1
Fix AWS Roles in tagPackagePipelines
wadells Oct 11, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .cloudbuild/ci/doc-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
steps:
- name: quay.io/gravitational/next:main
- name: public.ecr.aws/gravitational/docs:latest
id: docs-test
entrypoint: /bin/bash
dir: /src
Expand Down
2 changes: 1 addition & 1 deletion .cloudbuild/ci/integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ options:
steps:
# Run the integration tests. Actual content of this job depends on the changes
# detected in the PR
- name: quay.io/gravitational/teleport-buildbox:teleport10
- name: public.ecr.aws/gravitational/teleport-buildbox:teleport10
id: run-tests
dir: /workspace/.cloudbuild/scripts
entrypoint: bash
Expand Down
6 changes: 4 additions & 2 deletions .cloudbuild/ci/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
steps:
- name: quay.io/gravitational/teleport-buildbox:teleport10
- name: public.ecr.aws/gravitational/teleport-buildbox:teleport10
id: lint
args: ['make', 'lint']
options:
machineType: 'E2_HIGHCPU_32'
pool:
name: projects/ci-account/locations/us-west1/workerPools/high-cpu-pool

23 changes: 23 additions & 0 deletions .cloudbuild/ci/os-compatibility-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
timeout: 25m

options:
machineType: E2_HIGHCPU_32

steps:
- name: public.ecr.aws/gravitational/teleport-buildbox-centos7:teleport10
id: build-teleport
dir: /workspace
entrypoint: "/bin/bash"
args:
- '-c'
- 'make build/tctl build/tsh build/tbot build/teleport'
timeout: 10m
env:
- GOCACHE=/tmp/gocache

- name: gcr.io/cloud-builders/docker
id: compatibility-test
entrypoint: "/bin/bash"
args:
- './build.assets/build-test-compat.sh'
timeout: 10m
4 changes: 2 additions & 2 deletions .cloudbuild/ci/unit-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
timeout: 25m
timeout: 30m

options:
machineType: E2_HIGHCPU_32
Expand All @@ -12,7 +12,7 @@ options:
steps:
# Run the unit tests. Actual content of this job depends on the changes
# detected in the PR
- name: quay.io/gravitational/teleport-buildbox:teleport10
- name: public.ecr.aws/gravitational/teleport-buildbox:teleport10
id: run-tests
dir: /workspace/.cloudbuild/scripts
entrypoint: bash
Expand Down
75 changes: 69 additions & 6 deletions .cloudbuild/scripts/cmd/unit-tests/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build linux

/*
Copyright 2021 Gravitational, Inc.

Expand All @@ -23,10 +25,12 @@ import (
"os"
"os/exec"
"path/filepath"
"strings"
"time"

"github.com/gravitational/trace"
log "github.com/sirupsen/logrus"
"golang.org/x/sys/unix"

"github.com/gravitational/teleport/.cloudbuild/scripts/internal/artifacts"
"github.com/gravitational/teleport/.cloudbuild/scripts/internal/changes"
Expand All @@ -36,8 +40,11 @@ import (
"github.com/gravitational/teleport/.cloudbuild/scripts/internal/secrets"
)

// debugFsPath is the path where debugfs should be mounted.
const debugFsPath = "/sys/kernel/debug"

// main is just a stub that prints out an error message and sets a nonzero exit
// code on failure. All of the work happens in `innerMain()`.
// code on failure. All the work happens in `innerMain()`.
func main() {
if err := run(); err != nil {
log.Fatalf("FAILED: %s", err.Error())
Expand Down Expand Up @@ -165,8 +172,13 @@ func run() error {
artifacts.FindAndUpload(timeoutCtx, args.bucket, prefix, args.artifactSearchPatterns)
}()

log.Printf("Mounting debugfs")
if err := mountDebugFS(); err != nil {
return trace.Wrap(err)
}

log.Printf("Running unit tests...")
err = runUnitTests(args.workspace)
err = runUnitTests(args.workspace, ch)
if err != nil {
return trace.Wrap(err, "unit tests failed")
}
Expand All @@ -176,14 +188,65 @@ func run() error {
return nil
}

func runUnitTests(workspace string) error {
cmd := exec.Command("make", "test")
func runUnitTests(workspace string, ch changes.Changes) error {
enableTests := []string{
"TELEPORT_ETCD_TEST=yes",
"TELEPORT_XAUTH_TEST=yes",
"TELEPORT_BPF_TEST=yes",
}

targets := []string{"test-go", "test-sh", "test-api"}
if ch.Helm {
targets = append(targets, "test-helm")
}
if ch.CI {
targets = append(targets, "test-ci")
}
if ch.Rust {
targets = append(targets, "test-rust")
}
if ch.Operator {
targets = append(targets, "test-operator")
}

log.Printf("Running test targets: %v", strings.Join(targets, " "))
cmd := exec.Command("make", targets...)
cmd.Dir = workspace
cmd.Env = os.Environ()
cmd.Env = append(cmd.Env, "TELEPORT_ETCD_TEST=yes")
cmd.Env = append(cmd.Env, "TELEPORT_XAUTH_TEST=yes")
cmd.Env = append(cmd.Env, enableTests...)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr

return cmd.Run()
}

// mountDebugFS mounts debugfs at /sys/kernel/debug, so BPF test can run in GCB.
func mountDebugFS() error {
if isDebugFsMounted() {
return nil
}
// equivalent to: mount -t debugfs none /sys/kernel/debug/
if err := unix.Mount("debugfs", debugFsPath, "debugfs", 0, ""); err != nil {
return trace.Wrap(err, "failed to mount debugfs")
}

return nil
}

// isDebugFsMounted returns true if debugfs is mounted, false otherwise.
func isDebugFsMounted() bool {
mounts, err := os.ReadFile("/proc/mounts")
if err != nil {
log.Warningf("Failed to read /proc/mounts: %v", err)
return false
}

for _, line := range strings.Split(string(mounts), "\n") {
tokens := strings.Fields(line)
if len(tokens) == 6 && tokens[0] == "debugfs" && tokens[1] == debugFsPath {
return true
}
}

return false
}
4 changes: 2 additions & 2 deletions .cloudbuild/scripts/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/gravitational/teleport/.cloudbuild/scripts

go 1.17
go 1.18

require (
cloud.google.com/go/secretmanager v1.2.0
Expand All @@ -11,6 +11,7 @@ require (
github.com/sirupsen/logrus v1.8.1
github.com/stretchr/testify v1.7.0
golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b
golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27
google.golang.org/genproto v0.0.0-20220218161850-94dd64e39d7c
)

Expand Down Expand Up @@ -42,7 +43,6 @@ require (
go.opencensus.io v0.23.0 // indirect
golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420 // indirect
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 // indirect
golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27 // indirect
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 // indirect
golang.org/x/text v0.3.6 // indirect
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
Expand Down
45 changes: 45 additions & 0 deletions .cloudbuild/scripts/internal/changes/changes.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,13 @@ import (

// Changes describes the kind of changes found in the analysed workspace.
type Changes struct {
CI bool
Docs bool
Code bool
Enterprise bool
Helm bool
Operator bool
Rust bool
}

// Analyze examines the workspace for specific changes using its git history,
Expand Down Expand Up @@ -64,6 +68,18 @@ func Analyze(workspaceDir string, targetBranch string, commitSHA string) (Change
case isDocChange(path):
report.Docs = true

case isHelmChange(path):
report.Helm = true

case isRustChange(path):
report.Rust = true

case isCIChange(path):
report.CI = true

case isOperatorChange(path):
report.Operator = true

default:
report.Code = true
}
Expand All @@ -78,6 +94,23 @@ func Analyze(workspaceDir string, targetBranch string, commitSHA string) (Change
return report, nil
}

func isCIChange(path string) bool {
path = strings.ToLower(path)
return strings.HasPrefix(path, ".cloudbuild/scripts")
}

func isOperatorChange(path string) bool {
path = strings.ToLower(path)
// dependency updates can impact CRD generation,
// so ensure that operator tests are run when
// dependencies change
return path == "go.mod" ||
path == "go.sum" ||
strings.HasPrefix(path, "operator/") ||
strings.HasPrefix(path, "api/types") || // the operator uses directly Teleport types
strings.HasPrefix(path, "lib/tbot") // the operator embeds a tbot instance
}

func isDocChange(path string) bool {
path = strings.ToLower(path)
return strings.HasPrefix(path, "docs/") ||
Expand All @@ -86,6 +119,18 @@ func isDocChange(path string) bool {
strings.HasPrefix(path, "rfd/")
}

func isRustChange(path string) bool {
path = strings.ToLower(path)
return strings.HasSuffix(path, ".rs") ||
strings.HasSuffix(path, "Cargo.toml") ||
strings.HasSuffix(path, "Cargo.lock")
}

func isHelmChange(path string) bool {
path = strings.ToLower(path)
return strings.HasPrefix(path, "examples/chart/")
}

// getChanges resolves the head of target branch and compares the trees at the
// the target branch and the supplied commit SHA.
func getChanges(repo *git.Repository, targetBranch, commit string) (object.Changes, error) {
Expand Down
Loading