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

Feature/add http referrer allow list option #25

Merged
merged 3 commits into from
Oct 23, 2023

Commits on Oct 19, 2023

  1. Add the ability to allow unauthenticated access from internal referrers

    This commit adds the Referrer Allow list option, which can be used
    to whitelist traffic arriving from certain referrers (internal only)
    which is intended to allow plugins like Nelio AB Testing to be usable
    on sites which use this plugin to control access to the site.
    
    internal referrer urls can contain query strings, but the input
    config should omit the site url, as this is set inside the plugin,
    to prevent external referrers from being configured.
    
    The new functionality also only accepts as valid referrer headers
    where the configured allowed referrer string appears at the start
    of the referrer header, to prevent whitelisted items being passed
    as parameters of a referrer to circumvent the access controls.
    
    loading an allow listed referrer url directly in the browser while
    unauthenticated does not allow the user to bypass the access control
    as when the plugin performs redirection it does not, itself, send the
    HTTP_REFERER header.
    jkeasley committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    9948a1e View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2023

  1. check that the options array contains valid items added

    This commit adds a check that the config array for the referrer
    allow list contains valid options, as the behaviour of explode in
    this context means that even if the options field is empty at least
    one array item, of value '' with be created.
    
    Also Kahlan has been removed from the composer file and composer update
    rerun
    jkeasley committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    1c9a83d View commit details
    Browse the repository at this point in the history
  2. bump version number

    jkeasley committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    f733765 View commit details
    Browse the repository at this point in the history