mirror of
https://github.com/gravitational/teleport.git
synced 2026-09-21 14:35:22 +08:00
* feat: support SSH node resource constraints in access requests - Allow KindNode with constraints in ValidateAccessRequest, add SSH constraint matching via buildStringConstraintTransform - Surface per-login granted/requestable metadata in MakeServer and advertise ResourceConstraintsV1 for all SSH servers * test: add tests for SSH node resource constraints - Unit tests for WithConstraints, MatcherFromConstraints, and ValidateAccessRequest with SSH constraint kinds - MakeServer tests for granted-vs-requestable login details * fix: Filter sshLogins via client.CalculateSSHLogins when IncludeRequestable!=true * refactor: apply suggestions from code review * refactor: extract granted/requestable principal calcs to web util file * refactor: use `[]ComponentFeatureID` vs `[]int` for `Server.SupportedFeatureIDs` * fix: Role pruning at request creation for constrained resources * refactor: Add Config struct for MakeServer - Use Config struct vs passing in individual params - Address misc other code review feedback