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

feat: add support for TLS configuration at MAAS charm #220

Merged
merged 27 commits into from
Nov 13, 2024

Conversation

wyattrees
Copy link
Contributor

@wyattrees wyattrees commented Sep 4, 2024

Adds three config items: ssl_cert_content, ssl_key_content and ssl_cacert_content, as well as a helper function to run maas config-tls enable...

@skatsaounis skatsaounis linked an issue Sep 6, 2024 that may be closed by this pull request
Copy link
Collaborator

@skatsaounis skatsaounis left a comment

Choose a reason for hiding this comment

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

What happens if I want to update tls_mode to disabled again? We need to add that logic to our charm.

Copy link
Collaborator

@skatsaounis skatsaounis left a comment

Choose a reason for hiding this comment

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

LGTM +1

Copy link
Collaborator

@skatsaounis skatsaounis left a comment

Choose a reason for hiding this comment

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

On second thoughts: We need to run the configure TLS on config changed so I am going to remove the -1 until we got this fixed. The way it is right now it's not going to update the TLS when user decides to do it. We should also think if adding it only on config_changed is enough. On setup phase the config_changed event is triggered but MAAS is not initialized yet. So my feeling is that we need to add it there with a check on maas initialization plus to a place that follows the first maas_initialization. I hope it makes sense

skatsaounis
skatsaounis previously approved these changes Oct 8, 2024
Copy link
Collaborator

@skatsaounis skatsaounis left a comment

Choose a reason for hiding this comment

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

LGTM +1

Copy link
Collaborator

@skatsaounis skatsaounis left a comment

Choose a reason for hiding this comment

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

Some small improvements. Other than that, I think we are good to go 🙂

Copy link
Collaborator

@skatsaounis skatsaounis left a comment

Choose a reason for hiding this comment

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

LGTM +1 🚀

@skatsaounis skatsaounis merged commit ddbc0fd into canonical:main Nov 13, 2024
24 checks passed
wyattrees added a commit to wyattrees/maas-charms that referenced this pull request Nov 13, 2024
skatsaounis pushed a commit that referenced this pull request Nov 14, 2024
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.

[feature-request] Enable TLS in MAAS
2 participants