Anedya Access Policy v1
Anedya Access Policy is the control method using which admins can control what users can access when Access Tokens are used. It allows admins to define rules for token usage, such as specifying which resources can be accessed, which actions can be performed.
Access Policy is a JSON document which defines two things:
- Resources: The resources which can be accessed by the bearer of the token.
- Allow: The actions which can be performed on the resources by the bearer of the token.
An example policy looks like following:
{
"resources": {
"nodes": [
"----ADD YOUR NODES HERE---"
],
"variables": [
"----ADD YOUR VARIABLES HERE---"
],
"vsglobalscopes":[
"------ ADD YOUR NAMESPACE HERE----"
],
"vskeys":[
"----- ADD YOUR KEY -----"
]
},
"allow": [
"data::getsnapshot",
"data::getlatest",
"data::gethistorical",
"cmd::sendcommand",
"cmd::listcommands",
"cmd::getstatus",
"cmd::invalidate",
"vs::getvalue",
"vs::setvalue",
"vs::scankeys",
"vs::deletekeys"
]
}