-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new API Key authenticator impl #3611
Conversation
enforcer-parent/enforcer/src/main/java/org/wso2/choreo/connect/enforcer/api/Utils.java
Show resolved
Hide resolved
...nforcer/src/main/java/org/wso2/choreo/connect/enforcer/security/jwt/APIKeyAuthenticator.java
Show resolved
Hide resolved
String encodedKeyData = Base64.getEncoder().encodeToString(jsonObject.toJSONString().getBytes()); | ||
String newAPIKeyHeaderValue = APIKeyConstants.API_KEY_PREFIX + encodedKeyData + checksum; | ||
// Remove the existing header. | ||
requestContext.getRemoveHeaders().add(ConfigHolder.getInstance().getConfig().getApiKeyConfig() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we do not need it here and it won't work in the expected way as first we add the headers and then process removeHeader map and remove them.
...nforcer/src/main/java/org/wso2/choreo/connect/enforcer/security/jwt/APIKeyAuthenticator.java
Show resolved
Hide resolved
...t/enforcer/src/main/java/org/wso2/choreo/connect/enforcer/security/jwt/JWTAuthenticator.java
Outdated
Show resolved
Hide resolved
...nforcer/src/main/java/org/wso2/choreo/connect/enforcer/security/jwt/APIKeyAuthenticator.java
Show resolved
Hide resolved
ae568f0
to
bc49a1d
Compare
bc49a1d
to
fa62f95
Compare
[failed] Dataplane(EastUS) cluster : dev-deployment-v2 : 20241029.30 |
[failed] Dataplane(NorthEU) cluster : dev-deployment-v2 : 20241029.30 |
[failed] : dev-deployment-v2 : 20241029.30 |
[failed] Dataplane(EastUS) cluster : dev-deployment-v2 : 20241029.31 |
[failed] : dev-deployment-v2 : 20241029.31 |
[failed] Dataplane(NorthEU) cluster : dev-deployment-v2 : 20241029.31 |
[failed] Dataplane(EastUS) cluster : dev-deployment-v2 : 20241029.32 |
[failed] Dataplane(NorthEU) cluster : dev-deployment-v2 : 20241029.32 |
[failed] : dev-deployment-v2 : 20241029.32 |
[failed] Dataplane(EastUS) cluster : dev-deployment-v2 : 20241029.33 |
[failed] Dataplane(NorthEU) cluster : dev-deployment-v2 : 20241029.33 |
[failed] : dev-deployment-v2 : 20241029.33 |
[failed] Dataplane(EastUS) cluster : dev-deployment-v2 : 20241029.34 |
[succeeded] Dataplane(NorthEU) cluster : dev-deployment-v2 : 20241029.34 |
[succeeded] : dev-deployment-v2 : 20241029.34 |
[] Dataplane(NorthEU) cluster : dev-deployment-v2 : 20241030.32 |
[] : dev-deployment-v2 : 20241030.32 |
[] Dataplane(EastUS) cluster : dev-deployment-v2 : 20241030.32 |
[] Dataplane(NorthEU) cluster : stage-deployment-v2 : 20241031.3 |
[] Dataplane(EastUS) cluster : stage-deployment-v2 : 20241031.3 |
[] Controlplane cluster : stage-deployment-v2 : 20241031.3 |
[succeeded] Controlplane cluster : prod-deployment-v2 : 20241101.3 |
[succeeded] Dataplane(NorthEU) cluster : prod-deployment-v2 : 20241101.3 |
[failed] Dataplane(CDP2-WU2) cluster : prod-deployment-v2 : 20241101.3 |
[succeeded] Dataplane(EastUS) cluster : prod-deployment-v2 : 20241101.3 |
[] Dataplane(CDP2-WU2) cluster : prod-deployment-v2 : 20241101.4 |
[] Dataplane(EastUS) cluster : prod-deployment-v2 : 20241101.4 |
[] Controlplane cluster : prod-deployment-v2 : 20241101.4 |
[] Dataplane(NorthEU) cluster : prod-deployment-v2 : 20241101.4 |
Purpose
$subject
Replaces the temp authenticator added with #3603
Issues
Fixes #
Automation tests
Tested environments
Not Tested
Maintainers: Check before merge