Hello, we are currently working on improving our snaps. See (PR)[ https://github.com/canonical/mongodb-artifacts/pull/6 )
I’d like to request access and auto connect to the posix-mq interface and autoconnect to the hardware-observe, network-observe and system-observe for the MongoDB snaps. We have already requested manually review on those
-
Snap name:
mongodb-server-replicaset,mongodb-server-sharded,mongos,charmed-mongodb -
Description:
mongodb-server-replicaset: standalone snap. It packages the MongoDB server, MongoDB Shell (mongosh), and command-line tools for replica-set deployments.mongodb-server-sharded: standalone snap. It packagesmongod,mongos, MongoDB Shell, and administration tools for sharded MongoDB deployments.mongos: standalone snap. It packages the MongoDB sharded-cluster query router, MongoDB Shell, and related client utilities.charmed-mongodb: packages the MongoDB application used by the mongodb operator (charm)
-
snapcraft:
mongodb-server-replicaset: mongodb-artifacts/mongodb/snaps/slim/mongodb-server-replicaset/snap/snapcraft.yaml at 8-24.04/edge · canonical/mongodb-artifacts · GitHubmongodb-server-sharded: mongodb-artifacts/mongodb/snaps/slim/mongodb-server-sharded/snap/snapcraft.yaml at 8-24.04/edge · canonical/mongodb-artifacts · GitHubmongos: mongodb-artifacts/mongos/snaps/slim/mongos/snap/snapcraft.yaml at 8-24.04/edge · canonical/mongodb-artifacts · GitHubcharmed-mongodb: mongodb-artifacts/mongodb/snaps/charmed/snap/snapcraft.yaml at 8-24.04/edge · canonical/mongodb-artifacts · GitHub
-
upstream-relation: These snaps are maintained by Canonical’s Data Platform team. I am a maintainer and contributor to the upstream packaging repository.
-
Requested interfaces:
hardware-observe: auto-connectionnetwork-observe: auto-connectionsystem-observe: auto-connectionposix-mq: permission for themongosh-posix-mq-providerslot and auto-connection of the corresponding plug
-
Justification for
hardware-observe:MongoDB detects host hardware characteristics, including CPU architecture, processor count, and virtualization information. This information is used during startup for resource-aware runtime configuration and is also exposed through MongoDB diagnostic and server-status facilities.
The interface is required by the
mongod,mongos, andmongobridgeapplications packaged in these snaps. Without it, strict confinement denies access to hardware information under/procand/sys, resulting in incomplete detection and diagnostic information.- Access is minimal: The interface is observational: it does not grant permission to modify hardware configuration.
-
Justification for
network-observe:MongoDB server processes inspect the host’s networking state and interfaces as part of server initialization, connection handling, logging, and diagnostic data collection.
The interface is required by the
mongod,mongos, andmongobridgeapplications. Without it, strict confinement prevents these processes from querying networking status information, causing access-denied messages and incomplete server diagnostics.- Access is minimal: The requested interface provides read-only observation of network state. It does not allow the snap to change network configuration, routing, firewall rules, or interfaces.
-
Justification for
system-observe:MongoDB collects system and process information for startup checks, runtime resource detection, server-status reporting. This includes information about CPU and memory usage, process state, and other operating-system metrics.
The interface is required by the
mongod,mongos, andmongobridgeapplications. It is also used by the packagedmongoshclient for system-level runtime information.Without the interface, these standard MongoDB operations encounter confinement denials or return incomplete system and diagnostic information.
- Access is minimal: The interface provides observational access only and does not allow the snap to control other processes or modify system configuration.
-
Justification for
mongosh-posix-mq:These strictly confined snaps include MongoDB Shell (
mongosh) as a first-class command.mongoshneeds access to the POSIX message queue named/mongosh; without the interface connection, its message-queue system calls are denied by confinement and the shell does not operate correctly.- Access is minimal: only the
/mongoshqueue is exposed, the consuming plug is used only by themongoshapplication, and consumer permissions are restricted toread
- Access is minimal: only the