mongodbatlas

package module
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2024 License: MPL-2.0 Imports: 16 Imported by: 3

README

HashiCorp Vault Database Secrets Engine - MongoDB Atlas plugin

MongoDB Atlas is one of the supported plugins for the HashiCorp Vault Database Secrets Engine and allows for the programmatic generation of unique, ephemeral MongoDB Database User credentials in MongoDB Atlas Projects.

The plugin is included from version 1.4 of Vault.

Please note: If you would like to install a different version of this plugin than the one that is bundled with Vault, versions v0.2.0 onwards of this plugin are incompatible with Vault versions before 1.6.0 due to an update of the database plugin interface.

Support, Bugs and Feature Requests

Support for the HashiCorp Vault Database Secrets Engine - MongoDB Atlas is provided under MongoDB Atlas support plans. Please submit support questions within the Atlas UI. Vault support is via HashiCorp.

Bugs should be filed under the Issues section of this repo.

Feature requests can be submitted in the Issues section or directly to MongoDB - just select the Vault plugin as the category or vote for an already suggested feature.

Please note: HashiCorp takes Vault's security and their users' trust very seriously, as does MongoDB.

If you believe you have found a security issue in Vault or with this plugin, please responsibly disclose by contacting HashiCorp at security@hashicorp.com and contact MongoDB directly via security@mongodb.com or open a ticket (link is external).

Acceptance Testing

In order to perform acceptance testing, you need to provide all of the necessary information to connect to a MongoDB Atlas Project. All ATLAS_* environment variables must be provided in order for the acceptance tests to run properly. A cluster must be available during the test. A free tier cluster can be provisioned manually to test.

Environment variable Description
ATLAS_PUBLIC_KEY The Atlas API public key
ATLAS_PRIVATE_KEY The Atlas API private key
ATLAS_PROJECT_ID The desired project ID or group ID
ATLAS_CLUSTER_NAME The desired cluster's name, e.g., vault-project.xyz.mongodb.net
ATLAS_ALLOWLIST_IP The public IP of the machine that the test is being performed

Then you can run make testacc to execute the tests.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (interface{}, error)

Types

type MongoDBAtlas

type MongoDBAtlas struct {
	// contains filtered or unexported fields
}

func (MongoDBAtlas) Close

func (c MongoDBAtlas) Close() error

Close terminates the database connection.

func (MongoDBAtlas) Connection

func (c MongoDBAtlas) Connection(_ context.Context) (interface{}, error)

func (*MongoDBAtlas) DeleteUser added in v0.2.0

func (*MongoDBAtlas) Initialize

func (*MongoDBAtlas) NewUser added in v0.2.0

func (*MongoDBAtlas) Type

func (m *MongoDBAtlas) Type() (string, error)

Type returns the TypeName for this backend

func (*MongoDBAtlas) UpdateUser added in v0.2.0

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL