sql-operator

command module
v0.0.0-...-0f94a65 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

README

(My)SQL Operator

This project is a work in progress

The SQL Operator manages users and permissions on a MySQL instance. It aims to make it easy to create database users on a per-service level with unique credentials and narrow permissions.

Example usage

apiVersion: db.breeze.sh/v1alpha1
kind: User
metadata:
  name: user-sample
spec:
  username: example
  host: '%'
  secretName: example-db-credentials
  grants:
    - target: 'example.*'
      privileges: ['*']

This will create a database user with the username 'example'@'%', and execute a GRANT ALL PRIVILEGES ON example.* TO 'example'@'%'. It will generate a random password, and store the connection details for the user in a secret named example-db-credentials.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
v1alpha1
Package v1alpha1 contains API Schema definitions for the db v1alpha1 API group +kubebuilder:object:generate=true +groupName=db.breeze.sh
Package v1alpha1 contains API Schema definitions for the db v1alpha1 API group +kubebuilder:object:generate=true +groupName=db.breeze.sh

Jump to

Keyboard shortcuts

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