openabe icon indicating copy to clipboard operation
openabe copied to clipboard

ABE attribute values as plain strings

Open giovannibartolomeo01 opened this issue 4 years ago • 0 comments

Hi,

I'm using OpenABE for a project on access control for web/cloud APIs.

From the OpenABE manual (CLI), I've noted the sentence: "Attributes also includes printable symbols/characters such as $, &, #, % and so on." This seems not the case, however, for sign "+".

For example, I've an attribute representing an email address (yes, I know it is a particular one:) and I'm trying to generate a KP ABE key:

oabe_keygen -s KP -p test -o key -i email:[email protected]

which results in the following CLI error:

Driver::error string stream:1.53: syntax error, unexpected $undefined, expecting end of file
./keygen.cpp:runAbeKeygen:119: 'Invalid function input'

Same result using quotes to delimit the value, i.e.

oabe_keygen -s KP -p test -o key -i email:"[email protected]"

EDIT: this happens with other signs which are operators such as ">", "<", "=", space, single and double quotes.

Is there a way to tell the underlying parser that the value of an attribute should be interpreted as a plain string?

Thanks, Giovanni

giovannibartolomeo01 avatar Jan 27 '21 10:01 giovannibartolomeo01