Using redis quota with username/password

#1

How to use rediquota with the new handler way

apiVersion: config.istio.io/v1alpha2
kind: handler
metadata:
name: quotahandler
namespace: istio-system
spec:
compiledAdapter: redisquota
params:
redisServerUrl: redis-release-master:6379
connectionPoolSize: 10
quotas:
- name: requestcountquota.instance.istio-system
maxAmount: 50000
validDuration: 1s
overrides:
- dimensions:
destination: aservice
maxAmount: 1
validDuration: 10s

#2

Hi,

Are you asking how to configure redis adapter to connect to a redis instance that requires basic auth?
According to the adapter docs (https://istio.io/docs/reference/config/policy-and-telemetry/adapters/redisquota/), I don’t think it supports authentication to redis.
Whether or not you use the handler kind is not important here, since the contents of the params is identical between the two.