You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
89 lines
1.1 KiB
89 lines
1.1 KiB
<file name="Makefile"> |
|
## |
|
## Makefile |
|
## |
|
|
|
CONSUL_ACL_UPDATE = @l_prefix@/sbin/consul-acl-update |
|
|
|
all: anonymous client |
|
|
|
anonymous: |
|
@echo "++ updating \"anonymous\":"; \ |
|
$(CONSUL_ACL_UPDATE) -i "anonymous" -n "Anonymous" anonymous.hcl |
|
|
|
client: |
|
@echo "++ updating \"client\":"; \ |
|
$(CONSUL_ACL_UPDATE) -i "`(cat client.token) 2>/dev/null`" -n "Client" client.hcl | \ |
|
tee client.token.new; mv client.token.new client.token |
|
|
|
</file> |
|
<file name="anonymous.hcl"> |
|
|
|
agent "" { |
|
policy = "read" |
|
} |
|
|
|
event "" { |
|
policy = "read" |
|
} |
|
|
|
key "" { |
|
policy = "read" |
|
} |
|
|
|
keyring = "read" |
|
|
|
node "" { |
|
policy = "read" |
|
} |
|
|
|
operator = "read" |
|
|
|
query "" { |
|
policy = "read" |
|
} |
|
|
|
service "" { |
|
policy = "read" |
|
} |
|
|
|
session "" { |
|
policy = "read" |
|
} |
|
|
|
</file> |
|
<file name="client.hcl"> |
|
|
|
agent "" { |
|
policy = "write" |
|
} |
|
|
|
event "" { |
|
policy = "write" |
|
} |
|
|
|
key "" { |
|
policy = "write" |
|
} |
|
|
|
keyring = "write" |
|
|
|
node "" { |
|
policy = "write" |
|
} |
|
|
|
operator = "write" |
|
|
|
query "" { |
|
policy = "write" |
|
} |
|
|
|
service "" { |
|
policy = "write" |
|
} |
|
|
|
session "" { |
|
policy = "write" |
|
} |
|
|
|
</file>
|
|
|