Skip to content

feat: allow configuring returned status_code when allow_degradation is false in forward-auth #10250

Description

@rauanmayemir

Description

Currently, if "allow_degradation": false is set on forward-auth, the plugin will return 403 Forbidden in case of unavailability.

In some cases, this is not the right approach. Returning 403 in case of authz service failure is factually incorrect. The request is not forbidden, it's just the authz service failed to process the request.

Strictly correct approach would be returning e.g status code 503. Istio does exactly that, it is possible to configure the output code via statusOnError.

Metadata

Metadata

Assignees

Type

No type

Projects

Status
✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions