- Introduced `JwtValidatorPlugin` (DOMAIN): Validates JWT tokens for protected API endpoints using HAProxy's JWT functionality. - Added configuration options: `enabled`, `algorithm`, `issuer`, `audience`, `pubkey_path`, and `pubkey`. - Documented the plugin setup and usage in `plugins.md` and `plugin-development.md`. - Created fixtures for `services-with-jwt-validator`. - Added extensive test cases to validate configuration and HAProxy output generation. - Ensured seamless integration into the plugin framework alongside existing domain plugins.
12 lines
560 B
Text
12 lines
560 B
Text
{
|
|
"192.168.1.50": {
|
|
"easyhaproxy.http.host": "api.example.com",
|
|
"easyhaproxy.http.port": "80",
|
|
"easyhaproxy.http.localport": "8080",
|
|
"easyhaproxy.http.plugins": "jwt_validator",
|
|
"easyhaproxy.http.plugin.jwt_validator.algorithm": "RS256",
|
|
"easyhaproxy.http.plugin.jwt_validator.issuer": "https://auth.example.com/",
|
|
"easyhaproxy.http.plugin.jwt_validator.audience": "https://api.example.com",
|
|
"easyhaproxy.http.plugin.jwt_validator.pubkey_path": "/etc/haproxy/jwt_keys/api_pubkey.pem"
|
|
}
|
|
}
|