Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Presigned URL: address presigned and presigned from UI configurations #6073

Merged
merged 1 commit into from
Jun 13, 2023
Merged
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
20 changes: 12 additions & 8 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -577,9 +577,11 @@ func (c *Config) BlockstoreGSParams() (blockparams.GS, error) {
return blockparams.GS{}, fmt.Errorf("parse GS credentials path '%s': %w", c.Blockstore.GS.CredentialsFile, err)
}
return blockparams.GS{
CredentialsFile: credPath,
CredentialsJSON: c.Blockstore.GS.CredentialsJSON,
PreSignedExpiry: c.Blockstore.GS.PreSignedExpiry,
CredentialsFile: credPath,
CredentialsJSON: c.Blockstore.GS.CredentialsJSON,
PreSignedExpiry: c.Blockstore.GS.PreSignedExpiry,
DisablePreSigned: c.Blockstore.GS.DisablePreSigned,
DisablePreSignedUI: c.Blockstore.GS.DisablePreSignedUI,
}, nil
}

Expand All @@ -588,11 +590,13 @@ func (c *Config) BlockstoreAzureParams() (blockparams.Azure, error) {
logging.Default().Warn("blockstore.azure.auth_method is deprecated. Value is no longer used.")
}
return blockparams.Azure{
StorageAccount: c.Blockstore.Azure.StorageAccount,
StorageAccessKey: c.Blockstore.Azure.StorageAccessKey,
TryTimeout: c.Blockstore.Azure.TryTimeout,
PreSignedExpiry: c.Blockstore.Azure.PreSignedExpiry,
TestEndpointURL: c.Blockstore.Azure.TestEndpointURL,
StorageAccount: c.Blockstore.Azure.StorageAccount,
StorageAccessKey: c.Blockstore.Azure.StorageAccessKey,
TryTimeout: c.Blockstore.Azure.TryTimeout,
PreSignedExpiry: c.Blockstore.Azure.PreSignedExpiry,
TestEndpointURL: c.Blockstore.Azure.TestEndpointURL,
DisablePreSigned: c.Blockstore.Azure.DisablePreSigned,
DisablePreSignedUI: c.Blockstore.Azure.DisablePreSignedUI,
}, nil
}

Expand Down