teleport/lib/web
Jakub Nyckowski af817583ad
Proxy TAG requests through Auth (#34642)
* Proxy TAG requests through Auth

* Integrate Access Graph feature and optimize services

This commit entails the integration of the Access Graph feature into the existing service configuration. This feature is manifested through an 'IsEnabled' method that checks the state of the access graph. Additionally, the auth service logic now includes a flag for enabling access graph. The services have been further optimized with adjustments geared towards improving performance and readability of the code.

* Move TAG enabled flag from proxy to user setting/auth context

* Swap a pointer to AccessGraph config with a value.

* Add 'TestNewAccessGraph' function to 'useracl_test.go' file.

The function 'TestNewAccessGraph' has been added to run tests checking the configuration of Access Graph. Furthermore, a small change is made for the 'KindAccessGraph' comment in 'constants.go' to provide more accurate information.

* Implement Access Graph feature across various files

The Access Graph feature has been incorporated in 'module.go', 'authservice.proto', 'auth.go', and 'plugin.go' files. A method 'EnableAccessGraph' is also introduced in 'module.go' to allow the usage of this feature. Descriptions of Access Graph have been adjusted across files to explicitly state the feature's enablement.

* Fix tests

* Remove unused access graph feature code

This commit removes all references and uses of the access graph feature from the codebase. It also updates corresponding tests to reflect this removal. It also adds EnableAccessGraph() method to testing module to fix test compilation.
2023-11-16 18:08:37 +00:00
..
app Consolidate context usage for client src/dst addresses into authz package (#22530) 2023-11-01 18:26:03 +00:00
desktop Convert the desktop sesssion player to the new player API (#34070) 2023-11-09 23:46:01 +00:00
mfajson Remove lib/auth/webauthn dependency from webauthncli (#30377) 2023-08-14 21:24:37 +00:00
scripts OneOff Script: use ent build if cluster is Enterprise (#33061) 2023-10-09 13:44:30 +00:00
session MFA Fuzzing and Json Unmarshal Panic fix (#30854) 2023-08-22 16:34:31 +00:00
ui Return server's subKind from tshd (#34252) 2023-11-07 15:27:10 +00:00
addr.go Consolidate context usage for client src/dst addresses into authz package (#22530) 2023-11-01 18:26:03 +00:00
addr_test.go Consolidate context usage for client src/dst addresses into authz package (#22530) 2023-11-01 18:26:03 +00:00
apiserver.go Proxy TAG requests through Auth (#34642) 2023-11-16 18:08:37 +00:00
apiserver_login_test.go Remove lib/auth/webauthn dependency from webauthncli (#30377) 2023-08-14 21:24:37 +00:00
apiserver_ping_test.go Return auto-enroll status on Ping (#24752) 2023-04-24 14:43:29 +00:00
apiserver_test.go Reduce TestDatabaseServerAutoDisconnect flakiness (#34060) 2023-11-16 12:59:18 +00:00
apiserver_test_utils.go Remove support for DEBUG_ASSETS_PATH (#21346) 2023-02-08 17:27:22 +00:00
apps.go Add Hardware Key login audit event fields (#33254) 2023-10-16 19:48:11 +00:00
assets.go Remove support for DEBUG_ASSETS_PATH (#21346) 2023-02-08 17:27:22 +00:00
assistant.go assist: emit action events on tool usage (#33737) 2023-11-08 22:57:23 +00:00
assistant_test.go Enable testify lint (#34222) 2023-11-06 20:38:38 +00:00
cachehandler.go Add caching to web assets (#22137) 2023-02-23 12:20:58 +00:00
command.go assist: Split ai/model into smaller packages (#30834) 2023-08-23 12:56:51 +00:00
command_test.go Implement Create/UpdateRole on the auth server (#33491) 2023-10-18 17:06:50 +00:00
command_utils.go assist: support recording non-interactive forwarded sessions (#28677) 2023-07-14 15:03:57 +00:00
command_utils_test.go Assist: fix summary logic (#28487) 2023-06-29 22:54:26 +00:00
conn_upgrade.go ALPN upgrade with custom X-Teleport-Upgrade header (#29683) 2023-07-31 16:12:58 +00:00
conn_upgrade_test.go Enable testify lint (#34222) 2023-11-06 20:38:38 +00:00
connection_diagnostic.go Fix tsh windows builds (#28357) 2023-06-30 17:12:12 +00:00
databases.go WebAPI: Include new DB RDS fields (vpc and subnet) (#31588) 2023-09-13 17:17:49 +00:00
databases_test.go WebAPI: Include new DB RDS fields (vpc and subnet) (#31588) 2023-09-13 17:17:49 +00:00
desktop.go Make MFA prompt client agnostic (#34087) 2023-11-09 18:14:12 +00:00
desktop_playback.go Convert the desktop sesssion player to the new player API (#34070) 2023-11-09 23:46:01 +00:00
discoveryconfig.go DiscoveryConfig: WebAPI CRUD (#32591) 2023-10-12 17:36:33 +00:00
discoveryconfig_test.go Enable testify lint (#34222) 2023-11-06 20:38:38 +00:00
envelope.pb.go Use Buf to build/lint/format lib/ protos (#15870) 2022-08-29 17:44:18 +00:00
files.go Enable hardware key support in the WebUI (#32781) 2023-10-13 19:59:11 +00:00
fuzz_test.go MFA Fuzzing and Json Unmarshal Panic fix (#30854) 2023-08-22 16:34:31 +00:00
gziphandler.go Remove use of deprecated ioutil package (#11296) 2022-03-21 18:00:34 +00:00
headless.go Remove lib/auth/webauthn dependency from webauthncli (#30377) 2023-08-14 21:24:37 +00:00
integrations.go Fix tsh windows builds (#28357) 2023-06-30 17:12:12 +00:00
integrations_awsoidc.go feat: cached auto-refreshing AWS credentials for BYOBucket (#34380) 2023-11-14 20:16:14 +00:00
integrations_awsoidc_test.go AWS OIDC IdP Configure script: remove region (#34036) 2023-10-30 19:26:30 +00:00
join_tokens.go Add support for deploy service agent auto updates (#31982) 2023-10-10 22:00:09 +00:00
join_tokens_test.go Enable testify lint (#34222) 2023-11-06 20:38:38 +00:00
mfa.go Isolate MFA prompt into a new package (#30379) 2023-08-17 00:19:10 +00:00
mfa_codec.go Remove lib/auth/webauthn dependency from webauthncli (#30377) 2023-08-14 21:24:37 +00:00
oidcidp.go feat: cached auto-refreshing AWS credentials for BYOBucket (#34380) 2023-11-14 20:16:14 +00:00
oidcidp_test.go Enable testify lint (#34222) 2023-11-06 20:38:38 +00:00
password.go Isolate MFA prompt into a new package (#30379) 2023-08-17 00:19:10 +00:00
resources.go Enable optimistic locking support for roles (#33671) 2023-10-20 20:04:04 +00:00
resources_test.go Enable testify lint (#34222) 2023-11-06 20:38:38 +00:00
server.go Track active ssh sessions established via the web (#20231) 2023-01-27 14:38:39 +00:00
servers.go add eice discover flow (#32202) 2023-09-28 16:38:26 +00:00
servers_test.go Enable testify lint (#34222) 2023-11-06 20:38:38 +00:00
sessions.go Bump the go group with 32 updates (#34527) 2023-11-13 18:57:32 +00:00
sessions_test.go Fix tsh windows builds (#28357) 2023-06-30 17:12:12 +00:00
sign.go Fix tsh windows builds (#28357) 2023-06-30 17:12:12 +00:00
terminal.go Make MFA prompt client agnostic (#34087) 2023-11-09 18:14:12 +00:00
terminal_test.go Fix moderated session presence checking (#25988) 2023-06-08 20:27:13 +00:00
user_groups.go Fix tsh windows builds (#28357) 2023-06-30 17:12:12 +00:00
userevent.go lib/usagereporter refactor and consolidation (#22460) 2023-03-01 18:40:53 +00:00
userpreferences.go add unified resources list view (#34203) 2023-11-10 19:06:49 +00:00
users.go Update users interface (#32987) 2023-10-10 14:07:46 +00:00
users_test.go Enable testify lint (#34222) 2023-11-06 20:38:38 +00:00
web.go Enable GCI linter (#17894) 2022-10-28 20:20:28 +00:00
ws_io.go Assist - Execution web endpoint (#25955) 2023-05-11 20:23:01 +00:00