Skip to content

What excatly is the purpose of ATTRIBUTES? Should it be removed? #97

Description

@mjacoby

In the spec, I can find the following definition / info

List of ABAC attributes that the access control list depends on. The list contains definitions for individual attributes or pre-defined attribute groups introduced with DEFATTRIBUTES. Attributes are described in Attributes. Source

describes an ABAC attribute which is to be used in an ACL Source

These definitions are quite vague and it is not clear what attributes actually are, how they are intended to be used.

Based on the CLAIM attribute I assumed, that each claim that will later be used in the FORMULA section must be define/listed in the ATTRIBUTE section. Although not formally defined anywhere in the specification, this is what all examples do.
However, this is not the case for any usage of GLOBAL or REFERENCE attributes such as GLOBAL(UTCNOW) in the examples. Those are used directly in the FORMULA without ever being listed in the ATTRIBUTES section.

This seems inconsistent and I cannot see anything in the specification explaining how this is intended to work and what putting something in ATTRIBUTES actually means.

In fact, I would argue that the whole concept of having an ATTRIBUTES section seems redundant and can/should be removed completely as the FORMULA section already contains all that information.

  • I have signed the required Developer Certificate of Origin (DCO) already.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions