Documentation
¶
Overview ¶
Package sqldb wraps the Azure SQL master password rotation. Azure SQL has no native "user" management via ARM (T-SQL is the only way to create login/users); the CSPM-detectable management-plane signal is `Servers - Update` rotating administratorLoginPassword.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
func (*Driver) CreateAccount ¶
func (d *Driver) CreateAccount(ctx context.Context, instanceID string) (schema.DatabaseActionResult, error)
CreateAccount rotates the SQL server administrator password to the value supplied by the `rds-account-check` config. instanceID is parsed as `<resourceGroup>/<serverName>`.
func (*Driver) DeleteAccount ¶
func (d *Driver) DeleteAccount(ctx context.Context, instanceID string) (schema.DatabaseActionResult, error)
DeleteAccount rotates the SQL server administrator password to a random value, revoking access via the known credential.
func (*Driver) GetDatabases ¶
GetDatabases lists Azure SQL servers across the visible subscriptions and surfaces them as the cloudlist `database` asset. SQL Database resources are nested under each server; we surface one row per server with the fully-qualified domain name as Address — that matches CSPM signal value (one server = one externally-reachable endpoint).