1

looking the IBM istio appid adapter for auth purposes, i could see that the adapter generates the cookie in code using a random hashkey thats created at the adapter's startup.

If i want to run multiple instances of the adapter for high availability, won't that be problematic as they don't share the cookie signing key ?

Looking at the source code what is the config.proto in config\adapter\config.proto used for ? What could one potentially use it for ?

data_henrik
  • 16,724
  • 2
  • 28
  • 49
sm_
  • 2,572
  • 2
  • 17
  • 34

2 Answers2

1

You're absolutely right. At the moment adapter can only run as a single instance, as there's no cookie sharing mechanism implemented yet. This is something we intend to address in future releases.

Anton
  • 3,166
  • 1
  • 13
  • 12
  • I thought this was the case, but after digging into the code the adapter first looks into k8s secret `appidentityandaccessadapter-cookie-sig-enc-keys` – sm_ Oct 21 '19 at 00:46
0

Using a common signing key for cookies is supported but undocumented. The adapter looks for k8s secret named appidentityandaccessadapter-cookie-sig-enc-keys in the istio-system namespace

sm_
  • 2,572
  • 2
  • 17
  • 34