seqeralabs / cx-field-tools-installer

Unofficial Terraform solution to help clients install Seqera Platform
Apache License 2.0
3 stars 1 forks source link

[ Bug ] Disabling email login break Python token generation script #136

Open gwright99 opened 3 months ago

gwright99 commented 3 months ago

Setting flag_disable_email_login = true in terraform.tfvars appears to cause the _get_access_token.py script to fail.

The script does not fail when email is allowed.

gwright99 commented 3 months ago

As per Seqera Engineering:

Potential Short-Term Workarounds

  1. Don't allow flag_run_seqerakit = true if flag_disable_email_login = true Automation logic would not need to change, but it means seqerakit could not be run on the very first deployment.

  2. Boot Tower with email enabled, generate a token, stop Tower, update tower.yml to disable email, reboot Tower, run Seqerakit. This is super clunky and I hate it. Multiple new branches of logic will need to be created.

  3. Other solution?

Potential Long-Term Workarounds

  1. Have Tower generate a root PAT on first invocation (like Gitlab).