Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access control - restricted set of features #257

Open
adamkasprowicz opened this issue Dec 12, 2018 · 1 comment
Open

Access control - restricted set of features #257

adamkasprowicz opened this issue Dec 12, 2018 · 1 comment

Comments

@adamkasprowicz
Copy link
Contributor

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"]
    }
  }  
}
@nprail
Copy link

nprail commented Jun 17, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants