Skip to content
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

matchers: Drop forwarded option from remote_ip matcher #6085

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

francislavoie
Copy link
Member

I think it's been deprecated long enough. Time to remove this insecure option!

@francislavoie francislavoie requested a review from mholt February 7, 2024 12:11
@francislavoie francislavoie added the bug 🐞 Something isn't working label Feb 7, 2024
@francislavoie francislavoie added this to the v2.8.0 milestone Feb 7, 2024
Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me. Since we don't have telemetry I don't know how many are still using it, but it has been quite some time.

}
m.Forwarded = true
continue
return nil, errors.New("the 'forwarded' option is no longer supported; use the 'client_ip' matcher instead")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonder if we will remember to remove this in a while as well

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meh, this is just to give a nicer error message just in case they upgrade from an older version. It can stay forever, it's harmless.

}
m.Forwarded = true
continue
return d.Err("the 'forwarded' option is no longer supported; use the 'client_ip' matcher instead")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonder if we will remember to remove this in a while

@francislavoie francislavoie merged commit 8c2a72a into master Feb 7, 2024
25 checks passed
@francislavoie francislavoie deleted the drop-remote-ip-forwarded branch February 7, 2024 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants