Skip to content
This repository was archived by the owner on Aug 24, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
479 commits
Select commit Hold shift + click to select a range
525effe
helm: Discord access-request helm chart (#689)
hugoShaka Nov 9, 2022
cd35664
Release 11.0.3 (#701)
r0mant Nov 15, 2022
2367060
Introduced GitHub Actions workflows (#705)
r0mant Nov 17, 2022
f73c305
Add discord to release pipeline (#697)
hugoShaka Nov 18, 2022
66710a2
access/discord: Add missing README (#708)
hugoShaka Nov 21, 2022
458f4ad
CodeQL: Rename from codeql-analysis.yml to codeql.yml (#709)
jentfoo Nov 22, 2022
34a9572
Use HTTPS for loading maps.google.com script (#710)
jentfoo Nov 23, 2022
215fb95
Release 11.1.0 (#713)
r0mant Nov 29, 2022
e378a9e
Release 11.1.1 (#715)
r0mant Dec 1, 2022
9ccf4d9
Release 11.1.2 (#716)
r0mant Dec 6, 2022
9305dbe
Fix docs link for Slack plugin guide in README (#720)
webvictim Dec 13, 2022
870d058
bump go to 1.19.4 (#719)
marcoandredinis Dec 13, 2022
adbf72d
terraform: add test showing IAM provision token support (#722)
hugoShaka Dec 15, 2022
0cfa86d
Add Dependency Review Action (#721)
jentfoo Dec 15, 2022
0136562
Release 11.1.4 (#724)
zmb3 Dec 23, 2022
634216f
Github Actions updates (#727)
r0mant Dec 29, 2022
98c2bed
Update minimum Go version to 1.19 (#731)
zmb3 Jan 10, 2023
ea5ef38
Release 11.2.0 (#730)
zmb3 Jan 10, 2023
71d50ae
sign drone file (#733)
zmb3 Jan 10, 2023
0377dbe
Extract slack access plugin to own package (#729)
justinas Jan 11, 2023
3e9f2de
Release 11.2.1 (#734)
zmb3 Jan 11, 2023
751e06b
bump go to 1.19.5 (#736)
marcoandredinis Jan 13, 2023
6885da3
Update outdated README (#737)
greedy52 Jan 19, 2023
3c9a7db
Release 11.2.2 (#743)
r0mant Jan 20, 2023
57101d4
Swap to using StdEncoding over RawStdEncoding to handle padding (#741)
EdwardDowling Jan 23, 2023
a18e314
Add License to all files (#744)
marcoandredinis Jan 24, 2023
e62b49c
Add foundation for short-lived OAuth token support to Slack plugin (#…
justinas Jan 24, 2023
a9fe6c3
Release 11.2.3 (#745)
EdwardDowling Jan 24, 2023
ae95bce
Extract Teleport client interface in access plugins (#746)
justinas Jan 30, 2023
7f0f1a6
Release 11.3.1 (#748)
r0mant Jan 30, 2023
2035067
Plugins Docker build (#749)
r0mant Jan 30, 2023
bb0b0f9
Remove GCB checks (#750)
r0mant Jan 31, 2023
78d965f
Fix terraform example for saml connector (#752)
marcoandredinis Jan 31, 2023
d1d64ae
Correct key in example yaml (#751)
marcoandredinis Jan 31, 2023
9d895cc
Release 11.3.2 (#754)
r0mant Feb 2, 2023
de981b8
Update Teleport API to v12 (#742)
marcoandredinis Feb 7, 2023
6e761e1
Release 12.0.1 (#755)
r0mant Feb 7, 2023
d3f2d5b
Update Teleport used in tests to 12.0.1 (#757)
marcoandredinis Feb 7, 2023
18ac387
Decrease TestDecorr flakiness (#758)
marcoandredinis Feb 10, 2023
1defd18
Remove problematic "Zone:Identifier" file (#760)
justinas Feb 10, 2023
76d09cf
Release 12.0.2 (#762)
r0mant Feb 13, 2023
bc85392
Improve TestSSH assertions (#759)
marcoandredinis Feb 15, 2023
19df7c0
Update go to 1.20.1 (#761)
marcoandredinis Feb 24, 2023
668de8d
Go Dependency Updates (#766)
jentfoo Feb 24, 2023
c6d5f97
update fluentd doc path (#767)
Feb 27, 2023
041def7
Update NodeJS Example app dependencies (#753)
marcoandredinis Feb 27, 2023
67b664f
Release 12.0.4 (#774)
r0mant Feb 28, 2023
cec8918
Align helm unittest versions + buddy-765 (#777)
hugoShaka Mar 3, 2023
61fea23
Release 12.0.5 (#779)
r0mant Mar 3, 2023
0cb3d3d
Update gosaml2 version to 0.9.0 (#781)
marcoandredinis Mar 6, 2023
5f49efa
Pin package versions to match Teleport v12 (#773)
justinas Mar 6, 2023
51f69d4
Tests: use v12.1.0 Teleport (#780)
marcoandredinis Mar 7, 2023
c22c725
Release 12.1.0 (#782)
r0mant Mar 7, 2023
c98067f
Fix update-version target to not require old Helm test plugin (#784)
r0mant Mar 7, 2023
6a6769b
Update go to 1.20.2 (#785)
marcoandredinis Mar 9, 2023
2d9a6fd
Release 12.1.1 (#786)
r0mant Mar 14, 2023
a8518f5
CodeQL: Switch from `make` to auto build
jentfoo Mar 15, 2023
153c31d
Warn users when an unsupported event is received by `event-handler` (…
tigrato Mar 17, 2023
b5a3cb3
Unit tests should not run Terraform tests (#791)
marcoandredinis Mar 23, 2023
ceb9c22
feat: terraform provider support for login rules (#776)
nklaassen Mar 23, 2023
e0bf520
Add buffer section to fluentd configuration (#795)
tigrato Mar 30, 2023
8e802fc
Release 12.1.5 (#796)
r0mant Apr 3, 2023
ad661e4
Replace slack and supporting libs with teleport dependencies (#793)
justinas Apr 4, 2023
2ad68ad
Fix integration tests in Drone (#797)
justinas Apr 4, 2023
63fa9a2
Release 12.2.1 (#800)
r0mant Apr 7, 2023
3d1ea83
Add the Trivy misconfiguration scanner
jof Apr 4, 2023
5af691f
.github/workflows/trivy.yaml: Fix branch
jof Apr 5, 2023
df033a6
Bump github.com/crewjam/saml from 0.4.12 to 0.4.13 (#792)
dependabot[bot] Apr 12, 2023
7b0bf4d
Update go to 1.20.3 (#802)
marcoandredinis Apr 12, 2023
3c3e952
Release 12.2.3 (#804)
r0mant Apr 14, 2023
bc4f822
Discord plugin helm chart did not have appversion (#806)
stevenGravy Apr 17, 2023
0a4eec5
Release 12.2.4 (#807)
r0mant Apr 20, 2023
942ff6f
Apt install add `--no-install-recommends`
jentfoo May 1, 2023
13fd439
Update go to 1.20.4 (#813)
marcoandredinis May 3, 2023
e2cbb9e
Release 12.3.1 (#814)
r0mant May 3, 2023
4a1e36a
Build universal binary for MacOS terraform plugin (#812)
camscale May 3, 2023
5f0b726
TF: use Teleport Token.ID as TF Token's ID instead of name (#815)
marcoandredinis May 5, 2023
664b646
tf-provider: fix import error messages
hugoShaka May 4, 2023
a103308
tf-provider: fix import error messages - generation
hugoShaka May 4, 2023
1c701ba
sign .drone.yml (#818)
camscale May 10, 2023
3e959b1
Release 13.0.0 (#817)
r0mant May 11, 2023
2274cab
drone: Fix invocation of multiple make commands (#823)
camscale May 11, 2023
d4c1d7e
Fixes arm64 terraform provider promotion (#824)
tcsc May 15, 2023
6c34500
Release 13.0.2 (#827)
r0mant May 17, 2023
7b7f8df
TF: autogenerate ref docs (#790)
marcoandredinis May 18, 2023
cc17052
(buddy) Fix typos in email plugin chart readme (#828)
r0mant May 18, 2023
335351e
Integration Tests: add setup-teleport action (#830)
marcoandredinis May 25, 2023
9b27429
Release 13.0.3 (#831)
r0mant May 26, 2023
6eb0705
Add Okta import rule to Terraform. (#829)
May 26, 2023
125318e
Device trust terraform provider (#801)
flyinghermit May 29, 2023
81930e7
TF Ref Docs: Update to 13.0.3 (#832)
marcoandredinis May 29, 2023
8337a54
update terraform readme to use [email protected] (#833)
flyinghermit May 30, 2023
85596a5
Update tooling dep ProtonMail/go-crypto (#834)
marcoandredinis May 30, 2023
2513618
Bump `json` deps in java example apps (#835)
marcoandredinis May 30, 2023
7b67e20
RFD 3: Event handler unknown events (#821)
tigrato May 30, 2023
5f23134
fix link to mattermost access request docs (#839)
stevenGravy May 31, 2023
fe8448c
TF: Provision Token does not require `Metadata.Expires` fields (#838)
marcoandredinis May 31, 2023
77cb6df
Release 13.0.4 (#842)
r0mant Jun 1, 2023
dfd0c46
Ignore error when session doesn't return events. (#841)
tigrato Jun 1, 2023
e4b2e50
Make release and install for event-handler like other plugins (#843)
stevenGravy Jun 2, 2023
198611c
Release 13.1.0 (#846)
r0mant Jun 6, 2023
f8d139b
Fix order of variables in event-handler makefile (#847)
stevenGravy Jun 6, 2023
9a3cff3
Update go to 1.20.5 (#848)
marcoandredinis Jun 6, 2023
27da62c
Use unstructured endpoints for fetching audit log events (#836)
tigrato Jun 7, 2023
8f66212
Release 13.1.1 (#849)
r0mant Jun 15, 2023
87275b0
`access/pagerduty`: Transplants PagerDuty plugin code to `teleport` (…
tcsc Jun 22, 2023
7a94735
Release 13.1.5 (#851)
zmb3 Jun 27, 2023
4e3a96b
Pin Golang Docker image to Debian 11 (#854)
jakule Jun 28, 2023
ebba365
Release 13.2.0 (#855)
r0mant Jul 6, 2023
73b474a
Update go to 1.20.6 (#859)
marcoandredinis Jul 12, 2023
e4b6267
Disable CGO for event handler (#857)
timothyb89 Jul 13, 2023
3dad320
Use an array instead of string (#861)
programmerq Jul 13, 2023
9b42f64
[PagerDuty] Restores pagerduty config loader (#865)
tcsc Jul 14, 2023
c812325
Bump semver from 7.3.8 to 7.5.4 in /apps/example-nodejs-jwt (#860)
dependabot[bot] Jul 14, 2023
bdf19fd
Release 13.2.1 (#864)
r0mant Jul 14, 2023
93ea938
Release 13.2.2 (#867)
r0mant Jul 17, 2023
3efce07
[buddy] Add standard annotation support to Slack plugin (#872)
tigrato Jul 20, 2023
88fe715
Update CODEOWNERS (#874)
r0mant Jul 20, 2023
90ae5c0
Release 13.2.3 (#873)
tcsc Jul 21, 2023
370b80c
Removes JIRA plugin source (#866)
tcsc Jul 26, 2023
f953742
fix: pass proto messages by pointer (#875)
nklaassen Jul 26, 2023
48c7753
Release 13.2.5 (#877)
camscale Jul 27, 2023
b968dc5
Extracts Discord plugin source (#879)
tcsc Aug 1, 2023
acb69ac
Release 13.3.0 (#880)
fheinecke Aug 1, 2023
be45283
Trivy: Add ignore for AVD-KSV-01010
jof Aug 3, 2023
e319bff
Release 13.3.1 (#883)
r0mant Aug 4, 2023
3c6d1a3
Update go to 1.20.7 (#884)
marcoandredinis Aug 8, 2023
ba3996d
Release 13.3.2 (#887)
r0mant Aug 9, 2023
00d794f
charts: enable fail-fast feature flag on all plugin charts (#890)
hugoShaka Aug 15, 2023
ebfd583
chore: bump watcherjob library (#892)
hugoShaka Aug 15, 2023
1074401
Remove mattermost codes that were moved to teleport repo (#876)
kimlisa Aug 18, 2023
b7274db
Add in jwt_claims, update okta_import_rules misnamed field. (#893)
Aug 21, 2023
f85af1f
Teleport Plugins release 13.3.4 (#896)
tcsc Aug 21, 2023
86fa2a1
Adds local teleport repo to ref update script (#889)
tcsc Aug 22, 2023
d0b863e
Release 13.3.5 (#897)
camscale Aug 23, 2023
d42247f
Release 13.3.6 (#898)
zmb3 Aug 25, 2023
6f7392f
TF: add `oidc_connector.spec.max_age` field (#899)
marcoandredinis Aug 30, 2023
dba054c
Release 13.3.7 (#900)
fheinecke Aug 30, 2023
ab4fe0c
TF: fix unset `oidc_connector.spec.max_age` (#902)
marcoandredinis Sep 6, 2023
ca7afa9
`event-handler`: Remove `namespace` configuration
jof Sep 5, 2023
df998a4
Don't use the same CN for all mTLS certs (#901)
skodde Sep 6, 2023
47d0a14
Release 13.3.8 (#908)
r0mant Sep 7, 2023
4d29d70
Update go to 1.20.8 (#907)
marcoandredinis Sep 7, 2023
01d6f80
event-handler: Add subjectAltName to certificates and remove unused a…
jof Sep 3, 2023
c05e46a
Drone: Use curl --no-progress-meter
jof Sep 7, 2023
0d862dc
Drone: test-linux: Fix Terraform install
jof Sep 7, 2023
948585e
Expose ClusterMaintenenceConfig options to terraform (#886)
Sep 14, 2023
1538579
CI: update terraform, teleport and go linter (#909)
marcoandredinis Sep 20, 2023
fd33f22
Prepare for Teleport V14 (#920)
marcoandredinis Sep 21, 2023
ff5d367
Release 14.0.0 (#917)
camscale Sep 21, 2023
59742cc
ci: Combine linux and darwin tag pipelines (#922)
camscale Sep 21, 2023
1c80029
Remove mac exec pipelines (#923)
wadells Sep 21, 2023
3068af9
ci: Build Linux ARM64 terraform provider (#926)
camscale Sep 25, 2023
196af73
Stop publishing remaining plugins to quay.io (and remove all referenc…
reedloden Sep 26, 2023
efa67e1
Update base docker images to use Debian 12 distroless base image (#928)
reedloden Sep 26, 2023
ec0d0c8
TF: allow Role V7 resource (#925)
marcoandredinis Sep 26, 2023
68a52ad
Release 14.0.1 (#929)
fheinecke Sep 27, 2023
bbc3714
terraform: access list support (#916)
hugoShaka Sep 27, 2023
27c1763
Compile plugins as static (`CGO_ENABLED=0`) (#936)
reedloden Sep 29, 2023
ad74a5d
docs: Revise top-level ReadMe to point to official documentation (#932)
lsgunn-teleport Oct 2, 2023
bf32a9d
docs: Revise access README (#933)
lsgunn-teleport Oct 3, 2023
2c82d70
docs: Remove old Discord plugin content, point to the new location an…
lsgunn-teleport Oct 3, 2023
4037e0c
docs: Remove old Email content, point to official documentation (#938)
lsgunn-teleport Oct 3, 2023
5d2c9fd
Remove old Mattermost plugin content, point to the new location and o…
lsgunn-teleport Oct 3, 2023
0d5ec8d
Remove duplicate test (#930)
marcoandredinis Oct 4, 2023
7373912
Pin Teleport Terraform Provider to Teleport major version (#937)
tigrato Oct 4, 2023
46740d6
Update go to 1.21.2 (#945)
marcoandredinis Oct 6, 2023
18082a7
Remove old content, point to new loaction and official documentation …
lsgunn-teleport Oct 10, 2023
7c383e8
Remove old content, add pointer to the main Teleport repo and officia…
lsgunn-teleport Oct 10, 2023
e4be012
Relax mandatory FluentD's key and cert (#948)
tigrato Oct 10, 2023
87a709e
chore: Bump Go to v1.21.3 (#947)
reedloden Oct 10, 2023
0fcd284
event-handler: Fix confusing error (#949)
webvictim Oct 10, 2023
ee15ea6
Remove old content and point to official documentation (#941)
lsgunn-teleport Oct 10, 2023
1099350
Remove old content, point to new location and official documentation …
lsgunn-teleport Oct 10, 2023
6fd93ae
Fix `update_goversion` target to update go.mod's toolchain (#950)
marcoandredinis Oct 12, 2023
a7d711b
Release 14.0.3 (#952)
tcsc Oct 12, 2023
222b6f4
Ensure membership_requires and ownership_requires are optional. (#957)
Oct 18, 2023
4678dcc
terraform: add custom type to access list notification start field (#…
marcoandredinis Oct 19, 2023
921c418
Release 14.1.0 (#962)
camscale Oct 19, 2023
fc9c5db
Bump org.json:json (#960)
dependabot[bot] Oct 31, 2023
cf623f2
Bump org.json:json in /apps/example-tomcat-jwt/eclipseproject/samplea…
dependabot[bot] Oct 31, 2023
d4df9ba
Access Plugins: Support dynamic credential reloading (#956)
strideynet Nov 1, 2023
ac1d17f
Update go to 1.21.4 (#968)
marcoandredinis Nov 17, 2023
58246ac
Release 14.1.5 (#970)
r0mant Nov 17, 2023
d0e372b
Release 14.2.0 (#971)
camscale Nov 21, 2023
2b8d5ee
[Buddy] fix leaking go-routines in event-handler watcher (#966)
Joerger Nov 28, 2023
0037058
Release 14.2.1 (#976)
r0mant Dec 1, 2023
d6835de
Terraform Provider: organize imports of generated code (#977)
rosstimothy Dec 5, 2023
fc8eeed
update go 1.21.5 (#979)
marcoandredinis Dec 6, 2023
a643d77
Release 14.2.3 (#984)
camscale Dec 15, 2023
f59c779
Bump golang.org/x/crypto from 0.14.0 to 0.17.0 in /tooling (#987)
dependabot[bot] Dec 19, 2023
eb59bda
Bump golang.org/x/crypto from 0.15.0 to 0.17.0 (#988)
dependabot[bot] Dec 19, 2023
b16e69e
Replace guide content with link to docs website (#989)
strideynet Dec 20, 2023
d29f14c
Helm: Improve compatibility with Machine ID (#986)
strideynet Dec 27, 2023
da8835e
Release 14.3.0 (#993)
zmb3 Dec 30, 2023
5137d91
Bump github.com/go-resty/resty/v2 from 2.10.0 to 2.11.0 (#997)
dependabot[bot] Jan 10, 2024
466cdcd
Bump github.com/cloudflare/circl from 1.3.3 to 1.3.7 in /tooling (#996)
dependabot[bot] Jan 10, 2024
d4ab71c
chore: Bump Go to v1.21.6 (#1000)
reedloden Jan 10, 2024
0e71825
Release 14.3.1 (#1002)
camscale Jan 11, 2024
f60d3a2
Release 14.3.2 (#1005)
camscale Jan 12, 2024
680e6d2
Release 14.3.3 (#1006)
camscale Jan 15, 2024
c901dda
Added placeholder workflows for build/publish (#1009)
fheinecke Jan 18, 2024
d22f782
tf: propagate the next-audit-date from the existing resource (#1008)
hugoShaka Jan 22, 2024
68df108
terraform provider does not load `~/.tsh` creds by default (#1011)
GavinFrazar Jan 30, 2024
94c0928
tf: make version mandatory (#1007)
hugoShaka Jan 30, 2024
5ec5c8b
Terraform Provider: Use updated APIs for Users, Roles, & Auth Connect…
rosstimothy Jan 31, 2024
30fdd6c
[buddy] feat: update pods deployment labels (#1013)
tigrato Jan 31, 2024
847d910
fix markdown code block in tf reference (#1014)
hugoShaka Jan 31, 2024
02598bf
Release 15.0.0 (#1015)
camscale Feb 1, 2024
c145be5
bump teleport provider min version (#1017)
hugoShaka Feb 2, 2024
3937741
Release 15.0.1 (#1018)
camscale Feb 6, 2024
be95378
Update go to 1.21.7 (#1020)
marcoandredinis Feb 8, 2024
7165910
Release 15.0.2 (#1023)
fheinecke Feb 17, 2024
cb4d95e
Migrated Drone pipelines to GHA (#983)
fheinecke Feb 17, 2024
c08be97
Removed old build image on push pipeline (#1024)
fheinecke Feb 20, 2024
a194b38
Exclude `AccessList.status` from terraform protoc generator (#1027)
tigrato Mar 1, 2024
e35647f
Release 15.1.1 (#1028)
camscale Mar 2, 2024
e80b5a7
Fixed ref checking logic on build events (#1029)
fheinecke Mar 4, 2024
096962f
Update go to 1.21.8 (#1030)
marcoandredinis Mar 6, 2024
4d65200
Update github.com/containerd/containerd to 1.7.14
jentfoo Mar 12, 2024
904a6e6
Bump github.com/go-jose/go-jose/v3 from 3.0.1 to 3.0.3 (#1032)
dependabot[bot] Mar 12, 2024
0c59f12
Bump jose from 4.11.2 to 4.15.5 in /apps/example-nodejs-jwt (#1031)
dependabot[bot] Mar 12, 2024
20452fb
Release 15.1.4 (#1035)
fheinecke Mar 13, 2024
80ab90f
Bump github.com/jackc/pgx/v5 from 5.5.1 to 5.5.4 (#1036)
dependabot[bot] Mar 16, 2024
c9b8bfa
Release 15.1.6 (#1037)
camscale Mar 16, 2024
bcf05bd
Release 15.1.8 (#1038)
camscale Mar 18, 2024
3c6a6b7
Release 15.1.9 (#1039)
camscale Mar 20, 2024
15d484f
Bump github.com/docker/docker (#1041)
dependabot[bot] Mar 22, 2024
2097188
add terraform support for Teleport servers (#1019)
hugoShaka Mar 27, 2024
38eeff1
Relax Terraform provider version re-creation condition (#1042)
hugoShaka Mar 27, 2024
2956c8b
Release 15.1.10 (#1044)
tcsc Mar 28, 2024
c178b25
Updates Teleport binary used in tests to 15.2.0 (#1040)
marcoandredinis Apr 2, 2024
a7eff09
Release 15.2.0 (#1046)
camscale Apr 3, 2024
dd4ce24
Update go to 1.21.9 (#1050)
marcoandredinis Apr 4, 2024
9ec3d1a
use the new bot API while keeping a similar behaviour (#1047)
hugoShaka Apr 4, 2024
8b9a48b
use vendored email (#1048)
hugoShaka Apr 4, 2024
f8a1977
use vendored msteams (#1049)
hugoShaka Apr 4, 2024
06de907
Update CI Lint to 1.57.2 (#1051)
marcoandredinis Apr 4, 2024
39e50cc
Release 15.2.1 (#1052)
camscale Apr 9, 2024
d5334db
Temporarily ignore ProvisionToken.Spec.TPM (#1053)
hugoShaka Apr 12, 2024
cc99f5b
Release 15.2.2 (#1054)
fheinecke Apr 12, 2024
7dadb8b
Release 15.2.4 (#1058)
camscale Apr 25, 2024
a9c70c3
Release 15.3.0 (#1060)
camscale May 1, 2024
380feaa
Bump protoc-gen-terraform version to v2.2.0 (#1064)
strideynet May 3, 2024
75f122f
Event-Handler: Add ability to skip Teleport events (#1063)
tigrato May 3, 2024
7df001e
Drop swallow of `trace.BadParameter` errors in `SearchEvents` (#1062)
tigrato May 6, 2024
819f62a
Release 15.3.1 (#1066)
camscale May 8, 2024
643e911
Backport provision token booltype fix (#1065)
hugoShaka May 14, 2024
f2e0f56
Update go to 1.21.10 (#1067)
marcoandredinis May 16, 2024
8e0548d
add archive notice (#1073)
hugoShaka Jun 4, 2024
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
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
411 changes: 0 additions & 411 deletions .drone.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Default owners for items not matched below

* @klizhentas @russjones @r0mant
* @klizhentas @russjones @r0mant @Joerger @tcsc @zmb3 @camscale @fheinecke
53 changes: 53 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: "CodeQL"

on:
push:
branches:
- master
pull_request:
branches:
- master
paths-ignore:
- 'rfd/**'
- '**.md'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'go', 'javascript' ]

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
cache: false
go-version-file: go.mod
if: ${{ matrix.language == 'go' }}

- name: Initialize the CodeQL tools for scanning
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
timeout-minutes: 5

- name: Autobuild
uses: github/codeql-action/autobuild@v2
timeout-minutes: 30

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
timeout-minutes: 10
13 changes: 13 additions & 0 deletions .github/workflows/dependency-review.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Dependency Review

on:
pull_request:

jobs:
dependency-review:
uses: gravitational/shared-workflows/.github/workflows/dependency-review.yaml@main
permissions:
contents: read
with:
# gravitational/teleport misdetected as "v0"
allow-ghsas: GHSA-6xf3-5hp7-xqqg
29 changes: 29 additions & 0 deletions .github/workflows/helm-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Plugins Tests (Helm)
run-name: Plugins Tests (Helm) - ${{ github.run_id }} - @${{ github.actor }}

on:
push:
branches:
- master
pull_request:

jobs:
test:
name: Plugins Tests (Helm)
runs-on: ubuntu-latest
steps:
- name: Checkout Teleport Plugins
uses: actions/checkout@v3

- name: Setup Helm 3.5.2
uses: azure/setup-helm@v3
with:
version: '3.5.2'

- name: Setup helm-unittest
run: |
helm plugin install --version=v0.2.11 https://github.com/quintush/helm-unittest
helm plugin list

- name: Run tests
run: make test-helm
32 changes: 32 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Plugins Lint (Go)
run-name: Plugins Lint (Go) - ${{ github.run_id }} - @${{ github.actor }}
on:
push:
branches:
- master
pull_request:

jobs:
lint:
name: Plugins Lint (Go)
runs-on: ubuntu-latest

permissions:
contents: read

steps:
- name: Checkout Teleport Plugins
uses: actions/checkout@v3

- name: Setup Go
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.57.2

- name: Run linter
run: make lint
237 changes: 237 additions & 0 deletions .github/workflows/tag-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,237 @@
---
name: Build release
on:
workflow_dispatch:
inputs:
artifact-tag:
description: "The tag associated with the artifact to deploy (eg. v1.2.3)."
type: string
required: true
# This is a workaround so that the actor who initiated a workflow run via a workflow dispatch event can determine the run ID of the started workflow run
workflow-tag:
description: "This field adds the provided value to a run step, allowing the calling actor to associate the started run with the GHA run ID."
type: string
required: false
pull_request:
branches:
- master
push:
tags:
- "v*"
branches:
- master

concurrency:
group: "Limit to one build at a time for ref ${{ inputs.artifact-tag || github.head_ref || github.ref }}"
cancel-in-progress: true

jobs:
setup:
runs-on: ubuntu-latest
outputs:
gitref: ${{ steps.set-gitref.outputs.gitref }}
environment: ${{ steps.set-variables.outputs.environment }}
version: ${{ steps.set-variables.outputs.version }}
steps:
# TODO this really needs to move to shared workflows. This is the ~fourth place
# that this logic has been used.
- name: Determine git ref
id: set-gitref
env:
REF_VALUE: ${{ inputs.artifact-tag || github.head_ref || github.ref }}
run: |
# If a workflow dispatche triggered the run
if [ "$GITHUB_EVENT_NAME" == "workflow_dispatch" ]; then
# REF_VALUE = inputs.artifact-tag, tag name
echo "gitref=refs/tags/$REF_VALUE" >> "$GITHUB_OUTPUT"
exit 0
fi

# If a push triggered the run
if [ "$GITHUB_EVENT_NAME" == "push" ]; then
# REF_VALUE = github.ref (fully formed)
echo "gitref=$REF_VALUE" >> "$GITHUB_OUTPUT"
exit 0
fi

# Otherwise, ref must be a branch
# REF_VALUE = github.head_ref, branch name
echo "gitref=refs/heads/$REF_VALUE" >> "$GITHUB_OUTPUT"
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ steps.set-gitref.outputs.gitref }}
- name: Set environment output values
id: set-variables
env:
INPUT_VERSION: ${{ inputs.artifact-tag }}
SEMVER_REGEX: ^v?(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-(?:(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?:[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$
run: |
generate_version() {
# Example: v1.2.3-gen.4+g5678abcd
# If HEAD is tagged (and matches the format) then the output will be just the tag (no commit count or hash)
git describe --tags --match "v[[:digit:]]*.[[:digit:]]*.[[:digit:]]" | sed 's/\(.*\)-\(.*\)-\(.*\)/\1-gen.\2+\3/'
}

get_output_vars() {
case "$GITHUB_EVENT_NAME" in
"workflow_dispatch")
# Case: workflow dispatch event. Pull most vars from inputs.
echo "environment=build-stage"
echo "version=$INPUT_VERSION"
;;
"pull_request")
echo "environment=build-stage"
echo "version=$(generate_version)"
;;
"push")
# Case: commit push event.
if [ "$GITHUB_REF_TYPE" != "tag" ]; then
echo "environment=build-stage"
echo "version=$(generate_version)"
return
fi

# Case: tag event with prerelease version.
if [ "${GITHUB_REF_NAME#*-}" != "$GITHUB_REF_NAME" ]; then
echo "environment=build-stage"
echo "version=$GITHUB_REF_NAME"
return
fi

# Case: tag event with release version. Only this
# should go to prod.
echo "environment=build-prod"
echo "version=$GITHUB_REF_NAME"
;;
*)
>&2 echo "Unknown GHA event $GITHUB_EVENT_NAME, failing"
exit 1
;;
esac
}

# **********************************************
# WARNING: the $GITHUB_OUTPUT file is sourced
# by the shell below. Multiline comments will
# break parsing and cause a build failure. For
# details, see
# https://github.com/gravitational/teleport-plugins/pull/983#discussion_r1477745917
# **********************************************
get_output_vars >> "$GITHUB_OUTPUT"

# Validate the semver
. "$GITHUB_OUTPUT" # Load the variables into the current environment
echo "$version" | grep -qP "$SEMVER_REGEX" || { echo "The artifact version $version is not a valid semver-coerced value"; exit 1; }

# Log the build details
echo "Built config:" | tee -a "$GITHUB_STEP_SUMMARY"
sed 's/^/* /' "$GITHUB_OUTPUT" | tee -a "$GITHUB_STEP_SUMMARY"
- name: ${{ inputs.workflow-tag }}
if: inputs.workflow-tag != ''
run: |
# Do nothing
# Each section here could be split out into a separate job, at the cost of slightly increased complexity.
# This would improve the (already somewhat fast) performance a bit, but I'm not sure if it's worth the
# tradeoff.
build-plugins:
needs: setup
runs-on: ubuntu-22.04-32core
environment: ${{ needs.setup.outputs.environment }}
permissions:
contents: read
id-token: write
env:
ARTIFACT_DIRECTORY: /tmp/build
steps:
# Setup
- name: Enable performance telemetry/metrics
uses: catchpoint/workflow-telemetry-action@v2
with:
comment_on_pr: false
- name: Checkout repo
uses: actions/checkout@v4
with:
ref: ${{ needs.setup.outputs.gitref }}
fetch-depth: 0 # This is required by some of the commands in the makefiles
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: "./go.mod"
check-latest: true
- name: Set environment variables for Makefiles
env:
VERSION_TAG: ${{ needs.setup.outputs.version }}
run: |
{
echo "VERSION=${VERSION_TAG##v}"
echo "GITREF=$VERSION_TAG"
} >> "$GITHUB_ENV"
# File artifacts
- name: Build the release tarballs
run: |
# Download Go dependencies
go mod download

# Build Binaries
make releases

# Build Helm charts
make helm-package-charts

# Terraform provider and event handler, as appropriate
go install github.com/konoui/lipo@latest # At some point this should be merged into the buildbox
make OS=linux ARCH=amd64 release/terraform release/event-handler
make OS=linux ARCH=arm64 release/terraform
make OS=darwin ARCH=amd64 release/terraform release/event-handler
make OS=darwin ARCH=arm64 release/terraform
make OS=darwin ARCH=universal release/terraform
- name: Collect the build files
run: |
mkdir -pv "$ARTIFACT_DIRECTORY"
find . \( -name '*.tar.gz' -o -name '*.tgz' \) -type f -exec cp {} "$ARTIFACT_DIRECTORY" \;
- name: Generate checksum files for built files
working-directory: ${{ env.ARTIFACT_DIRECTORY }}
run: |
shopt -s nullglob
for tarball in *.tar.gz *.tgz; do
sha256sum "$(basename "$tarball")" > "${tarball}.sha256"
done
echo "Artifacts:"
ls -lh
- name: Assume AWS role for uploading the artifacts
uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4.0.1
with:
role-skip-session-tagging: true
aws-region: us-west-2
role-to-assume: ${{ vars.ARTIFACT_UPLOAD_AWS_ROLE }}
role-session-name: "tag-build-artifact-upload-${{ github.run_attempt }}"
role-duration-seconds: 900
- name: Upload artifacts to S3
working-directory: ${{ env.ARTIFACT_DIRECTORY }}
env:
PENDING_BUCKET: ${{ vars.PENDING_BUCKET }}
ARTIFACT_VERSION: ${{ needs.setup.outputs.version }}
run: aws s3 cp . "s3://$PENDING_BUCKET/teleport-plugins/tag/$ARTIFACT_VERSION/" --recursive
# Container artifacts
- name: Assume AWS role for pushing the container images
uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4.0.1
with:
role-skip-session-tagging: true
aws-region: us-west-2
role-to-assume: ${{ vars.CONTAINER_IMAGE_UPLOAD_AWS_ROLE }}
role-session-name: "tag-build-container-image-upload-${{ github.run_attempt }}"
role-duration-seconds: 900
- name: Authenticate with ECR
env:
CONTAINER_IMAGE_PRIVATE_REGISTRY: ${{ vars.CONTAINER_IMAGE_PRIVATE_REGISTRY }}
run: |
aws ecr get-login-password | docker login -u="AWS" --password-stdin "$CONTAINER_IMAGE_PRIVATE_REGISTRY"
- name: Build and push the container images
env:
CONTAINER_IMAGE_PRIVATE_REGISTRY: ${{ vars.CONTAINER_IMAGE_PRIVATE_REGISTRY }}
run: |
# Access plugins and event handler
make DOCKER_PRIVATE_REGISTRY="$CONTAINER_IMAGE_PRIVATE_REGISTRY" \
docker-push-access-all docker-push-event-handler
Loading