-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move SAML connection validation after auth checks (#19318)
Move the validation for SAML connectors being inserted or updated (Upsert) from before the role check for Insert/Update to after it. The validation can perform an HTTP GET request if the `entity_descriptor_url` field is set. This should at least require that the user have permission to Upsert a SAML OIDC connector. Ensure that roles exist that are referenced in SAML connectors, as the roles in SAML connectors are validated as the connector is inserted or updated. The validation has moved to auth.Server (from grpcserver) so that is now required in tests that operate against auth.Server. Add a test case to test that an access denied error is returned when upserting an invalid SAML connector instead of a validation failure, showing that we are not using input from untrusted sources. Also test that validation is still performed when access is permitted and that a valid SAML connector can be upserted. Backport: #17531
- Loading branch information
Showing
6 changed files
with
127 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters