db

package
v1.2.3-fred.6 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package db contains methods for working with database connection profiles that combine connection parameters for a particular database.

For Postgres it's the connection service file:

https://www.postgresql.org/docs/current/libpq-pgservice.html

For MySQL it's the option file:

https://dev.mysql.com/doc/refman/8.0/en/option-files.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

Add updates database connection profile file.

func Delete

Delete removes the specified database connection profile.

func Env

Env returns environment variables for the specified database profile.

func GenerateDatabaseCertificates

func GenerateDatabaseCertificates(ctx context.Context, req GenerateDatabaseCertificatesRequest) ([]string, error)

GenerateDatabaseCertificates to be used by databases to set up mTLS authentication

func IsSupported

func IsSupported(db tlsca.RouteToDatabase) bool

IsSupported checks if provided database is supported.

func New

func New(tc *client.TeleportClient, db tlsca.RouteToDatabase, clientProfile client.ProfileStatus, rootCluster string, host string, port int) *profile.ConnectProfile

New makes a new database connection profile.

Types

type GenerateDatabaseCertificatesRequest

type GenerateDatabaseCertificatesRequest struct {
	ClusterAPI         auth.ClientI
	Principals         []string
	OutputFormat       identityfile.Format
	OutputCanOverwrite bool
	OutputLocation     string
	IdentityFileWriter identityfile.ConfigWriter
	TTL                time.Duration
	Key                *client.Key
	// JKSKeyStore is used to generate JKS keystore used for cassandra format.
	JKSPassword string
}

GenerateDatabaseCertificatesRequest contains the required fields used to generate database certificates Those certificates will be used by databases to set up mTLS authentication against Teleport

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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