Commit Graph

17 Commits

Author SHA1 Message Date
Danielle Tomlinson
36d1045e7f acl: Add support for globbing namespaces
This commit adds basic support for globbing namespaces in acl
definitions.

For concrete definitions, we merge all of the defined policies at load time, and
perform a simple lookup later on. If an exact match of a concrete
definition is found, we do not attempt to resolve globs.

For glob definitions, we merge definitions of exact replicas of a glob.

When loading a policy for a glob defintion, we choose the glob that has
the closest match to the namespace we are resolving for. We define the
closest match as the one with the _smallest character difference_
between the glob and the namespace we are matching.
2018-12-11 16:33:19 +01:00
Chelsea Holland Komlo
b50a3f8e6d fixup from code review 2017-10-17 17:34:06 -04:00
Chelsea Holland Komlo
7453b2c8ff update error message for invalid policy 2017-10-17 12:21:38 -04:00
Chelsea Holland Komlo
429586d703 policy must specify at least one namespace 2017-10-17 12:12:54 -04:00
Alex Dadgar
f6fbb36054 sync 2017-10-13 14:36:02 -07:00
Chelsea Komlo
bb8ce73cc7 Merge pull request #3290 from hashicorp/f-acl-job-dispatch
Add ACL for dispatch job
2017-10-06 13:33:21 -04:00
Chelsea Holland Komlo
bc11fcc012 fix up policy test 2017-09-29 21:22:36 +00:00
Chelsea Holland Komlo
5a738d28af job dispatch should have dispatch policy 2017-09-28 14:28:28 +00:00
Alex Dadgar
a9e3a41407 Enable more linters 2017-09-26 15:26:33 -07:00
Alex Dadgar
ddc2efa4ac sync 2017-09-19 10:08:23 -05:00
Alex Dadgar
de870afdd5 sync acls 2017-09-13 11:38:29 -07:00
Armon Dadgar
9b6144d0d6 Moving shared ACL objects 2017-09-04 13:04:45 -07:00
Armon Dadgar
c81bafec16 acl: Adding IsManagement check 2017-09-04 13:04:45 -07:00
Armon Dadgar
10baacd1ce Addressing @dadgar review feedback 2017-09-04 13:03:15 -07:00
Armon Dadgar
42cee0e52a acl: adding validation to the namespace name 2017-09-04 13:03:14 -07:00
Armon Dadgar
4def929827 acl: Adding compiled ACL object 2017-09-04 13:03:14 -07:00
Armon Dadgar
39fa8c5563 acl: Adding policy parsing with tests 2017-09-04 13:03:14 -07:00