I have indexed customer data based on customer partition like follows,
So i would like to authenticate the users using JWT Token, In the documentation i have read we can pass the roles permission and the user name in the jwt token,
How can we define the indices policy per user , In my case
User john need access with perimeter-customerA-2018-11-09 and
User peter need access with perimeter-customerB-2018-11-09
In the below how can we map the user with indices
readonlyrest: access_control_rules: - name: Valid JWT token with a viewer role kibana_access: ro jwt_auth: name: "jwt_provider_1" roles: ["viewer"] - name: Valid JWT token with a writer role kibana_access: rw jwt_auth: name: "jwt_provider_1" roles: ["writer"] jwt: - name: jwt_provider_1 signature_algo: RSA signature_key: "your_signature" user_claim: email roles_claim: resource_access.client-app.roles # JSON-path style header_name: Authorization
Looking forward for your answer .