Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
teleport networking
subprocess for port/agent/x11 forwarding (#…
…43756) * Add networking subprocess for port and agent forwarding. * Remove extraneous x11 forwarding logic. * Add x11 forwarding to the networking subprocess. * Fix lint. * Try create host user before starting networking process. * Resolve comments * Fix networking process memory leak. * Run networking subprocess as root but change to user login after PAM call. * Update agent forwarding socket dir permissions. * Handle networking requests synchronously to maintain the current PAM context. * Use user environment in networking process. * Fix issue with PAM thread state being locked to the main goroutine; Clean up homeDir logic; Fix PAM thread state for xauth commands. * Selectively handle some networking requests in goroutines. * Address comments. * Use an interrupt signal to trigger graceful exit in the networking subprocess. * Cleanup unix sockets from the child namespace. * Address comments. * Remove extraneous network forwarding socket validation. * Fix tests and lint. * Re-add networking process done channel to avoid deadlocks on reading unix sockets passed to a dead process. * Remove broken test. * Address comments. * Cleanup; remove unused child error file. * - Explicility list file paths to clean up at the end of the networking process. - Use terminate FD instead of interrupt to signal the process to exit. - Log errors from the parent process. - Read networking request response without goroutine. * Cleanup. * Make request socket a stream. * Remove extraneious Chmod. * Send request level error to request conn. * Don't unlink unix sockets from the parent process. * Read full error message from stream. * Remove remaining logs in child process. * Fix typos. * web: support SAML resource deletion in unified resources view (#44311) * update SAML app edit mechanism to accomodate both edit and delete functions * use user saml idp access to disable menu actions * add comment to ResourceActionButton props * refactor: SamlAppActionContext to edit and delete Saml application * address review comments * Add networking process tests to replace old tests. * Don't close remote file descriptor before the child process has a chance to connect to it. * Fix lint; skip broken test. * Disable broken test and restore older test to cover for it. * Remove unused agent forwarding test. * Fix lint, replace broken test. * Fix old test that used testify/require in goroutine. * Close request context immediately to avoid deadlock (extended timeout) on reading from the closed process. --------- Co-authored-by: Sakshyam Shah <[email protected]>
- Loading branch information