Update dependencies (#5518)
This commit is contained in:
5
vendor/github.com/open-policy-agent/opa/bundle/keys.go
generated
vendored
5
vendor/github.com/open-policy-agent/opa/bundle/keys.go
generated
vendored
@@ -8,7 +8,6 @@ package bundle
|
||||
import (
|
||||
"encoding/pem"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
|
||||
"github.com/open-policy-agent/opa/internal/jwx/jwa"
|
||||
@@ -115,7 +114,7 @@ func (s *SigningConfig) GetPrivateKey() (interface{}, error) {
|
||||
|
||||
var priv string
|
||||
if _, err := os.Stat(s.Key); err == nil {
|
||||
bs, err := ioutil.ReadFile(s.Key)
|
||||
bs, err := os.ReadFile(s.Key)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -133,7 +132,7 @@ func (s *SigningConfig) GetPrivateKey() (interface{}, error) {
|
||||
func (s *SigningConfig) GetClaims() (map[string]interface{}, error) {
|
||||
var claims map[string]interface{}
|
||||
|
||||
bs, err := ioutil.ReadFile(s.ClaimsPath)
|
||||
bs, err := os.ReadFile(s.ClaimsPath)
|
||||
if err != nil {
|
||||
return claims, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user