70 references to CertificateTrustScope
Aspire.Hosting (35)
ApplicationModel\CertificateAuthorityCollectionAnnotation.cs (1)
57public CertificateTrustScope? Scope { get; internal set; }
ApplicationModel\CertificateTrustConfigurationCallbackAnnotation.cs (4)
56/// <see cref="CertificateTrustScope.Override"/> or <see cref="CertificateTrustScope.System"/> is configured. 84/// Gets the <see cref="CertificateTrustScope"/> for the resource. 86public required CertificateTrustScope Scope { get; init; }
ApplicationModel\CertificateTrustExecutionConfigurationGatherer.cs (8)
19private readonly Func<CertificateTrustScope, CertificateTrustExecutionConfigurationContext> _configContextFactory; 25public CertificateTrustExecutionConfigurationGatherer(Func<CertificateTrustScope, CertificateTrustExecutionConfigurationContext> configContextFactory) 40additionalData.Scope = CertificateTrustScope.Append; 53if (additionalData.Scope == CertificateTrustScope.None) 59if (additionalData.Scope == CertificateTrustScope.System) 87if (additionalData.Scope != CertificateTrustScope.Append) 112if (additionalData.Scope == CertificateTrustScope.System) 129public CertificateTrustScope Scope { get; internal set; }
ApplicationModel\ContainerCertificatePathsAnnotation.cs (5)
45/// <see cref="CertificateTrustScope"/> is set to <see cref="CertificateTrustScope.Override"/> or 46/// <see cref="CertificateTrustScope.System"/>. 53/// when the resource's <see cref="CertificateTrustScope"/> is set to <see cref="CertificateTrustScope.Append"/>.
ApplicationModel\ExecutionConfigurationBuilderExtensions.cs (1)
41public static IExecutionConfigurationBuilder WithCertificateTrustConfig(this IExecutionConfigurationBuilder builder, Func<CertificateTrustScope, CertificateTrustExecutionConfigurationContext> configContextFactory)
ContainerResourceBuilderExtensions.cs (3)
1126/// <param name="defaultCertificateBundlePaths">List of default certificate bundle paths in the container that will be replaced in <see cref="CertificateTrustScope.Override"/> or <see cref="CertificateTrustScope.System"/> modes. If not specified, defaults to <c>/etc/ssl/certs/ca-certificates.crt</c> for Linux containers.</param> 1127/// <param name="defaultCertificateDirectoryPaths">List of default certificate directory paths in the container that may be appended to the custom certificates directory in <see cref="CertificateTrustScope.Append"/> mode. If not specified, defaults to <c>/usr/local/share/ca-certificates/</c> for Linux containers.</param>
Dcp\DcpExecutor.cs (7)
1620if (scope == CertificateTrustScope.Append) 1648&& certificateTrustConfiguration.Scope != CertificateTrustScope.None 1972if (scope == CertificateTrustScope.Append) 1997&& certificateTrustConfiguration.Scope != CertificateTrustScope.None 2014if (certificateTrustConfiguration.Scope != CertificateTrustScope.Append) 2028CertificateTrustScope = certificateTrustConfiguration?.Scope ?? CertificateTrustScope.None, 2515public CertificateTrustScope CertificateTrustScope { get; init; }
ProjectResourceBuilderExtensions.cs (2)
425builder.WithCertificateTrustScope(CertificateTrustScope.None); 430if (ctx.Scope != CertificateTrustScope.None && OperatingSystem.IsWindows())
ResourceBuilderExtensions.cs (4)
2385/// Sets the <see cref="CertificateTrustScope"/> for custom certificate authorities associated with the resource. The scope 2394/// The default scope if not overridden is <see cref="CertificateTrustScope.Append"/> which means that custom certificate 2396/// <see cref="CertificateTrustScope.Override"/> indicates the set of certificates in referenced 2413public static IResourceBuilder<TResource> WithCertificateTrustScope<TResource>(this IResourceBuilder<TResource> builder, CertificateTrustScope scope)
Aspire.Hosting.JavaScript (2)
JavaScriptHostingExtensions.cs (2)
283if (ctx.Scope == CertificateTrustScope.Append) 895.WithCertificateTrustScope(CertificateTrustScope.None);
Aspire.Hosting.JavaScript.Tests (1)
ResourceCreationTests.cs (1)
211Assert.Equal(CertificateTrustScope.None, certAnnotation.Scope);
Aspire.Hosting.Python (3)
PythonAppResourceBuilderExtensions.cs (3)
420.WithCertificateTrustScope(CertificateTrustScope.System) 423if (ctx.Scope == CertificateTrustScope.Append) 1346.WithCertificateTrustScope(CertificateTrustScope.None);
Aspire.Hosting.Python.Tests (1)
AddPythonAppTests.cs (1)
840Assert.Equal(CertificateTrustScope.None, certAnnotation.Scope);
Aspire.Hosting.Tests (27)
DistributedApplicationTests.cs (18)
815[InlineData(false, false, false, false, CertificateTrustScope.Append)] 816[InlineData(false, true, true, false, CertificateTrustScope.Append)] 817[InlineData(true, false, false, false, CertificateTrustScope.Append)] 818[InlineData(false, false, false, false, CertificateTrustScope.Override)] 819[InlineData(false, true, true, false, CertificateTrustScope.Override)] 820[InlineData(true, false, false, false, CertificateTrustScope.Override)] 821[InlineData(false, false, false, true, CertificateTrustScope.Override)] 822[InlineData(false, true, true, true, CertificateTrustScope.Override)] 823[InlineData(true, false, false, true, CertificateTrustScope.Override)] 824[InlineData(false, false, false, false, CertificateTrustScope.None)] 825[InlineData(false, true, false, false, CertificateTrustScope.None)] 826[InlineData(true, false, false, false, CertificateTrustScope.None)] 827public async Task VerifyContainerIncludesExpectedDevCertificateConfiguration(bool? implicitTrust, bool? explicitTrust, bool expectDevCert, bool overridePaths, CertificateTrustScope trustScope) 875if (trustScope == CertificateTrustScope.Append) 879else if (trustScope == CertificateTrustScope.Override) 896if (trustScope == CertificateTrustScope.Append) 905if (trustScope == CertificateTrustScope.None) 920if (trustScope == CertificateTrustScope.Override)
ExecutionConfigurationGathererTests.cs (9)
228Assert.Equal(CertificateTrustScope.Append, metadata.Scope); 242.WithCertificateTrustScope(CertificateTrustScope.System) 257Assert.Equal(CertificateTrustScope.System, metadata.Scope); 272.WithCertificateTrustScope(CertificateTrustScope.Override) 287Assert.Equal(CertificateTrustScope.Override, metadata.Scope); 300.WithCertificateTrustScope(CertificateTrustScope.None) 315Assert.Equal(CertificateTrustScope.None, metadata.Scope); 348.WithCertificateTrustScope(CertificateTrustScope.Append) 555private static Func<CertificateTrustScope, CertificateTrustExecutionConfigurationContext> CreateCertificateTrustConfigurationContextFactory()
TestingAppHost1.AppHost (1)
Program.cs (1)
23.WithCertificateTrustScope(CertificateTrustScope.None);