Commit Graph
18 Commits
Author SHA1 Message Date
rosstimothy 2cced62805 Fix violations of non-constant format strings linter (#51812)
Depends on https://github.com/gravitational/teleport.e/pull/6006.
Now that we are compliant, the ignore rule was removed from the
golangci-lint config to prevent future regressions.
2025-02-04 16:43:35 +00:00
Steven Martin b90c1f6e24 Fix spelling for log and help (#50860) 2025-01-08 13:43:50 +00:00
rosstimothy 05be924ae0 Convert lib/utils to slog (#50340)
This only converts the places in the utils package that were
logging with logrus, but it does not fully remove the logrus
package as a dependency. The package is home to the logrus text
formatter which needs to exist until slog is the only logging
mechanism in use.
2024-12-19 15:08:04 +00:00
Erik Tate 489bebd258 adding an ending step to host user upsert that removes any expirations or password locks for managed teleport users (#47774) 2024-10-30 15:05:39 +00:00
Erik Tate c592dbce0a adding configuration for setting default shell on host users (#46539) 2024-09-13 20:05:28 +00:00
Erik Tate 2d02f058bd resolves the correct primary gid for logins that share a name with a (#46039)
group in host_groups
2024-09-12 20:23:50 +00:00
Erik Tate 087c680b45 returns trace.BadParameter error when adding group with invalid name (#46031) 2024-08-30 20:19:56 +00:00
Andrew Burke 5a3719ea8e Update host user groups for existing users (#41919)
This change fixes a bug in host user creation where Teleport would not
update the groups of a returning user if groups were changed in
the user's role.
2024-06-12 17:28:12 +00:00
Alex McGrath 9092c7d113 Log debug error if user cleanup is a not found error from missing getent binaries (#42373)
* Dont log error if user cleanup is a not found error

* Dont start host user creation if any required binaries are not found
2024-06-12 14:52:38 +00:00
Andrew Burke c78c150a90 Fix home dir for insecure_drop mode (#42595)
This change fixes a bug where file uploads/downloads in the web UI
would fail if the local user (provisioned by Teleport in
insecure-drop mode) didn't have a home directory.
2024-06-07 20:35:39 +00:00
fheinecke b178b8b732 Updated Teleport codebase to AGPL3 license (#35259)
Signed-off-by: Fred Heinecke <fred.heinecke@goteleport.com>
2023-12-01 17:48:14 +00:00
Alex McGrath d8e05dd3ae Manually create the users HOME rather than letting useradd do it (#32207)
Test that CreateHomeDirectory does not follow symlinks

resolve comments

add our own recursive directory copy

Resolve comments

Fix for "Manually create the users HOME rather than letting useradd do it"
2023-09-20 19:06:10 +00:00
Alex McGrath 2fbe27b7e8 Allow host users to be created with a specific UID or GID (#29305)
* Allow setting HostUserUID/GID traits

* Create users with specified UID/GID

* rename the traits, fix typo

* Document host user creation with specific UID/GID

* resolve comments

* Resolve comments

* Update doc and help strings
2023-08-02 14:14:42 +00:00
Alex McGrath e2b76bb04f Add option to allow for host users not to be deleted (#26892)
* Add option to allow for host users not to be deleted

This adds a new role option called create_host_users_mode which allows
for it to be configured to not delete users when a session ends. The
old `create_host_user` option will be deprecated with this.

If the deprecated option is set, the new mode option will default to
dropping users as is the current behavior.

* add generated protos

* use combined output for commands, dont set CreateHostUser

* fix tests

* ci fixes

* add godocs to HostUserMode constants, fix tests

* remain -> keep

* Use an enum instead of a string

* fix merge errors

* Add tests & resolve comments

* Resolve issues

* fmt
2023-06-23 13:35:57 +00:00
Zac Bergquistandrosstimothy 60830b0d8a Clean up godocs for host user creation (#27625)
* Clean up godocs for host user creation

* Update lib/utils/host/hostusers.go

Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>

---------

Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>
2023-06-11 14:26:33 +00:00
Alex McGrath 502b001130 Add sudoers provisioning support (#12061)
* Add sudoers provisioning support

* Add a fix for macos tests
2022-06-09 16:06:18 +00:00
Edoardo Spadolini fb204da1c8 Linter fixes (#13283)
* Remove and prohibit github.com/siddontang/go/log

* Fix linter warnings on darwin
2022-06-08 14:41:50 +00:00
Alex McGrathandEdoardo Spadolini 581efdc60f Add support for automatic user provisioning (#11830)
* Add support for automatic user provisioning

* Add UID parker to reexec

* Add a `teleport park` subcommand that does nothing

Co-authored-by: Edoardo Spadolini <edoardo.spadolini@goteleport.com>
2022-06-08 12:24:13 +00:00