In an attempt to make it easier to
1) navigate the integration test output,
2) find the cause of test failures, and
3) run individual tests, make it easier to run individual
integration tests from the command line,
...this change ports some of the OSS integration tests away from
GoCheck and implements them in terms of the standard `testing`
package.
The main changes are:
* Test suites are now constructed as a normal Test function
with many subtests.
* The GoCheck assertions have been replaced with equivalent
assertions from `testify/require`, for example:
`c.Assert(err, check.IsNil)`
becomes
`require.NoError(t, err)`
... and so on
This functionality is present in the `teleport-cluster` chart and it seems logical toduplicate it in the `teleport-kube-agent` chart.
Also adds missing documentation for `annotations.serviceAccount` to the `teleport-cluster` reference.
* Updating teleport-quickstart.yml to latest release
This teleport-quickstart.yml is used in our Docker quickstart guide (docker-compose section). https://goteleport.com/docs/quickstart-docker/#quickstart-using-docker-compose
I updated the quay repo from 5.0 to 6.1.5. (latest version at time of writing)
* Update docker/teleport-quickstart.yml
Co-authored-by: Gus Luxton <gus@gravitational.com>
* Compute warnings when mapping traits to roles
* Log warnings for case-insensitive traits to role matches.
Updates https://github.com/gravitational/teleport/issues/6016.
Co-authored-by: Andrew Lytvynov <andrew@goteleport.com>
There was an issue with the formatting when exporting the bastion and auth IP.
The name-value pairs must be enclosed in their own set of quotes, they should not be lumped together under a single set of quotes.
There must be a space between the two pairs of name/value pairs.
(I ensured I was running the latest version of AWS CLI 2 and the latest version of Terraform)
Signed-off-by: Gus Luxton <gus@goteleport.com>
Co-authored-by: corkrean <62527488+corkrean@users.noreply.github.com>
IBM Cloud AppID SSO returns strings as well as integers in JWT headers.
Updated version of our go-oidc fork which handles string and integer
values in JWT headers.
In `GRPCServer` handlers, `g.Context` resolves to the context included
in `logrus.Entry` due to embedding.
This context is typically `nil`, so if anyone tries using it (such as
the `aws-sdk-go` when using a dynamodb audit backend), things break.
Use the `closeCtx` from the parent `auth.Server` instead.
* docs: port changes
* Update docs/pages/aws-oss-guide.mdx
Co-authored-by: Ben Arent <ben@goteleport.com>
Co-authored-by: Ben Arent <ben@goteleport.com>
* Exit non-zero on `tsh status` for scripting.
To support scripting of login status, exit non-zero on `tsh status` when no valid active profile exists: not logged in, no active profile, active profile expired.
See #5558.
* Expand expiration condition, suggested in PR.
Co-authored-by: Andrew Lytvynov <andrew@awly.dev>
* Overwrite error when not logged in.
* Normalize `tsh status` error messages.
* Do not special-case not-found.
* Move "Not logged in." message.
Signed-off-by: Andrew Lytvynov <andrew@goteleport.com>
Co-authored-by: Rom DuPlain <rom.duplain@gmail.com>