feat(integrations): use username and password
This commit is contained in:
parent
e57d151043
commit
8d78251fc0
1 changed files with 3 additions and 4 deletions
|
|
@ -9,7 +9,6 @@ import (
|
|||
"strconv"
|
||||
"time"
|
||||
|
||||
b64 "encoding/base64"
|
||||
"openreplay/backend/pkg/messages"
|
||||
"openreplay/backend/pkg/utime"
|
||||
)
|
||||
|
|
@ -46,9 +45,9 @@ func (es *elasticsearch) Request(c *client) error {
|
|||
Addresses: []string{
|
||||
address,
|
||||
},
|
||||
//Username: es.ApiKeyId,
|
||||
//Password: es.ApiKey,
|
||||
APIKey: b64.StdEncoding.EncodeToString([]byte(es.ApiKeyId + ":" + es.ApiKey)),
|
||||
Username: es.ApiKeyId,
|
||||
Password: es.ApiKey,
|
||||
//APIKey: b64.StdEncoding.EncodeToString([]byte(es.ApiKeyId + ":" + es.ApiKey)),
|
||||
}
|
||||
esC, err := elasticlib.NewClient(cfg)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue