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

Adjust acl option yaml input syntax #112

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mjbnz
Copy link
Contributor

@mjbnz mjbnz commented Jun 30, 2020

Having an acl entry requiring a single dictionary member called string seemed a little superfluous, so this patch adjusts the accepted syntax to include the following two examples, but also retain the string member format.

As an array of strings:

haproxy_frontend:
  - name: 'be-http'
    ....
    acl:
      - "is_foo hdr(host) -i foo.com"
      - "is_bar hdr(host) -i bar.com"

As a dictionary of named rules:

haproxy_backend:
  - name: 'be-http'
    ....
    acl:
      is_foo: "hdr(host) -i foo.com"
      is_bar: "hdr(host) -i bar.com"

@mjbnz
Copy link
Contributor Author

mjbnz commented Aug 11, 2020

Hello, any chance that this PR might be accepted?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant