teleport/api
Marco André Dinis e0d6c1de49
Integrations: web API and tctl (#24145)
* Integrations: web api and tclt

This PR adds end user interface to manage integrations:

`tctl`
```
$ tctl get integrations --config teleport.yaml --format text
Name        Type     Spec
----------- -------- ----------------------------------------------
myawsint    aws-oidc RoleARN=arn:aws:iam::123456789012:role/DevTeam
mynewawsint aws-oidc RoleARN=arn:aws:iam::123456789012:role/OpsTeam
```

HTTP API
```
$ curl 'https://127.0.0.1.nip.io:3080/v1/webapi/sites/lenix/integrations'

{
  "items": [
    {
      "name": "myawsint",
      "subKind": "aws-oidc",
      "awsOIDC": {
        "roleARN": "arn:aws:iam::123456789012:role/DevTeam"
      }
    },
    {
      "name": "mynewawsint",
      "subKind": "aws-oidc",
      "awsOIDC": {
        "roleARN": "arn:aws:iam::123456789012:role/OpsTeam"
      }
    }
  ],
  "nextKey": ""
}
```

* Add explicit type

* add awsoidc role arn setter

* change serializer

* ignore bodyclose linter false positive

* check for error before reading

* simplify webPack.DoRequest call

* fix godoc of WebClientPack.DoRequest

* return body and status code only
2023-04-12 16:06:30 +00:00
..
breaker Headless Login: auth server changes (#22726) 2023-03-17 01:02:37 +00:00
client Integration: add service to server and client (#24133) 2023-04-12 11:34:21 +00:00
constants Move ALPN dialer, ALPN conn upgrade, Ping conn to api (#23860) 2023-04-03 14:16:30 +00:00
defaults Reduce DefaultIdleTimeout to 30s (#23943) 2023-03-31 23:19:13 +00:00
fixtures Move ALPN dialer, ALPN conn upgrade, Ping conn to api (#23860) 2023-04-03 14:16:30 +00:00
gen/proto/go Fix package names for v1 protos, misc proto changes (#24183) 2023-04-06 22:53:31 +00:00
identityfile Client store generalization (#19420) 2023-01-06 01:34:04 +00:00
internalutils spell fixes (#19419) 2022-12-16 19:01:28 +00:00
metadata Enable GCI linter (#17894) 2022-10-28 20:20:28 +00:00
observability/tracing Reduce time spent setting ssh session envs (#23731) 2023-03-30 12:58:49 +00:00
profile ALPN handshake test improvements (#23348) 2023-03-29 16:50:39 +00:00
proto maintenance window API (#22850) 2023-04-11 00:23:03 +00:00
types Integrations: web API and tctl (#24145) 2023-04-12 16:06:30 +00:00
utils Split PingConn to PingConn and PingTLSConn (#24167) 2023-04-06 14:00:17 +00:00
go.mod Batched Dependabot updates (#24327) 2023-04-11 12:57:19 +00:00
go.sum Batched Dependabot updates (#24327) 2023-04-11 12:57:19 +00:00
version.go Update version to 13.0.0-dev (#20372) 2023-01-18 19:01:11 -05:00