During the initialization the variables AK_ADMIN_PASS and AK_ADMIN_TOKEN are passed directly instead of parsing the file:// format.
Therefore, I added the abra.sh command set_admin_pass, that changes the akadmin password and token from the secrets. This can also be used for secret rotation.
Further I added the rotate_db_pass command to rotate the postgres password.
Solving #1
During the initialization the variables [`AK_ADMIN_PASS`](https://github.com/goauthentik/authentik/blob/ab021b4b7e59db3ffe52ecd9e450a331e7103005/authentik/core/migrations/0002_auto_20200523_1133_squashed_0011_provider_name_temp.py#L27) and [`AK_ADMIN_TOKEN`](https://github.com/goauthentik/authentik/blob/ab021b4b7e59db3ffe52ecd9e450a331e7103005/authentik/core/migrations/0018_auto_20210330_1345_squashed_0028_alter_token_intent.py#L51) are passed directly instead of parsing the `file://` format.
Therefore, I added the `abra.sh` command `set_admin_pass`, that changes the akadmin password and token from the secrets. This can also be used for secret rotation.
Further I added the `rotate_db_pass` command to rotate the postgres password.
Amazing! I think you probably wanna bump the recipe version as major on this one and perhaps adding some release notes e.g. https://docs.coopcloud.tech/maintainers/handbook/#how-do-i-write-version-release-notes for how others can migrate towards this new install.
Done. I bumped the recipe version and added release notes.
> Amazing! I think you probably wanna bump the recipe version as major on this one and perhaps adding some release notes e.g. https://docs.coopcloud.tech/maintainers/handbook/#how-do-i-write-version-release-notes for how others can migrate towards this new install.
Done. I bumped the recipe version and added release notes.
decentral1se
approved these changes 2022-11-22 12:45:20 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Solving #1
During the initialization the variables
AK_ADMIN_PASSandAK_ADMIN_TOKENare passed directly instead of parsing thefile://format.Therefore, I added the
abra.shcommandset_admin_pass, that changes the akadmin password and token from the secrets. This can also be used for secret rotation.Further I added the
rotate_db_passcommand to rotate the postgres password.Amazing! I think you probably wanna bump the recipe version as major on this one and perhaps adding some release notes e.g. https://docs.coopcloud.tech/maintainers/handbook/#how-do-i-write-version-release-notes for how others can migrate towards this new install.
@@ -23,2 +23,4 @@* `abra app new authentik --secrets`* `abra app config <app-name>`* `abra app secret insert <app_name> email_pass v1 <password>`* `abra app secret generate -a authentik.dev.local-it.cloud`abra app secret generate -a <domain>LGTM! thanks for this amazing work :)
Done. I bumped the recipe version and added release notes.
Yeh @moritz, great stuff.
I leave you the honour of clicking the big green button in the sky.
Best get used to it 🙃