Conversation
2b7dc2b to
41fbc3b
Compare
41fbc3b to
6919355
Compare
6919355 to
66c3b91
Compare
smallinsky
left a comment
There was a problem hiding this comment.
Nice work. The code structure looks very neat.
First pass - I have left few nit comments and tested some paths and LGTM but I would like to take a carful look tomorrow before approving.
gabrielcorado
left a comment
There was a problem hiding this comment.
LGTM (I have only tested with RDS Proxy MSSQL).
Do simple AWS endpoint validation if no permissions to DescribeXXX
Does that mean we now recommend database agents to have DescribeXXX permissions? So that users can have "enhanced" validation?
| return trace.BadParameter("expect 1 domain but got %v", domains.DomainStatusList) | ||
| } | ||
|
|
||
| databases, err := services.NewDatabasesFromOpenSearchDomain(domains.DomainStatusList[0], nil) |
There was a problem hiding this comment.
Nit: Should we do the same for other databases? Use our NewDatabaseFromXXX to compare both databases.
There was a problem hiding this comment.
we certainly can, and probably should if we want absolute consistency =D. I'd prefer just comparing the address directly as we don't need other things from types.Database generated by NewDatabaseXXX. I only use NewDatabasessXXX for the plural cases as otherwise it would be too much logic to compare all URLs generated from one resource.
f5ddbfc to
6d37cf5
Compare
Yes. Actually this reminds a missing change on configurator. Added now. Thanks! |
6d37cf5 to
32dc295
Compare
… Service (#30054) * url checker * add ut * add comment in test plan * warnOnError only when err is not nil * fix typos etc. * enable metadata service permission for discovered databases * add a debug log when azure db url is validated
…covery Service (#30462) * Database Service to validate URL of database resources from Discovery Service (#30054) * url checker * add ut * add comment in test plan * warnOnError only when err is not nil * fix typos etc. * enable metadata service permission for discovered databases * add a debug log when azure db url is validated * fix services.NewDatabasesFromOpenSearchDomain typo
Related issue:
To validate database resource from Discovery Service
DescribeXXXcalls to fetch AWS resources and compare URLsDescribeXXXDid some basic testing with RDS instance. I will do a few more but likely I won't cover all database types. Hopefully we can catch any problems during release testing.
Testing: