ServerSideExpressions: Disable SQL Expressions to prevent RCE and LFI vulnerability (#94942)
* disable sql expressions
remove duckdb ref
* Run `make update-workspace`
---------
Co-authored-by: Scott Lepper <scott.lepper@gmail.com>
(cherry picked from commit ea71201ddc)
27 lines
505 B
Go
27 lines
505 B
Go
package sql
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"github.com/grafana/grafana-plugin-sdk-go/data"
|
|
)
|
|
|
|
type DB struct {
|
|
}
|
|
|
|
func (db *DB) TablesList(rawSQL string) ([]string, error) {
|
|
return nil, errors.New("not implemented")
|
|
}
|
|
|
|
func (db *DB) RunCommands(commands []string) (string, error) {
|
|
return "", errors.New("not implemented")
|
|
}
|
|
|
|
func (db *DB) QueryFramesInto(name string, query string, frames []*data.Frame, f *data.Frame) error {
|
|
return errors.New("not implemented")
|
|
}
|
|
|
|
func NewInMemoryDB() *DB {
|
|
return &DB{}
|
|
}
|