Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DPE-5976] Add admin user #9

Merged
merged 53 commits into from
Dec 10, 2024
Merged

[DPE-5976] Add admin user #9

merged 53 commits into from
Dec 10, 2024

Conversation

reneradoi
Copy link
Collaborator

@reneradoi reneradoi commented Dec 2, 2024

This PR adds the following functionality to the etcd-operator:

  • automatically create an internal admin user (root as per etcd standard)
  • always enable authentication in the etcd cluster on startup
  • methods add_user(), update_password() and enable_auth() in the EtcdClient class
  • a configuration option system-users with which users can configure a secret_id. The corresponding secret has to be granted to the etcd application and has to include the password as key root=....
  • unit and integration test coverage for the above mentioned

# Conflicts:
#	src/charm.py
#	src/events/etcd.py
#	src/managers/cluster.py
#	tests/unit/test_charm.py
@reneradoi reneradoi changed the title [DEP-5976] Add admin user [DPE-5976] Add admin user Dec 5, 2024
Copy link

@skourta skourta left a comment

Choose a reason for hiding this comment

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

Great work @reneradoi. I left some comments

src/common/client.py Outdated Show resolved Hide resolved
src/common/client.py Show resolved Hide resolved
src/common/exceptions.py Outdated Show resolved Hide resolved
src/core/models.py Show resolved Hide resolved
src/events/actions.py Outdated Show resolved Hide resolved
tests/unit/test_actions.py Outdated Show resolved Hide resolved
tests/unit/test_actions.py Outdated Show resolved Hide resolved
tests/unit/test_charm.py Show resolved Hide resolved
tests/integration/test_charm.py Show resolved Hide resolved
tests/integration/test_charm.py Outdated Show resolved Hide resolved
@reneradoi reneradoi requested a review from skourta December 6, 2024 09:26
src/common/client.py Outdated Show resolved Hide resolved
@reneradoi reneradoi requested a review from skourta December 6, 2024 11:43
src/common/client.py Outdated Show resolved Hide resolved
@reneradoi reneradoi requested a review from skourta December 6, 2024 11:55
skourta
skourta previously approved these changes Dec 6, 2024
Copy link

@skourta skourta left a comment

Choose a reason for hiding this comment

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

Thank you!

pyproject.toml Outdated Show resolved Hide resolved
actions.yaml Outdated Show resolved Hide resolved
src/literals.py Show resolved Hide resolved
@reneradoi reneradoi requested review from delgod and skourta December 9, 2024 13:51
skourta
skourta previously approved these changes Dec 10, 2024
Copy link

@skourta skourta left a comment

Choose a reason for hiding this comment

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

Minor comments. Well done @reneradoi

src/common/secrets.py Show resolved Hide resolved
src/events/etcd.py Show resolved Hide resolved
src/events/etcd.py Show resolved Hide resolved
config.yaml Outdated Show resolved Hide resolved
src/events/etcd.py Show resolved Hide resolved
@reneradoi reneradoi merged commit 6ff42c1 into main Dec 10, 2024
11 of 12 checks passed
@reneradoi reneradoi deleted the add_admin_user branch December 10, 2024 12:17
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.

3 participants