70 references to CertificateTrustScope
Aspire.Hosting (35)
ApplicationModel\CertificateAuthorityCollectionAnnotation.cs (1)
57public CertificateTrustScope? Scope { get; internal set; }
ApplicationModel\CertificateTrustConfigurationCallbackAnnotation.cs (4)
59/// <see cref="CertificateTrustScope.Override"/> or <see cref="CertificateTrustScope.System"/> is configured. 87/// Gets the <see cref="CertificateTrustScope"/> for the resource. 89public required CertificateTrustScope Scope { get; init; }
ApplicationModel\CertificateTrustExecutionConfigurationGatherer.cs (8)
19private readonly Func<CertificateTrustScope, CertificateTrustExecutionConfigurationContext> _configContextFactory; 25public CertificateTrustExecutionConfigurationGatherer(Func<CertificateTrustScope, CertificateTrustExecutionConfigurationContext> configContextFactory) 41additionalData.Scope = CertificateTrustScope.Append; 54if (additionalData.Scope == CertificateTrustScope.None) 60if (additionalData.Scope == CertificateTrustScope.System) 88if (additionalData.Scope != CertificateTrustScope.Append) 121if (additionalData.Scope == CertificateTrustScope.System) 138public 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)
1168/// <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> 1169/// <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)
1762if (scope == CertificateTrustScope.Append) 1791&& certificateTrustConfiguration.Scope != CertificateTrustScope.None 2169if (scope == CertificateTrustScope.Append) 2199&& certificateTrustConfiguration.Scope != CertificateTrustScope.None 2216if (certificateTrustConfiguration.Scope != CertificateTrustScope.Append) 2243CertificateTrustScope = certificateTrustConfiguration?.Scope ?? CertificateTrustScope.None, 2746public CertificateTrustScope CertificateTrustScope { get; init; }
ProjectResourceBuilderExtensions.cs (2)
440builder.WithCertificateTrustScope(CertificateTrustScope.None); 445if (ctx.Scope != CertificateTrustScope.None && OperatingSystem.IsWindows())
ResourceBuilderExtensions.cs (4)
2615/// Sets the <see cref="CertificateTrustScope"/> for custom certificate authorities associated with the resource. The scope 2624/// The default scope if not overridden is <see cref="CertificateTrustScope.Append"/> which means that custom certificate 2626/// <see cref="CertificateTrustScope.Override"/> indicates the set of certificates in referenced 2644public static IResourceBuilder<TResource> WithCertificateTrustScope<TResource>(this IResourceBuilder<TResource> builder, CertificateTrustScope scope)
Aspire.Hosting.JavaScript (2)
JavaScriptHostingExtensions.cs (2)
291if (ctx.Scope == CertificateTrustScope.Append) 1140.WithCertificateTrustScope(CertificateTrustScope.None);
Aspire.Hosting.JavaScript.Tests (1)
ResourceCreationTests.cs (1)
211Assert.Equal(CertificateTrustScope.None, certAnnotation.Scope);
Aspire.Hosting.Python (3)
PythonAppResourceBuilderExtensions.cs (3)
398.WithCertificateTrustScope(CertificateTrustScope.System) 401if (ctx.Scope == CertificateTrustScope.Append) 1326.WithCertificateTrustScope(CertificateTrustScope.None);
Aspire.Hosting.Python.Tests (1)
AddPythonAppTests.cs (1)
851Assert.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)
231Assert.Equal(CertificateTrustScope.Append, metadata.Scope); 245.WithCertificateTrustScope(CertificateTrustScope.System) 260Assert.Equal(CertificateTrustScope.System, metadata.Scope); 275.WithCertificateTrustScope(CertificateTrustScope.Override) 290Assert.Equal(CertificateTrustScope.Override, metadata.Scope); 303.WithCertificateTrustScope(CertificateTrustScope.None) 318Assert.Equal(CertificateTrustScope.None, metadata.Scope); 351.WithCertificateTrustScope(CertificateTrustScope.Append) 809private static Func<CertificateTrustScope, CertificateTrustExecutionConfigurationContext> CreateCertificateTrustConfigurationContextFactory()
TestingAppHost1.AppHost (1)
Program.cs (1)
23.WithCertificateTrustScope(CertificateTrustScope.None);