feat: implement API Key Auth security policy #4986
53.17% of diff hit (target 60.00%)
View this Pull Request on Codecov
53.17% of diff hit (target 60.00%)
Annotations
Check warning on line 88 in api/v1alpha1/validation/securitypolicy_validate.go
codecov / codecov/patch
api/v1alpha1/validation/securitypolicy_validate.go#L88
Added line #L88 was not covered by tests
Check warning on line 377 in internal/gatewayapi/securitypolicy.go
codecov / codecov/patch
internal/gatewayapi/securitypolicy.go#L372-L377
Added lines #L372 - L377 were not covered by tests
Check warning on line 499 in internal/gatewayapi/securitypolicy.go
codecov / codecov/patch
internal/gatewayapi/securitypolicy.go#L494-L499
Added lines #L494 - L499 were not covered by tests
Check warning on line 900 in internal/gatewayapi/securitypolicy.go
codecov / codecov/patch
internal/gatewayapi/securitypolicy.go#L884-L900
Added lines #L884 - L900 were not covered by tests
Check warning on line 902 in internal/gatewayapi/securitypolicy.go
codecov / codecov/patch
internal/gatewayapi/securitypolicy.go#L902
Added line #L902 was not covered by tests
Check warning on line 913 in internal/gatewayapi/securitypolicy.go
codecov / codecov/patch
internal/gatewayapi/securitypolicy.go#L906-L913
Added lines #L906 - L913 were not covered by tests
Check warning on line 918 in internal/gatewayapi/securitypolicy.go
codecov / codecov/patch
internal/gatewayapi/securitypolicy.go#L915-L918
Added lines #L915 - L918 were not covered by tests
Check warning on line 530 in internal/provider/kubernetes/controller.go
codecov / codecov/patch
internal/provider/kubernetes/controller.go#L516-L530
Added lines #L516 - L530 were not covered by tests
Check warning on line 36 in internal/xds/translator/api_key_auth.go
codecov / codecov/patch
internal/xds/translator/api_key_auth.go#L35-L36
Added lines #L35 - L36 were not covered by tests
Check warning on line 39 in internal/xds/translator/api_key_auth.go
codecov / codecov/patch
internal/xds/translator/api_key_auth.go#L38-L39
Added lines #L38 - L39 were not covered by tests
Check warning on line 42 in internal/xds/translator/api_key_auth.go
codecov / codecov/patch
internal/xds/translator/api_key_auth.go#L41-L42
Added lines #L41 - L42 were not covered by tests
Check warning on line 64 in internal/xds/translator/api_key_auth.go
codecov / codecov/patch
internal/xds/translator/api_key_auth.go#L63-L64
Added lines #L63 - L64 were not covered by tests
Check warning on line 74 in internal/xds/translator/api_key_auth.go
codecov / codecov/patch
internal/xds/translator/api_key_auth.go#L73-L74
Added lines #L73 - L74 were not covered by tests
Check warning on line 79 in internal/xds/translator/api_key_auth.go
codecov / codecov/patch
internal/xds/translator/api_key_auth.go#L78-L79
Added lines #L78 - L79 were not covered by tests
Check warning on line 99 in internal/xds/translator/api_key_auth.go
codecov / codecov/patch
internal/xds/translator/api_key_auth.go#L98-L99
Added lines #L98 - L99 were not covered by tests
Check warning on line 102 in internal/xds/translator/api_key_auth.go
codecov / codecov/patch
internal/xds/translator/api_key_auth.go#L101-L102
Added lines #L101 - L102 were not covered by tests
Check warning on line 113 in internal/xds/translator/api_key_auth.go
codecov / codecov/patch
internal/xds/translator/api_key_auth.go#L109-L113
Added lines #L109 - L113 were not covered by tests
Check warning on line 119 in internal/xds/translator/api_key_auth.go
codecov / codecov/patch
internal/xds/translator/api_key_auth.go#L118-L119
Added lines #L118 - L119 were not covered by tests
Check warning on line 124 in internal/xds/translator/api_key_auth.go
codecov / codecov/patch
internal/xds/translator/api_key_auth.go#L123-L124
Added lines #L123 - L124 were not covered by tests