Skip to content

Access control - restricted set of features #257

@xrapz

Description

@xrapz

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"]
    }
  }  
}

Metadata

Metadata

Assignees

No one assigned

    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