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-2995] Receive mongos user #10

Merged
merged 13 commits into from
Dec 13, 2023
Merged

[DPE-2995] Receive mongos user #10

merged 13 commits into from
Dec 13, 2023

Conversation

MiaAltieri
Copy link
Contributor

@MiaAltieri MiaAltieri commented Dec 5, 2023

Adopt changes from MongoDB libs for config_server_interface.py

Future Work

Implement relation functions for host application + mongos so mongos can:

  • share URI, password, username (via secrets)
  • receive desired database name

@@ -6,9 +6,12 @@
This class handles the sharing of secrets between sharded components, adding shards, and removing
shards.
"""
import json
Copy link
Contributor Author

Choose a reason for hiding this comment

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

file copied from mongodb charm

@@ -121,15 +120,6 @@ def _get_mongos_config_for_user(
tls_internal=None, # Future PR will support TLS
)

@property
Copy link
Contributor Author

Choose a reason for hiding this comment

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

moved to properties section of file

@@ -102,11 +106,6 @@ def _install_snap_packages(self, packages: List[str]) -> None:
)
raise

@property
Copy link
Contributor Author

Choose a reason for hiding this comment

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

moved to properties section of file

return f"mongodb://{username}:{password}@{MONGOS_SOCKET}"


async def get_secret_data(ops_test, secret_uri) -> Dict:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

everything below here was copied from mongodb charm

src/charm.py Outdated Show resolved Hide resolved
@delgod delgod requested review from juditnovak and removed request for delgod December 11, 2023 17:05
lib/charms/mongodb/v0/config_server_interface.py Outdated Show resolved Hide resolved
lib/charms/mongodb/v0/config_server_interface.py Outdated Show resolved Hide resolved
lib/charms/mongodb/v0/config_server_interface.py Outdated Show resolved Hide resolved
lib/charms/mongodb/v0/config_server_interface.py Outdated Show resolved Hide resolved
src/charm.py Show resolved Hide resolved
src/charm.py Show resolved Hide resolved
src/charm.py Outdated Show resolved Hide resolved
src/charm.py Show resolved Hide resolved
src/charm.py Show resolved Hide resolved
src/charm.py Show resolved Hide resolved
Copy link

@juditnovak juditnovak left a comment

Choose a reason for hiding this comment

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

LGTM

@MiaAltieri MiaAltieri merged commit b73f862 into 6/edge Dec 13, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants