Skip to content

RFC: ACL ordering defaults for deny #36

@warrenpnz

Description

@warrenpnz

This is more a request for comment than an issue, but when defining ACLS, I found that I needed to specify an order for the denys to order them correctly. If this was defaulted in code to a higher priority such as below, then we could get away with the defaults. Thoughts?

define squid::http_access (
  $action = 'allow',
  $value  = $title,
  $order   = undef,
) {

  validate_re($action,['^allow$','^deny$'])
  validate_string($value)

  if !$order and $action == 'allow') {
    $fragorder = '05'    
  } else {
    $fragorder = '75'
  }

  concat::fragment{"squid_http_access_${value}":
    target  => $squid::config,
    content => template('squid/squid.conf.http_access.erb'),
    order   => "20-${fragorder}-${action}",
  }

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions