Skip to content

Commit

Permalink
[URGENT] bump lib for helpers to enable access to sock (#493)
Browse files Browse the repository at this point in the history
## Issue
only the snap_daemon can access mongodb via the unix socket, this
prevents clients integrated to mongos from accesses the db

## Solution
allow users to access it

Kudos to @Gu1nness for the help here
  • Loading branch information
MiaAltieri authored Oct 1, 2024
1 parent 65fe50e commit a24e2bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/charms/mongodb/v1/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

# Increment this PATCH version before using `charmcraft publish-lib` or reset
# to 0 if you are raising the major API version
LIBPATCH = 10
LIBPATCH = 11

# path to store mongodb ketFile
KEY_FILE = "keyFile"
Expand Down Expand Up @@ -118,7 +118,7 @@ def get_mongos_args(
binding_ips = (
"--bind_ip_all"
if external_connectivity
else f"--bind_ip {MONGODB_COMMON_DIR}/var/mongodb-27018.sock"
else f"--bind_ip {MONGODB_COMMON_DIR}/var/mongodb-27018.sock --filePermissions 755"
)

# mongos running on the config server communicates through localhost
Expand Down

0 comments on commit a24e2bb

Please sign in to comment.