Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions grafana/rmf-app/pkg/plugin/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type Config struct {
Timeout int
CacheSize int
Username string
Password string
Password string // #nosec G117
JSON struct {
// Conventional Grafana HTTP config (see the `DataSourceHttpSettings` UI element)
TimeoutRaw string `json:"timeout"`
Expand All @@ -48,7 +48,7 @@ type Config struct {
Port string `json:"port"`
SSL bool `json:"ssl"`
Username string `json:"userName"`
Password string `json:"password"`
Password string `json:"password"` // #nosec G117
SSLVerify bool `json:"skipVerify"` // NB: the meaning of JSON field is inverted.
OmegamonDs string `json:"omegamonDs"`
}
Expand Down
2 changes: 1 addition & 1 deletion grafana/rmf-app/pkg/plugin/dds/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func (c *Client) GetRaw(path string, params ...string) ([]byte, error) {
req.SetBasicAuth(c.username, c.password)
}
logger.Debug("requesting DDS data", "url", fullURL)
response, err := c.httpClient.Do(req)
response, err := c.httpClient.Do(req) // #nosec G704
if err != nil {
logger.Debug("failed to fetch DDS data", "error", err)
return nil, err
Expand Down
Loading