Tiago Silva
bc666aeb3a
Fix json tag typo ( #26507 )
...
The json tag `omitempty` was misspelled.
2023-05-18 15:44:08 +00:00
dependabot-batcher[bot]
15aba3c190
Batched Dependabot updates ( #26209 )
...
* Bump github.com/docker/distribution
Bumps [github.com/docker/distribution](https://github.com/docker/distribution ) from 2.8.1+incompatible to 2.8.2+incompatible.
- [Release notes](https://github.com/docker/distribution/releases )
- [Commits](https://github.com/docker/distribution/compare/v2.8.1...v2.8.2 )
---
updated-dependencies:
- dependency-name: github.com/docker/distribution
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump github.com/docker/distribution in /integrations/kube-agent-updater
Bumps [github.com/docker/distribution](https://github.com/docker/distribution ) from 2.8.1+incompatible to 2.8.2+incompatible.
- [Release notes](https://github.com/docker/distribution/releases )
- [Commits](https://github.com/docker/distribution/compare/v2.8.1...v2.8.2 )
---
updated-dependencies:
- dependency-name: github.com/docker/distribution
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump golang.org/x/net from 0.9.0 to 0.10.0 in /api
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.9.0 to 0.10.0.
- [Commits](https://github.com/golang/net/compare/v0.9.0...v0.10.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump libc from 0.2.143 to 0.2.144
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.143 to 0.2.144.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.143...0.2.144 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump rsa from 0.9.1 to 0.9.2
Bumps [rsa](https://github.com/RustCrypto/RSA ) from 0.9.1 to 0.9.2.
- [Changelog](https://github.com/RustCrypto/RSA/blob/master/CHANGELOG.md )
- [Commits](https://github.com/RustCrypto/RSA/compare/v0.9.1...v0.9.2 )
---
updated-dependencies:
- dependency-name: rsa
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump github.com/aws/aws-sdk-go-v2/service/sts from 1.18.11 to 1.19.0
Bumps [github.com/aws/aws-sdk-go-v2/service/sts](https://github.com/aws/aws-sdk-go-v2 ) from 1.18.11 to 1.19.0.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases )
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.18.11...service/s3/v1.19.0 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/sts
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump golang.org/x/sys from 0.7.0 to 0.8.0
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.7.0 to 0.8.0.
- [Commits](https://github.com/golang/sys/compare/v0.7.0...v0.8.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/sys
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump github.com/aws/aws-sdk-go-v2/config from 1.18.23 to 1.18.25
Bumps [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2 ) from 1.18.23 to 1.18.25.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases )
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.18.23...config/v1.18.25 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/config
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump github.com/Azure/azure-sdk-for-go/sdk/azcore from 1.5.0 to 1.6.0
Bumps [github.com/Azure/azure-sdk-for-go/sdk/azcore](https://github.com/Azure/azure-sdk-for-go ) from 1.5.0 to 1.6.0.
- [Release notes](https://github.com/Azure/azure-sdk-for-go/releases )
- [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/main/documentation/release.md )
- [Commits](https://github.com/Azure/azure-sdk-for-go/compare/sdk/azcore/v1.5.0...sdk/azcore/v1.6.0 )
---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azcore
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump github.com/aws/aws-sdk-go from 1.44.244 to 1.44.262
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.44.244 to 1.44.262.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.244...v1.44.262 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump google.golang.org/api from 0.118.0 to 0.122.0
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.118.0 to 0.122.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases )
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md )
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.118.0...v0.122.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/api
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump go.etcd.io/etcd/client/v3 from 3.5.8 to 3.5.9
Bumps [go.etcd.io/etcd/client/v3](https://github.com/etcd-io/etcd ) from 3.5.8 to 3.5.9.
- [Release notes](https://github.com/etcd-io/etcd/releases )
- [Commits](https://github.com/etcd-io/etcd/compare/v3.5.8...v3.5.9 )
---
updated-dependencies:
- dependency-name: go.etcd.io/etcd/client/v3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump github.com/beevik/etree from 1.1.0 to 1.2.0
Bumps [github.com/beevik/etree](https://github.com/beevik/etree ) from 1.1.0 to 1.2.0.
- [Release notes](https://github.com/beevik/etree/releases )
- [Changelog](https://github.com/beevik/etree/blob/master/RELEASE_NOTES.md )
- [Commits](https://github.com/beevik/etree/compare/v1.1.0...v1.2.0 )
---
updated-dependencies:
- dependency-name: github.com/beevik/etree
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump go.opentelemetry.io/otel/sdk from 1.14.0 to 1.15.1
Bumps [go.opentelemetry.io/otel/sdk](https://github.com/open-telemetry/opentelemetry-go ) from 1.14.0 to 1.15.1.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases )
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.14.0...v1.15.1 )
---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/sdk
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* go mod tidy
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-batcher[bot] <122306277+dependabot-batcher[bot]@users.noreply.github.com>
Co-authored-by: Tim Ross <tim.ross@goteleport.com>
2023-05-15 16:52:30 +00:00
Nic Klaassen
2568bff9db
fix: use errors.Is for all EOF comparisons ( #26012 )
...
This commit updates all `err == io.EOF` comparisons to use
`errors.Is(err, io.EOF)`. This is necessary when the error may have been
wrapped and fixes at least one current breakage (in `tsh request ls`).
`golang.org/x/tools/refactor/eg` was very handy for this, I used the
following template:
```go
package teleport
import (
"errors"
"io"
)
func before(err error) bool { return err == io.EOF }
func after(err error) bool { return errors.Is(err, io.EOF) }
```
2023-05-10 19:27:39 +00:00
dependabot-batcher[bot]
7506a16ad0
Batched Dependabot updates ( #25784 )
...
* Bump k8s.io/klog/v2 from 2.90.1 to 2.100.1
Bumps [k8s.io/klog/v2](https://github.com/kubernetes/klog ) from 2.90.1 to 2.100.1.
- [Release notes](https://github.com/kubernetes/klog/releases )
- [Changelog](https://github.com/kubernetes/klog/blob/main/RELEASE.md )
- [Commits](https://github.com/kubernetes/klog/compare/v2.90.1...v2.100.1 )
---
updated-dependencies:
- dependency-name: k8s.io/klog/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump github.com/aws/aws-sdk-go-v2/service/sns from 1.20.8 to 1.20.10
Bumps [github.com/aws/aws-sdk-go-v2/service/sns](https://github.com/aws/aws-sdk-go-v2 ) from 1.20.8 to 1.20.10.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases )
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/emr/v1.20.8...service/emr/v1.20.10 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/sns
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump github.com/aws/aws-sdk-go-v2/service/rds from 1.43.1 to 1.43.3
Bumps [github.com/aws/aws-sdk-go-v2/service/rds](https://github.com/aws/aws-sdk-go-v2 ) from 1.43.1 to 1.43.3.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases )
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.43.1...service/rds/v1.43.3 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/rds
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump github.com/aws/aws-sdk-go-v2/service/athena from 1.25.2 to 1.26.1
Bumps [github.com/aws/aws-sdk-go-v2/service/athena](https://github.com/aws/aws-sdk-go-v2 ) from 1.25.2 to 1.26.1.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases )
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/fsx/v1.25.2...service/s3/v1.26.1 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/athena
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump github.com/moby/term
Bumps [github.com/moby/term](https://github.com/moby/term ) from 0.0.0-20221128092401-c43b287e0e0f to 0.5.0.
- [Commits](https://github.com/moby/term/commits/v0.5.0 )
---
updated-dependencies:
- dependency-name: github.com/moby/term
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump github.com/russellhaering/goxmldsig from 1.3.0 to 1.4.0
Bumps [github.com/russellhaering/goxmldsig](https://github.com/russellhaering/goxmldsig ) from 1.3.0 to 1.4.0.
- [Release notes](https://github.com/russellhaering/goxmldsig/releases )
- [Commits](https://github.com/russellhaering/goxmldsig/compare/v1.3.0...v1.4.0 )
---
updated-dependencies:
- dependency-name: github.com/russellhaering/goxmldsig
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump go.etcd.io/etcd/client/v3 from 3.5.7 to 3.5.8
Bumps [go.etcd.io/etcd/client/v3](https://github.com/etcd-io/etcd ) from 3.5.7 to 3.5.8.
- [Release notes](https://github.com/etcd-io/etcd/releases )
- [Commits](https://github.com/etcd-io/etcd/compare/v3.5.7...v3.5.8 )
---
updated-dependencies:
- dependency-name: go.etcd.io/etcd/client/v3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump google.golang.org/grpc from 1.54.0 to 1.55.0 in /api
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.54.0 to 1.55.0.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.54.0...v1.55.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/grpc
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump libc from 0.2.142 to 0.2.143
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.142 to 0.2.143.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.142...0.2.143 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump rsa from 0.9.0 to 0.9.1
Bumps [rsa](https://github.com/RustCrypto/RSA ) from 0.9.0 to 0.9.1.
- [Changelog](https://github.com/RustCrypto/RSA/blob/master/CHANGELOG.md )
- [Commits](https://github.com/RustCrypto/RSA/compare/v0.9.0...v0.9.1 )
---
updated-dependencies:
- dependency-name: rsa
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump github.com/sigstore/rekor in /integrations/kube-agent-updater
Bumps [github.com/sigstore/rekor](https://github.com/sigstore/rekor ) from 1.0.1 to 1.1.1.
- [Release notes](https://github.com/sigstore/rekor/releases )
- [Changelog](https://github.com/sigstore/rekor/blob/main/CHANGELOG.md )
- [Commits](https://github.com/sigstore/rekor/compare/v1.0.1...v1.1.1 )
---
updated-dependencies:
- dependency-name: github.com/sigstore/rekor
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
* Tidy modules
* Bump github.com/docker/docker to v23.0.6+incompatible
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alan Parra <alan.parra@goteleport.com>
2023-05-09 16:53:12 +00:00
rosstimothy
5f99927888
Add ability to enable trace logging level ( #25800 )
...
Closes #25737
2023-05-08 17:40:16 +00:00
Hugo Shaka
68bf10d3d1
Fixes for teleport-kube-agent-updater ( #24746 )
...
* integrations/updater: disable CGO to ensure static builds
* helm: fix updater selectors in `teleport-kube-agent`
* helm: fix updater flags
* helm: make the updater able to watch secrets, create events and acquire leases
* integrations/updater: add dummy healthz route
* integrations/updater: fix typo in DEBUG instructions
* helm: update test snapshots
2023-04-20 13:17:03 +00:00
Edward Dowling
3195d9bf74
Add initial opsgenie client ( #23707 )
...
* Add initial opsgenie client
* Embed opsgenie client config in client and move some helper funcs
* Fix mod and sum and call to opsgenie client buildalertbody
* Add more godocs and use vendored teleport plugins lib
* Rename opsgenie client and config to prevent repetition
* Fix struct tag in opsgenie alertbody
* Fix misleading comment
* Add tests to opsgenie client to check note bodies are formatted
* Wrap errs with more descriptive types
* Close response bodies and fix error handling
* Add missing godoc and fix defer and return order
* Add missing godocs to opsgenie types
* Change opsgenie client test to not depend on json indent etc
* Add example of api url to godoc
* Undo unnecessary mod and sum changes
* Fix go sum
* Move opsgenie client code to integrations/lib
* Fix typos
2023-04-19 15:56:24 +00:00
Zac Bergquist
8d0769ef5f
Remove duplicate imports ( #24736 )
2023-04-18 19:08:26 +00:00
Roman Tkachenko
6c05c054e9
Bump dev version to 14 ( #24704 )
2023-04-18 06:49:34 +00:00
Hugo Shaka
eb209f0698
kube-agent-updater fixes ( #24468 )
...
* helm: set TELEPORT_EXT_UPGRADER when updater is enabled
* integrations/updater: exit when agent name or namespace is missing
2023-04-12 19:53:20 +00:00
Justinas Stankevičius
aec3669d17
Hosted plugin manager prerequisites ( #23922 )
...
* Expose Ping() in bare auth server
* Handle both pointer and bare PluginStatusV1
* Add metric name
* Add StatusSink
* Run GCI
* Move comment back to auth_with_roles
* Update lib/auth/auth.go
Co-authored-by: Alan Parra <alan.parra@goteleport.com>
* Rework SetStatus
* Inline TryEmitStatus and use a proper context
* Fix copyright notice
* Fix bug in statusFromStatusCode
* Test statusFromResponse
* Add link to Slack API schema
* Refactor statusFromStatusCode
* Expand comment for Ping()
* Add basic check for status in slack test
* Address nits
---------
Co-authored-by: Alan Parra <alan.parra@goteleport.com>
2023-04-11 15:24:25 +00:00
dependabot-batcher[bot]
64eee28c6e
Batched Dependabot updates ( #24327 )
...
* Bump github.com/docker/docker in /integrations/kube-agent-updater
Bumps [github.com/docker/docker](https://github.com/docker/docker ) from 20.10.21+incompatible to 20.10.24+incompatible.
- [Release notes](https://github.com/docker/docker/releases )
- [Commits](https://github.com/docker/docker/compare/v20.10.21...v20.10.24 )
---
updated-dependencies:
- dependency-name: github.com/docker/docker
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump github.com/docker/docker in /examples/service-discovery-api-client
Bumps [github.com/docker/docker](https://github.com/docker/docker ) from 23.0.1+incompatible to 23.0.3+incompatible.
- [Release notes](https://github.com/docker/docker/releases )
- [Commits](https://github.com/docker/docker/compare/v23.0.1...v23.0.3 )
---
updated-dependencies:
- dependency-name: github.com/docker/docker
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump uuid from 1.3.0 to 1.3.1
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.3.0...1.3.1 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump golang.org/x/net from 0.8.0 to 0.9.0 in /api
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.8.0 to 0.9.0.
- [Release notes](https://github.com/golang/net/releases )
- [Commits](https://github.com/golang/net/compare/v0.8.0...v0.9.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump bitflags from 2.0.2 to 2.1.0
Bumps [bitflags](https://github.com/bitflags/bitflags ) from 2.0.2 to 2.1.0.
- [Release notes](https://github.com/bitflags/bitflags/releases )
- [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md )
- [Commits](https://github.com/bitflags/bitflags/compare/2.0.2...2.1.0 )
---
updated-dependencies:
- dependency-name: bitflags
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump libc from 0.2.140 to 0.2.141
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.140 to 0.2.141.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.140...0.2.141 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump github.com/Azure/azure-sdk-for-go/sdk/azcore from 1.4.0 to 1.5.0
Bumps [github.com/Azure/azure-sdk-for-go/sdk/azcore](https://github.com/Azure/azure-sdk-for-go ) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/Azure/azure-sdk-for-go/releases )
- [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/main/documentation/release.md )
- [Commits](https://github.com/Azure/azure-sdk-for-go/compare/sdk/azcore/v1.4.0...sdk/azcore/v1.5.0 )
---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azcore
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump github.com/bufbuild/connect-go from 1.5.2 to 1.6.0
Bumps [github.com/bufbuild/connect-go](https://github.com/bufbuild/connect-go ) from 1.5.2 to 1.6.0.
- [Release notes](https://github.com/bufbuild/connect-go/releases )
- [Commits](https://github.com/bufbuild/connect-go/compare/v1.5.2...v1.6.0 )
---
updated-dependencies:
- dependency-name: github.com/bufbuild/connect-go
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump cloud.google.com/go/kms from 1.10.0 to 1.10.1
Bumps [cloud.google.com/go/kms](https://github.com/googleapis/google-cloud-go ) from 1.10.0 to 1.10.1.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases )
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md )
- [Commits](https://github.com/googleapis/google-cloud-go/compare/kms/v1.10.0...kms/v1.10.1 )
---
updated-dependencies:
- dependency-name: cloud.google.com/go/kms
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump golang.org/x/text from 0.8.0 to 0.9.0
Bumps [golang.org/x/text](https://github.com/golang/text ) from 0.8.0 to 0.9.0.
- [Release notes](https://github.com/golang/text/releases )
- [Commits](https://github.com/golang/text/compare/v0.8.0...v0.9.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/text
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump github.com/aws/aws-sdk-go-v2/feature/ec2/imds from 1.13.1 to 1.13.2
Bumps [github.com/aws/aws-sdk-go-v2/feature/ec2/imds](https://github.com/aws/aws-sdk-go-v2 ) from 1.13.1 to 1.13.2.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases )
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.13.1...service/mq/v1.13.2 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/feature/ec2/imds
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* regenerate porehog file after updating connect-go
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-batcher[bot] <122306277+dependabot-batcher[bot]@users.noreply.github.com>
Co-authored-by: Tobiasz Heller <tobiasz.heller@goteleport.com>
2023-04-11 12:57:19 +00:00
Alan Parra
8a18b2b58e
Drop gRPC call options from api/client.Client ( #23917 )
...
* Drop Client.WithCallOptions
* Drop Client.callOpts
2023-04-05 19:34:25 +00:00
Hugo Shaka
060143bd35
operator: revert to old dockerfile and oci image build process ( #24022 )
2023-04-03 21:39:52 +00:00
Hugo Shaka
311b1be3d7
kube-updater: Wire up main executable ( #23565 )
...
* kube-updater: write main function, fix scheme, reduce grace period
* fixup! kube-updater: write main function, fix scheme, reduce grace period
* Address feedback
* Update integrations/kube-agent-updater/cmd/teleport-kube-agent-updater/main.go
Co-authored-by: Roman Tkachenko <roman@goteleport.com>
---------
Co-authored-by: Roman Tkachenko <roman@goteleport.com>
2023-03-31 18:46:44 +00:00
Justinas Stankevičius
3fbe7f7ff4
Use RUNNER_TEMP for teleport bins in plugin tests ( #23773 )
...
When gravitational/teleport-plugins imports this test suite
in CI, the repo root gravitational/teleport/... is not writable.
This uses GitHub's `RUNNER_TEMP` instead, if it is set.
2023-03-31 16:31:49 +00:00
Noah Stride
46ff29f072
Machine ID FIPS support ( #23563 )
...
* Machine ID `tbot` FIPS support
* Add GoDoc for bot CLI
2023-03-30 16:42:14 +00:00
Hugo Shaka
ba75bd9869
integrations: allow multiarch image builds ( #23698 )
...
* Remove unnecessary cgo and simplify image build
* Add a target outputting the buildbox image
* Use static distroless image as base image
2023-03-30 16:00:02 +00:00
Nic Klaassen
a7ba75e511
chore: refactor k8s operator test helpers ( #23552 )
...
* refactor controller tests
* move envtest installation into envtest.mk for use in teleport.e
2023-03-28 14:43:27 +00:00
Alan Parra
d1d7e4e564
chore: Bump github.com/go-resty/resty/v2 from 2.3.0 to 2.7.0 ( #23642 )
...
* chore: Bump github.com/go-resty/resty/v2 from 2.3.0 to 2.7.0
See #23616 .
* Appease linter
2023-03-27 16:47:50 +00:00
Nic Klaassen
5ec44bb962
feat: add login rule controller to k8s operator ( #23416 )
...
This PR adds a Login Rule controller to the k8s operator so that Login
Rules can be managed via kubectl and the k8s API.
2023-03-24 22:48:25 +00:00
Nic Klaassen
8ed3e892ca
feat: add Login Rule CRD for k8s operator ( #23415 )
...
This PR adds a k8s Custom Resource Definition for Login Rules, which
will be used in a following PR to enable configuration of Teleport Login
Rules via kubectl.
This CRD, similar to the currently existing CRDs, is generated from the
protobuf spec. The difference is that login rules are defined in their
own package, do not use gogo syntax in the proto file, and the login
rule type does not contain an explicit "spec" field. Some workarounds in
crdgen/main.go and crdgen/schemagen.go cover over these differences to
make login rules appear like any other resource.
2023-03-24 18:13:12 +00:00
Nic Klaassen
9c2422b83d
chore: update k8s operator CRDs ( #23414 )
...
This commit updates copied and generated code under
integrations/operator.
First of all, this commit includes the result of running make manifests in
integrations/operator to update the CRDs used by the k8s operator. These
are generated from the .proto files in the API package and are only
updated when someone runs make manifests.
Second, this commit updates the unit tests in
integrations/operator/crdgen. A static copy of the .proto files is kept
there so that every teleport PR updating the protobufs does not have to
break the CRD tests. Previously only types.proto and wrappers.proto were
kept there, with some hacks to make the imports work. Now that our
import structure is a little more complicated, I am copying all of the
api .proto files in. Only types explicitly listed in crdgen/main.go
actually generate CRDs. The test snapshots are necessarily updated here.
2023-03-24 16:52:01 +00:00
Hugo Shaka
b64398ffe2
kube-updater: Add StatefulSet controller ( #23074 )
...
Reconciling StatefulSets requires more work than reconciling deployments
because they are really conservative about rollouts and can end up stuck
really fast. The StatefulSet controller does exactly what the Deployment
controller does except that it also tries to deleted unhealthy pods
belonging to older revisions of the StatefulSet. This approach allows to
unblock the statefulset (deleted pods will be replaced by pods using the
lastest PodSpec) while not reducing availability (if the Statefulset is
broken but some old pod is still working we don't touch it).
2023-03-24 12:49:49 +00:00
Justinas Stankevičius
6af6e7f566
Vendor slack plugin and supporting libraries ( #23045 )
...
* Vendor slack plugin and supporting libraries
* Fix up plugin integration tests (wip)
* Run GCI on vendored code
* Use newtype instead of type alias
golangci-lint currently panics on this,
"skip-files" et al don't help, as it is a linter panic, not an error
See d717045480
* Remove long-runing plugins tests from difftest
* Move access plugin tests to unit-tests-integrations
2023-03-22 19:39:07 +00:00
Hugo Shaka
5040fbda56
kube-updater: add Dockerfile & GHA pipelines ( #22983 )
2023-03-22 13:05:02 +00:00
Hugo Shaka
cc4fdd95f9
kube-updater: implement the maintenance window trigger ( #23267 )
2023-03-20 22:03:14 +00:00
Hugo Shaka
c1ff4d4dc9
kube-updater: HTTP version getters and maintenance triggers ( #22150 )
...
This PR adds the following version getters:
- basic HTTP (getting version from an s3 bucket)
Also the following maintenance triggers:
- basic HTTP (getting maintenance from an s3 bucket)
It also adds the following changes:
- add a common `cache` package to cache the lookups involving network
requests to ensure we don't issue too many calls to external resources
- add a common `basichttp` package providing a test HTTP server and a
simple HTTP client
Part of https://github.com/gravitational/teleport/issues/22450
2023-03-17 14:33:49 +00:00
Hugo Shaka
22a3a22f47
kube-updater: Add cosign image validator ( #22516 )
...
This commit implements the cosign image signature validation in the updater.
Cosign does all the heavy lifting, so this is a 90% tests / 10% actual code PR.
Testing the validator against various valid and invalid signed images
was tricky, and I had to craft custom fixtures. As fixture creation is
complex, I put all the logic into a dedicated tool generating test
layers and manifests we can reproductively test against. In retrospect,
Part of https://github.com/gravitational/teleport/issues/22450
2023-03-17 14:19:31 +00:00
Noah Stride
acb255cd88
GitLab Delegated Joining ( #22705 )
...
* Add type for GitLab ProvisionToken
* Add default behaviour for domain
* Add IDTokenClaims for GitLab
* Add gitlab token source and token validator
* Thread GitLab support through auth and tbot packages
* Adjust cluster name fetching in token validator
* Initialize GitLab token validator in auth
* Improve comment on `sub`
* Working GitLab CI delegated joining
* Add additional token rule fields
* Add checking for new configuration fields
* add additional test cases for validation of gitlab config struct
* Add TestAuth_RegisterUsingToken_GitLab
* Add tests for IDTokenSource
* Fix imports
* Add tests for GitLab Token Validator
* Fix some comments that were incomplete
* Add license headers
2023-03-16 16:19:11 +00:00
Hugo Shaka
b2d5ea586c
kube-updater: Implement UnhealthyWorkloadTrigger ( #22737 )
...
This trigger allows a maintenance to start if the teleport-kube-agent is
unhealthy. A workload is unhealthy if at least one if its managed pods
is unhealthy. A pod is unhealthy if it has not been ready for 10 minutes
or more.
2023-03-16 02:09:26 +00:00
Zac Bergquist
2ae9d770fc
Refactor tctl's dependencies ( #22693 )
...
* Move configuration from lib/service to lib/service/servicecfg
The new servicecfg package will hold only configuration for services.
This will allow other packages (like tctl and tsh) to depend on
servicecfg without pulling in all of lib/service (which has a number
of platform-specific details).
This is the first step towards being able to build tctl for Windows.
* Move PAM and BPF config into servicecfg
This breaks a compile-time dependency on BPF/PAM for tctl.
2023-03-09 17:48:36 +00:00
dependabot[bot]
c0fbd62698
Bump golang.org/x/net in /integrations/kube-agent-updater ( #22673 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.3.1-0.20221206200815-1e63c2f08a10 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases )
- [Commits](https://github.com/golang/net/commits/v0.7.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-07 18:17:44 +00:00
Hugo Shaka
0d6f7a422a
Fix flaky test detetion for updater ( #22690 )
...
* Fix flaky test detetion for updater
* fixup! Fix flaky test detetion for updater
2023-03-07 04:49:01 +00:00
Hugo Shaka
3a9c96d37a
kube-updater: initial commit ( #22067 )
...
This PR implements the core of the kube-agent-updater, which is part of
https://github.com/gravitational/teleport/issues/21516#issue-1576935859
In order to have a fully working updater we still need to:
- implement the interfaces for version retrieval, image validation and maintenance trigger
- add statefulset support (and deal with the potential deadlocks)
- implement the CI and release pipeline (Dockerfile, README, Makefile, github action, drone)
- integrate in the `teleport-kube-agent` helm chart
Those changes will happen in subsequent PRs.
2023-03-06 18:40:28 +00:00
Hugo Shaka
9e1f53d33a
Move operator into integrations/
( #22618 )
...
* Move operator into `integrations/`
* fixup! Move operator into `integrations/`
* fixup! fixup! Move operator into `integrations/`
* fixup! fixup! fixup! Move operator into `integrations/`
* fixup! fixup! fixup! fixup! Move operator into `integrations/`
2023-03-06 17:59:02 +00:00