explorer icon indicating copy to clipboard operation
explorer copied to clipboard

Access control - restricted set of features

Open xrapz opened this issue 7 years ago • 1 comments

The UI should show only restricted set of features for keys other than Master.

Introduce a new configuration property:

{
    access_key: 'abcdef123'
}

when present - load the access key definition from an API https://keen.io/docs/api/#get-an-access-key

  • it requires a change in the API - access without Master key, nor Read key

OR provide copy of that definition directly into the Config object

{
  "key": "SDKFJSDKFJSDKFJSDKFJDSK",
  "name": "My Access Key",
  "is_active": true,
  "permitted": ["queries", "cached_queries"],
  "options": {
    "queries": {
      "filters": [
        {
          "property_name": "customer.id",
          "operator": "eq",
          "property_value": "asdf12345z"
        }
      ]
    },
    "cached_queries": {
      "allowed": ["my_cached_query"]
    }
  }  
}

xrapz avatar Dec 12 '18 09:12 xrapz

I was trying to add Explorer to my product's dashboard for customer-facing analytics. Not being able to use a generated access key makes that (as far as I could find) not possible. So I really would love this feature.

nprail avatar Jun 17 '19 21:06 nprail