Skip to content

Cannot set RDS proxy for SQL Server as static databases #38308

Open

Description

Expected behavior:

db_service:
  enabled: true
  databases:
  - name: "sample-rdsproxy-mssql"
    uri: "my-proxy.proxy-abcdefghijklmnop.us-west-1.rds.amazonaws.com:1433"
    protocol: "sqlserver"

Service should start

Current behavior:

ERROR REPORT:                                                                                                           
Original Error: *trace.BadParameterError missing keytab file path or kdc_host_name for database "sample-rdsproxy-mssql"             
Stack Trace:
    github.com/gravitational/teleport/lib/service/servicecfg/database.go:346 github.com/gravitational/teleport/lib/service/servicecfg.(*DatabaseAD).CheckAndSetDefaults
    github.com/gravitational/teleport/lib/service/servicecfg/database.go:128 github.com/gravitational/teleport/lib/service/servicecfg.(*Database).CheckAndSetDefaults
    github.com/gravitational/teleport/lib/config/configuration.go:1799 github.com/gravitational/teleport/lib/config.applyDatabasesConfig
    github.com/gravitational/teleport/lib/config/configuration.go:546 github.com/gravitational/teleport/lib/config.ApplyFileConfig
    github.com/gravitational/teleport/lib/config/configuration.go:2382 github.com/gravitational/teleport/lib/config.Configure
    github.com/gravitational/teleport/tool/teleport/common/teleport.go:544 github.com/gravitational/teleport/tool/teleport/common.Run         

Bug details:

  • Teleport version: v15

RDS Proxy should be exempted from this:

if d.Protocol == defaults.ProtocolSQLServer &&
(d.AD.Domain != "" || !strings.Contains(d.URI, azure.MSSQLEndpointSuffix)) {
if err := d.AD.CheckAndSetDefaults(d.Name); err != nil {
return trace.Wrap(err)
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugdatabase-accessDatabase access related issues and PRsdb/sqlserverMicrosoft SQL Server related database access issuessupport-loadThis issue generates support load

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions