At what point is /var/lib/maas/secret created during maas-region-api init? I’ve run dbupdate and createadmin, and if I do maas apikey --username admin it returns an api key with 3 segments, presumably one of those segments is the secret, but /var/lib/maas/secret doesn’t exist.
EDIT: Looks like I’m not calling maas init, so I’m replacing my createadmin stage with init to see if that does the trick…