Skip to content

Commit d37a595

Browse files
committed
DOCSP-14120 add macos security note mongo shell
1 parent 40877ea commit d37a595

6 files changed

+44
-40
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
ref: macos-prevent-launch-mongod
2+
source:
3+
ref: _macos-prevent-launch
4+
file: extracts-macos-prevent-launch-base.yaml
5+
replacement:
6+
binary_name: ":binary:`~bin.mongod`"
7+
---
8+
ref: macos-prevent-launch-mongo
9+
source:
10+
ref: _macos-prevent-launch
11+
file: extracts-macos-prevent-launch-base.yaml
12+
replacement:
13+
binary_name: "the :binary:`~bin.mongo` shell"
14+
...
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
ref: _macos-prevent-launch
2+
content: |
3+
macOS may prevent {{binary_name}} from running after installation. If
4+
you receive a security error when starting {{binary_name}}
5+
indicating that the developer could not be identified or verified,
6+
do the following to grant {{binary_name}} access to run:
7+
8+
- Open *System Preferences*
9+
- Select the *Security and Privacy* pane.
10+
- Under the *General* tab, click the button to the right of the
11+
message about {{binary_name}}, labelled either :guilabel:`Open
12+
Anyway` or :guilabel:`Allow Anyway` depending on your version of
13+
macOS.
14+
...

source/includes/fact-download-mongo-shell.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,8 @@ a standalone package by following these steps:
4747

4848
4. Copy the :binary:`~bin.mongo` shell from the archive to a location on
4949
your filesystem.
50+
51+
For additional installation guidance specific to your platform, or to
52+
install the :binary:`~bin.mongo` shell as part of a MongoDB Server
53+
installation, see the :doc:`installation guide for your platform
54+
</installation>`.

source/includes/steps-run-mongodb-on-osx.yaml

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,7 @@ post: |
8080
.. admonition:: macOS Prevents ``mongod`` From Opening
8181
:class: note
8282
83-
macOS may prevent ``mongod`` from running after installation. If
84-
you receive a security error when starting ``mongod``
85-
indicating that the developer could not be identified or verified,
86-
do the following to grant ``mongod`` access to run:
87-
88-
- Open *System Preferences*
89-
- Select the *Security and Privacy* pane.
90-
- Under the *General* tab, click the button to the right of the
91-
message about ``mongod``, labelled either :guilabel:`Open Anyway`
92-
or :guilabel:`Allow Anyway` depending on your version of macOS.
83+
.. include:: /includes/extracts/macos-prevent-launch-mongod.rst
9384
9485
# End-for-getting-started-guide
9586
---
@@ -123,16 +114,7 @@ post: |
123114
.. admonition:: macOS Prevents ``mongo`` From Opening
124115
:class: note
125116
126-
macOS may prevent ``mongo`` from running after installation. If
127-
you receive a security error when starting ``mongo``
128-
indicating that the developer could not be identified or verified,
129-
do the following to grant ``mongo`` access to run:
130-
131-
- Open *System Preferences*
132-
- Select the *Security and Privacy* pane.
133-
- Under the *General* tab, click the button to the right of the
134-
message about ``mongo``, labelled either :guilabel:`Open Anyway`
135-
or :guilabel:`Allow Anyway` depending on your version of macOS.
117+
.. include:: /includes/extracts/macos-prevent-launch-mongo.rst
136118
137119
For more information on connecting using the :binary:`~bin.mongo`
138120
shell, such as to connect to a :binary:`~bin.mongod` instance running

source/mongo.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ Prerequisites
5656
can copy the ``mongo`` shell to a location on your filesystem that
5757
is already present in your ``PATH``, such as ``/usr/bin`` on Linux.
5858

59+
macOS Security Verification
60+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
61+
62+
*For macOS users:*
63+
64+
.. include:: /includes/extracts/macos-prevent-launch-mongo.rst
65+
5966
Local MongoDB Instance on Default Port
6067
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6168

source/tutorial/install-mongodb-on-os-x.txt

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -204,16 +204,7 @@ this file as well.
204204
.. admonition:: macOS Prevents ``mongod`` From Opening
205205
:class: note
206206

207-
macOS may prevent ``mongod`` from running after installation. If
208-
you receive a security error when starting ``mongod``
209-
indicating that the developer could not be identified or verified,
210-
do the following to grant ``mongod`` access to run:
211-
212-
- Open *System Preferences*
213-
- Select the *Security and Privacy* pane.
214-
- Under the *General* tab, click the button to the right of the
215-
message about ``mongod``, labelled either :guilabel:`Open Anyway`
216-
or :guilabel:`Allow Anyway` depending on your version of macOS.
207+
.. include:: /includes/extracts/macos-prevent-launch-mongod.rst
217208

218209
To verify that MongoDB is running, perform one of the following:
219210

@@ -250,16 +241,7 @@ running instance. From a new terminal, issue the following:
250241
.. admonition:: macOS Prevents ``mongo`` From Opening
251242
:class: note
252243

253-
macOS may prevent ``mongo`` from running after installation. If
254-
you receive a security error when starting ``mongo``
255-
indicating that the developer could not be identified or verified,
256-
do the following to grant ``mongo`` access to run:
257-
258-
- Open *System Preferences*
259-
- Select the *Security and Privacy* pane.
260-
- Under the *General* tab, click the button to the right of the
261-
message about ``mongo``, labelled either :guilabel:`Open Anyway`
262-
or :guilabel:`Allow Anyway` depending on your version of macOS.
244+
.. include:: /includes/extracts/macos-prevent-launch-mongo.rst
263245

264246
For information on CRUD (Create,Read,Update,Delete) operations, see:
265247

0 commit comments

Comments
 (0)