Skip to content

Some revision to Anchor package and add Anchor dashboard#4

Merged
chong-he merged 6 commits into
mainfrom
revise
May 14, 2026
Merged

Some revision to Anchor package and add Anchor dashboard#4
chong-he merged 6 commits into
mainfrom
revise

Conversation

@chong-he
Copy link
Copy Markdown
Collaborator

@chong-he chong-he commented Mar 12, 2026

@chong-he chong-he changed the title Some revision to Anchor packages Some revision to Anchor packages and add Anchor dashboard Mar 12, 2026
Comment thread docker-compose.yml
SETUP_MODE: ""
EXTRA_OPTS: ""
EXISTING_PASSWORD: ""
NEW_PASSWORD: ""
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This seems like required to be in the environment variables, because without this, if a user tries to change the configuration (e.g., add extra flag), they will be prompted to be required to enter this field (for new operator mode)

For import operator mode, the EXISTING_PASSWORD is already there as above

Comment thread operator/entrypoint.sh
Comment on lines +23 to +26
if [ ! -f "$PASSWORD_FILE_PATH" ]; then
echo "$EXISTING_PASSWORD" > "$PASSWORD_FILE_PATH"
fi

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I think doing this way is probably better? i.e., if a user mistakenly change the password when updating their config, that will not be effective. Because I have tested to allow changing password after the setup, and it just failed to decrypt the password and Anchor cannot start

@chong-he chong-he changed the title Some revision to Anchor packages and add Anchor dashboard Some revision to Anchor package and add Anchor dashboard Mar 12, 2026
@chong-he
Copy link
Copy Markdown
Collaborator Author

chong-he commented Apr 3, 2026

Revise the backup option to only backup the keys and not other data (logs, database) in fc2e222. Thank you discord user @gbeast for the feedback: https://discord.com/channels/747647430450741309/880470045422153758/1488751232368775199

Comment thread setup-wizard.yml Outdated
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggest required: true here. With required: false, a user can submit the
wizard with blank EXISTING_PASSWORD

And combined with the new [ ! -f "$PASSWORD_FILE_PATH" ] guard in entrypoint.sh, that locks in an empty password.txt and the only recovery is a full package reinstall

Copy link
Copy Markdown
Collaborator Author

@chong-he chong-he May 14, 2026

Choose a reason for hiding this comment

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

Great feedback, revised in b01bc4f

As a side note, #7 by @3alpha also has this changed. But I change here anyway so that there is less merge conflict if any

@chong-he chong-he merged commit 8cbc648 into main May 14, 2026
2 checks passed
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.

2 participants