chore: fix provider

Kujtim Hoxha created

Change summary

internal/config/config.go  | 2 +-
internal/config/resolve.go | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

Detailed changes

internal/config/config.go 🔗

@@ -72,7 +72,7 @@ type ProviderConfig struct {
 	Disable bool `json:"disable,omitempty"`
 
 	// Extra headers to send with each request to the provider.
-	ExtraHeaders map[string]string
+	ExtraHeaders map[string]string `json:"extra_headers,omitempty"`
 
 	// Used to pass extra parameters to the provider.
 	ExtraParams map[string]string `json:"-"`

internal/config/resolve.go 🔗

@@ -44,7 +44,7 @@ func (r *shellVariableResolver) ResolveValue(value string) (string, error) {
 
 	if strings.HasPrefix(value, "$(") && strings.HasSuffix(value, ")") {
 		command := strings.TrimSuffix(strings.TrimPrefix(value, "$("), ")")
-		ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
+		ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
 		defer cancel()
 
 		stdout, _, err := r.shell.Exec(ctx, command)