AMRC-FactoryPlus / amrc-connectivity-stack

The AMRC Connectivity Stack (ACS) is an open-source implementation of the AMRC's Factory+ framework
https://factoryplus.app.amrc.co.uk
MIT License
13 stars 2 forks source link

[krbkeys] Should we look up account UUIDs in the Auth service? #207

Open amrc-benmorrow opened 7 months ago

amrc-benmorrow commented 7 months ago

Currently an account section which requests account generation stores the generated account UUID in an annotation. This is usual practice for a Kubernetes operator but it means that if the edge cluster is torn down and recreated we lose this information.

It might be better to treat the account mapping in the Auth service as authoritative, if it exists.

amrc-benmorrow commented 7 months ago

This will need to keep the separate account_uuid step, and it's probably easiest to keep the annotation as well. The only changes should be: