History

Introduce STS client grants API and OPA policy integration (#6168)

This PR introduces two new features - AWS STS compatible STS API named AssumeRoleWithClientGrants ``` POST /?Action=AssumeRoleWithClientGrants&Token=<jwt> ``` This API endpoint returns temporary access credentials, access tokens signature types supported by this API - RSA keys - ECDSA keys Fetches the required public key from the JWKS endpoints, provides them as rsa or ecdsa public keys. - External policy engine support, in this case OPA policy engine - Credentials are stored on disks

Harshavardhana committed 8 years ago

Commit 54ae3641 parent 16a100b76 files · +7248 −712Browse files

Showing the changes to cmd/api-errors.go (1 of 76 files). Show all

Unified · Split

cmd/api-errors.go+7−1
@@ -192,6 +192,7 @@ const ( · 191 unmodified lines
192192 ErrAdminConfigNoQuorum
193193 ErrAdminConfigTooLarge
194194 ErrAdminConfigBadJSON
195+ ErrAdminConfigDuplicateKeys
195196 ErrAdminCredentialsMismatch
196197 ErrInsecureClientRequest
197198 ErrObjectTampered
@@ -881,11 +882,16 @@ var errorCodeResponse = map[APIErrorCode]APIError{ · 683 unmodified lines
881882 ErrAdminConfigTooLarge: {
882883 Code: "XMinioAdminConfigTooLarge",
883884 Description: fmt.Sprintf("Configuration data provided exceeds the allowed maximum of %d bytes",
884− maxConfigJSONSize),
885+ maxEConfigJSONSize),
885886 HTTPStatusCode: http.StatusBadRequest,
886887 },
887888 ErrAdminConfigBadJSON: {
888889 Code: "XMinioAdminConfigBadJSON",
890+ Description: "JSON configuration provided is of incorrect format",
891+ HTTPStatusCode: http.StatusBadRequest,
892+ },
893+ ErrAdminConfigDuplicateKeys: {
894+ Code: "XMinioAdminConfigDuplicateKeys",
889895 Description: "JSON configuration provided has objects with duplicate keys",
890896 HTTPStatusCode: http.StatusBadRequest,
891897 },

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t