infobloxopen / seal

Apache License 2.0
16 stars 11 forks source link

context stanzas don't allow comments inside the context clauses #110

Closed rchowinfoblox closed 4 years ago

rchowinfoblox commented 4 years ago

comments are not allowed in context stanzas.

context {
#
  where subject.account_id == "42";
} {
  allow subject group everyone to manage rchow.abacpolicy where ctx.id == "deadbeef"
}

will error with

could not compile rules file error="Expected SUBJECT or WHERE, got #"

while

context {
  where subject.account_id == "42";
} {
#
  allow subject group everyone to manage rchow.abacpolicy where ctx.id == "deadbeef"
}

will error with

could not compile rules file error="verb must be specified for context or for action"