Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

(DOCSP-28193) created a page for securely storing config file#133

Closed
carriecwk wants to merge 3 commits intomongodb:masterfrom
carriecwk:DOCSP-28193
Closed

(DOCSP-28193) created a page for securely storing config file#133
carriecwk wants to merge 3 commits intomongodb:masterfrom
carriecwk:DOCSP-28193

Conversation

@carriecwk
Copy link
Copy Markdown
Contributor

@carriecwk carriecwk commented Apr 28, 2023

Copy link
Copy Markdown
Collaborator

@erabil-mdb erabil-mdb left a comment

Choose a reason for hiding this comment

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

Awesome job @carriecwk! LGTM. Just one suggestion you can take or leave.

Comment thread source/security.txt Outdated
:depth: 1
:class: singlecol

{+atlas-cli+}, like most popular CLIs, enables you to store your configuration file in
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
{+atlas-cli+}, like most popular CLIs, enables you to store your configuration file in
The {+atlas-cli+}, like most popular CLIs, enables you to store your configuration file in

Copy link
Copy Markdown
Collaborator

@erabil-mdb erabil-mdb left a comment

Choose a reason for hiding this comment

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

LGTM!

Comment thread source/security.txt
Comment on lines +37 to +38
- Installing the ``platformdirs`` `Python package <https://pypi.org/project/platformdirs/>`__ to determine appropriate platform-specific directories

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

not really sure what to do with this, what do I do once I found the file location?

Comment thread source/security.txt
Comment on lines +19 to +27
Overriding the Private API Key Value by Using an Environment Variable
---------------------------------------------------------------------

You can specify configuration settings by using :ref:`environment variables <atlas-cli-env-vars>`.
When you run any command, each setting that you specify with an environment variable takes precedence
over the profile stored in the configuration file.

You can encrypt the value of your private API key by overriding your private API key value through
the :ref:`MONGODB_ATLAS_PRIVATE_API_KEY environment variable <atlas-cli-env-vars>`.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this guide is about storing the file location but then the first recommendation is not not use the file, I find this a bit confusing

Comment thread source/security.txt
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this guide is a bit confusing, it doesn't really tell me how to tore the file securely, it first tells me not to use the file and use envs instead, then just tells me to change to config file location without actually telling me how to make it secure

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Personally I think mongocli docs handles this a bit better dirrectly explaning the file in a general config file page
https://www.mongodb.com/docs/mongocli/stable/configure/configuration-file/
Atlas CLI instead talks about saving connections settins, https://docs-mongodbcom-staging.corp.mongodb.com/atlas-cli/docsworker-xlarge/DOCSP-28193/atlas-cli-save-connection-settings/, which would be the last place I would look for the config file details, and it then for linux mentions XDG_CONFIG_HOME

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants