Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

whitelist/regex for remote resource URL requests

#260

"For example, an additional check should be made to prevent rundeck from making requests to some random endpoint. Something like: framework.properties.secure_domain.0=https://internal.host.network: (regex or glob here)
framework.properties.secure_domain.1=file:///var/rundeck/* (regex or glob here)
the above is nice to have considering the users are authenticated before being able to make the call."

Reported by Greg Schueler · April 25th, 2011 @ 09:32 AM

State: resolved
Milestone: Rundeck 1.3
Assigned to: nobody

Activity

  1. Greg Schueler
    Greg Schueler

    considering these properties to check:

    in project.properties: "project.resources.allowedURL.0-X"

    in framework.properties: "framework.resources.allowedURL.0-X"

    April 25th, 2011 @ 11:48 AM

  2. Deleted User
    Deleted User

    I forgot about project.properties. That's probably the best place to put the project level restrictions.

    April 25th, 2011 @ 11:52 AM

  3. Greg Schueler
    Greg Schueler

    so forget about framework props?

    April 25th, 2011 @ 11:55 AM

  4. Deleted User
    Deleted User

    Yeah, start in project.properties. Another ticket should be created for global override, which I kinda see framework.properties providing.

    April 25th, 2011 @ 12:07 PM

  5. Greg Schueler
    Greg Schueler

    don't really need a separate ticket...if you want framework.props global
    override it's easier as part of this ticket

    April 25th, 2011 @ 12:28 PM

  6. Deleted User
    Deleted User

    Framework.properties can be the override. Add a log message when project.properties rules are completely overridden by a more restrictive framework.properties rule.

    April 25th, 2011 @ 12:45 PM

  7. Greg Schueler
    Greg Schueler

    if project.resources.url == input url, then it is explicitly allowed.

    otherwise this logic is used:

    F=framework.props
    P=project.props
    unset= no regexes set
    pass=1 or more regexes match
    fail=0 regexes match

      P\F| unset | pass | fail
    unset| no    | yes  | no
    pass | yes   | yes  | no
    fail | no    | no   | no
    

    yes= allow URL
    no= disallow URL

    April 25th, 2011 @ 03:54 PM

  8. Deleted User
  9. Deleted User

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.