db

package
v0.0.0-...-5c79d48 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: AGPL-3.0 Imports: 15 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 GenerateDatabaseServerCertificates

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

GenerateDatabaseServerCertificates 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
	// Password is used to generate JKS keystore used for cassandra format or Oracle wallet.
	Password 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