Adding upstream version 1.34.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
e393c3af3f
commit
4978089aab
4963 changed files with 677545 additions and 0 deletions
19
plugins/secretstores/os/os_linux.go
Normal file
19
plugins/secretstores/os/os_linux.go
Normal file
|
@ -0,0 +1,19 @@
|
|||
//go:build linux
|
||||
|
||||
package os
|
||||
|
||||
import (
|
||||
"github.com/99designs/keyring"
|
||||
)
|
||||
|
||||
func (o *OS) createKeyringConfig() (keyring.Config, error) {
|
||||
if o.Keyring == "" {
|
||||
o.Keyring = "telegraf"
|
||||
}
|
||||
return keyring.Config{
|
||||
ServiceName: o.Keyring,
|
||||
AllowedBackends: []keyring.BackendType{keyring.KeyCtlBackend},
|
||||
KeyCtlScope: "user",
|
||||
KeyCtlPerm: 0x3f3f0000, // "alswrvalswrv------------"
|
||||
}, nil
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue