Skip to content

Conversation

@meisterT
Copy link
Member

This will read from restapi.secret and initial_admin_password.secret and reset the DB state to match these passwords.

This can be especially useful if you are importing a database from a previous contest and do not want to do update passwords manually.

@vmcj
Copy link
Member

vmcj commented Nov 22, 2024

Isn't there a way to either add this to the dj_setup_database as it also has the option to load the dump or in the symfony command (which you use) so they are close together? That makes testing it also easier IMO.

Copy link
Member

@vmcj vmcj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better than before but I think this is something which is also useful outside of our group so we should consider integrating it.

@eldering
Copy link
Member

Isn't there a way to either add this to the dj_setup_database as it also has the option to load the dump or in the symfony command (which you use) so they are close together? That makes testing it also easier IMO.

Not exactly what's asked for, but I was also working on an option in dj_setup_database to reset the DB user password stored in etc/dbpassword.secret.

This will read from restapi.secret and initial_admin_password.secret and
reset the DB state to match these passwords.

This can be especially useful if you are importing a database from a
previous contest and do not want to do update passwords manually.
@meisterT meisterT added this pull request to the merge queue Nov 22, 2024
Merged via the queue into DOMjudge:main with commit 7d1445b Nov 22, 2024
32 checks passed
@meisterT meisterT deleted the forcepws branch November 22, 2024 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants