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

Allow ACLs on entire plugins and wildcard commands #651

Merged
merged 2 commits into from Mar 10, 2016
Merged

Conversation

zoni
Copy link
Member

@zoni zoni commented Mar 10, 2016

This modifies ACLs in three ways.

  1. Wildcards are now supported, so status* will match !status as
    well as !status_plugins, etc.

  2. ACLs can include the plugin name by placing it in front of the
    command, separated by a colon (:). For example, Health:status will
    match the !status command of the Health plugin and Health:* will
    match all commands defined by the Health plugin.

  3. This ensures that all the settings defined in ACCESS_CONTROLS_DEFAULT
    are applied to each command listed in ACCESS_CONTROLS. If a certain
    command wants to override the default set in ACCESS_CONTROLS_DEFAULT,
    it must be explicitly set up.

    This is more natural and more intuitive, removing the need to specify
    the default for every single command where you define other rules.

Closes #442.

This ensures that all the settings defined in ACCESS_CONTROLS_DEFAULT
are applied to each command listed in ACCESS_CONTROLS. If a certain
command should to override the default set in ACCESS_CONTROLS_DEFAULT,
it must be explicitly set up.

This is more natural and more intuitive, removing the need to specify
the default for every single command where you define other rules.
This modifies ACLs in two ways.

1. Wildcards are now supported, so `status*` will match `!status` as
well as `!status_plugins`, etc.

2. ACLs can include the plugin name by placing it in front of the
command, separated by a colon (`:`). For example, `Health:status` will
match the `!status` command of the `Health` plugin and `Health:*` will
match all commands defined by the `Health` plugin.
gbin added a commit that referenced this pull request Mar 10, 2016
Allow ACLs on entire plugins and wildcard commands
@gbin gbin merged commit 36f8f6b into errbotio:master Mar 10, 2016
@zoni zoni deleted the acls branch March 11, 2016 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants