diff --git a/Directory.Packages.props b/Directory.Packages.props index 36bc0fe6a1..9b5c3098d5 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -4,7 +4,7 @@ false true 6.9.1 - 2.122.0 + 2.123.0 diff --git a/src/Gallery.CredentialExpiration/Job.cs b/src/Gallery.CredentialExpiration/Job.cs index 5fde1cdb74..7d35a08ffa 100644 --- a/src/Gallery.CredentialExpiration/Job.cs +++ b/src/Gallery.CredentialExpiration/Job.cs @@ -1,4 +1,4 @@ -// Copyright (c) .NET Foundation. All rights reserved. +// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; @@ -56,6 +56,7 @@ public override void Init(IServiceContainer serviceContainer, IDictionary()); Storage = storageFactory.Create(); } @@ -182,4 +183,4 @@ protected override void ConfigureJobServices(IServiceCollection services, IConfi ConfigureInitializationSection(services, configurationRoot); } } -} \ No newline at end of file +} diff --git a/src/GitHubVulnerabilities2Db/Job.cs b/src/GitHubVulnerabilities2Db/Job.cs index cd707ffaaa..2059afeecf 100644 --- a/src/GitHubVulnerabilities2Db/Job.cs +++ b/src/GitHubVulnerabilities2Db/Job.cs @@ -176,6 +176,7 @@ protected void ConfigureCollectorServices(ContainerBuilder containerBuilder) return new AzureStorageFactory( ctx.Resolve(), ctx.Resolve().CursorContainerName, + enablePublicAccess: true, ctx.Resolve>()); }) .As() diff --git a/src/GitHubVulnerabilities2v3/Job.cs b/src/GitHubVulnerabilities2v3/Job.cs index 53d570a87e..d4f5a3d0ec 100644 --- a/src/GitHubVulnerabilities2v3/Job.cs +++ b/src/GitHubVulnerabilities2v3/Job.cs @@ -128,6 +128,7 @@ protected void ConfigureCollectorServices(ContainerBuilder containerBuilder) return new AzureStorageFactory( ctx.Resolve(), ctx.Resolve().V3VulnerabilityContainerName, + enablePublicAccess: true, ctx.Resolve>()); }) .As() diff --git a/src/Stats.PostProcessReports/Job.cs b/src/Stats.PostProcessReports/Job.cs index 30e4211465..0387e3ed88 100644 --- a/src/Stats.PostProcessReports/Job.cs +++ b/src/Stats.PostProcessReports/Job.cs @@ -1,4 +1,4 @@ -// Copyright (c) .NET Foundation. All rights reserved. +// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Threading.Tasks; @@ -50,6 +50,7 @@ protected override void ConfigureAutofacServices(ContainerBuilder containerBuild var factory = new AzureStorageFactory( c.Resolve(), cfg.SourceContainerName, + enablePublicAccess: false, c.Resolve>(), cfg.SourcePath + cfg.DetailedReportDirectoryName, initializeContainer: false); @@ -66,6 +67,7 @@ protected override void ConfigureAutofacServices(ContainerBuilder containerBuild var factory = new AzureStorageFactory( c.Resolve(), cfg.WorkContainerName, + enablePublicAccess: false, c.Resolve>(), cfg.WorkPath, initializeContainer: false); @@ -82,6 +84,7 @@ protected override void ConfigureAutofacServices(ContainerBuilder containerBuild var factory = new AzureStorageFactory( c.Resolve(), cfg.DestinationContainerName, + enablePublicAccess: true, c.Resolve>(), cfg.DestinationPath, initializeContainer: false); diff --git a/src/Validation.PackageSigning.ProcessSignature/Job.cs b/src/Validation.PackageSigning.ProcessSignature/Job.cs index df9f49842c..e3482319ef 100644 --- a/src/Validation.PackageSigning.ProcessSignature/Job.cs +++ b/src/Validation.PackageSigning.ProcessSignature/Job.cs @@ -52,7 +52,11 @@ protected override void ConfigureJobServices(IServiceCollection services, IConfi var config = p.GetRequiredService>().Value; var targetStorageAccount = new BlobServiceClient(AzureStorageFactory.PrepareConnectionString(config.DataStorageAccount)); - var storageFactory = new AzureStorageFactory(targetStorageAccount, config.ContainerName, LoggerFactory.CreateLogger()); + var storageFactory = new AzureStorageFactory( + targetStorageAccount, + config.ContainerName, + enablePublicAccess: false, + LoggerFactory.CreateLogger()); var storage = storageFactory.Create(); return new CertificateStore(storage, LoggerFactory.CreateLogger()); diff --git a/src/Validation.PackageSigning.ValidateCertificate/Job.cs b/src/Validation.PackageSigning.ValidateCertificate/Job.cs index 9dccb01688..359c6ffa2f 100644 --- a/src/Validation.PackageSigning.ValidateCertificate/Job.cs +++ b/src/Validation.PackageSigning.ValidateCertificate/Job.cs @@ -33,7 +33,11 @@ protected override void ConfigureJobServices(IServiceCollection services, IConfi var config = p.GetRequiredService>().Value; var targetStorageAccount = new BlobServiceClient(AzureStorageFactory.PrepareConnectionString(config.DataStorageAccount)); - var storageFactory = new AzureStorageFactory(targetStorageAccount, config.ContainerName, LoggerFactory.CreateLogger()); + var storageFactory = new AzureStorageFactory( + targetStorageAccount, + config.ContainerName, + enablePublicAccess: false, + LoggerFactory.CreateLogger()); var storage = storageFactory.Create(); return new CertificateStore(storage, LoggerFactory.CreateLogger());