mysqlmylogin

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: Apache-2.0, BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Overview

Package mysqlmylogin provides an extractor for identifying secrets in .mylogin.cnf files.

Index

Constants

View Source
const (
	// Name is the unique name of this extractor.
	Name = "secrets/mysqlmylogin"
)

Variables

This section is empty.

Functions

func New

func New() filesystem.Extractor

New returns a .mylogin.cnf extractor.

Types

type Extractor

type Extractor struct{}

Extractor extracts mysql credentials from .mylogin.cnf files.

func (Extractor) Extract

Extract extracts Mysql credentials from .mylogin.cnf file.

func (Extractor) FileRequired

func (e Extractor) FileRequired(api filesystem.FileAPI) bool

FileRequired returns true if the specified file is a .mylogin.cnf file.

func (Extractor) Name

func (e Extractor) Name() string

Name of the extractor.

func (Extractor) Requirements

func (e Extractor) Requirements() *plugin.Capabilities

Requirements of the extractor.

func (Extractor) Version

func (e Extractor) Version() int

Version of the extractor.

type Section

type Section struct {
	SectionName string
	User        string
	Password    string
	Host        string
	Port        string
	Socket      string
}

Section is a Veles Secret that holds relevant information for a [Mysql MyLogin](https://dev.mysql.com/doc/refman/8.4/en/option-files.html).

Jump to

Keyboard shortcuts

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