mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* Add secrets table to reencryption * Add updated column check for b64Secret reencryption * Use field values for b64Secret to clarify booleans
30 lines
426 B
Go
30 lines
426 B
Go
package secretsmigrations
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/grafana/grafana/pkg/infra/log"
|
|
)
|
|
|
|
type simpleSecret struct {
|
|
tableName string
|
|
columnName string
|
|
}
|
|
|
|
type b64Secret struct {
|
|
simpleSecret
|
|
hasUpdatedColumn bool
|
|
}
|
|
|
|
type jsonSecret struct {
|
|
tableName string
|
|
}
|
|
|
|
type alertingSecret struct{}
|
|
|
|
func nowInUTC() string {
|
|
return time.Now().UTC().Format("2006-01-02 15:04:05")
|
|
}
|
|
|
|
var logger = log.New("secrets.migrations")
|