teleport/integration
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
..
appaccess Support App access behind load balancer (#22565) 2023-03-14 13:47:41 +00:00
conntest Integrations: web API and tctl (#24145) 2023-04-12 16:06:30 +00:00
db Integrations: web API and tctl (#24145) 2023-04-12 16:06:30 +00:00
helpers Integrations: web API and tctl (#24145) 2023-04-12 16:06:30 +00:00
hsm Refactor tctl's dependencies (#22693) 2023-03-09 17:48:36 +00:00
integrations Integrations: web API and tctl (#24145) 2023-04-12 16:06:30 +00:00
kube Enabled IP pinning enforcement for Kube and DB (#22310) 2023-03-08 14:20:47 +00:00
proxy Implement tsh proxy kube (#23207) 2023-03-30 15:09:15 +00:00
agent_forwarding_test.go Enable GCI linter (#17894) 2022-10-28 20:20:28 +00:00
client_test.go Refactor tctl's dependencies (#22693) 2023-03-09 17:48:36 +00:00
ec2_test.go Refactor tctl's dependencies (#22693) 2023-03-09 17:48:36 +00:00
hostuser_test.go Enable GCI linter (#17894) 2022-10-28 20:20:28 +00:00
integration.go Break DB integration tests out into their own package (#16133) 2022-09-07 11:04:35 +10:00
integration_test.go refactor SFTP backend to use upstream dep, not our fork (#23786) 2023-04-07 01:51:22 +00:00
kube_integration_test.go Convert tsh ssh to use the proxy transport service instead of ssh (#23228) 2023-04-04 21:31:39 +00:00
main_test.go Update golangci-lint to 1.49.0 (#16507) 2022-09-19 22:38:59 +00:00
port_forwarding_test.go Security fixes 03/23 (#23864) 2023-03-31 21:55:13 +00:00
ports.go Remove more integration test port list allocations (#16266) 2022-09-14 06:53:19 +00:00
teleterm_test.go Refactor tctl's dependencies (#22693) 2023-03-09 17:48:36 +00:00
terminal_test.go Track active ssh sessions established via the web (#20231) 2023-01-27 14:38:39 +00:00
utmp_integration_test.go Refactor tctl's dependencies (#22693) 2023-03-09 17:48:36 +00:00