70 references to CertificateTrustScope
Aspire.Hosting (35)
ApplicationModel\CertificateAuthorityCollectionAnnotation.cs (1)
57
public
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.
86
public required
CertificateTrustScope
Scope { get; init; }
ApplicationModel\CertificateTrustExecutionConfigurationGatherer.cs (8)
19
private readonly Func<
CertificateTrustScope
, CertificateTrustExecutionConfigurationContext> _configContextFactory;
25
public CertificateTrustExecutionConfigurationGatherer(Func<
CertificateTrustScope
, CertificateTrustExecutionConfigurationContext> configContextFactory)
40
additionalData.Scope =
CertificateTrustScope
.Append;
53
if (additionalData.Scope ==
CertificateTrustScope
.None)
59
if (additionalData.Scope ==
CertificateTrustScope
.System)
87
if (additionalData.Scope !=
CertificateTrustScope
.Append)
112
if (additionalData.Scope ==
CertificateTrustScope
.System)
129
public
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)
41
public 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)
1620
if (scope ==
CertificateTrustScope
.Append)
1648
&& certificateTrustConfiguration.Scope !=
CertificateTrustScope
.None
1972
if (scope ==
CertificateTrustScope
.Append)
1997
&& certificateTrustConfiguration.Scope !=
CertificateTrustScope
.None
2014
if (certificateTrustConfiguration.Scope !=
CertificateTrustScope
.Append)
2028
CertificateTrustScope = certificateTrustConfiguration?.Scope ??
CertificateTrustScope
.None,
2515
public
CertificateTrustScope
CertificateTrustScope { get; init; }
ProjectResourceBuilderExtensions.cs (2)
425
builder.WithCertificateTrustScope(
CertificateTrustScope
.None);
430
if (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
2413
public static IResourceBuilder<TResource> WithCertificateTrustScope<TResource>(this IResourceBuilder<TResource> builder,
CertificateTrustScope
scope)
Aspire.Hosting.JavaScript (2)
JavaScriptHostingExtensions.cs (2)
283
if (ctx.Scope ==
CertificateTrustScope
.Append)
895
.WithCertificateTrustScope(
CertificateTrustScope
.None);
Aspire.Hosting.JavaScript.Tests (1)
ResourceCreationTests.cs (1)
211
Assert.Equal(
CertificateTrustScope
.None, certAnnotation.Scope);
Aspire.Hosting.Python (3)
PythonAppResourceBuilderExtensions.cs (3)
420
.WithCertificateTrustScope(
CertificateTrustScope
.System)
423
if (ctx.Scope ==
CertificateTrustScope
.Append)
1346
.WithCertificateTrustScope(
CertificateTrustScope
.None);
Aspire.Hosting.Python.Tests (1)
AddPythonAppTests.cs (1)
840
Assert.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)]
827
public async Task VerifyContainerIncludesExpectedDevCertificateConfiguration(bool? implicitTrust, bool? explicitTrust, bool expectDevCert, bool overridePaths,
CertificateTrustScope
trustScope)
875
if (trustScope ==
CertificateTrustScope
.Append)
879
else if (trustScope ==
CertificateTrustScope
.Override)
896
if (trustScope ==
CertificateTrustScope
.Append)
905
if (trustScope ==
CertificateTrustScope
.None)
920
if (trustScope ==
CertificateTrustScope
.Override)
ExecutionConfigurationGathererTests.cs (9)
228
Assert.Equal(
CertificateTrustScope
.Append, metadata.Scope);
242
.WithCertificateTrustScope(
CertificateTrustScope
.System)
257
Assert.Equal(
CertificateTrustScope
.System, metadata.Scope);
272
.WithCertificateTrustScope(
CertificateTrustScope
.Override)
287
Assert.Equal(
CertificateTrustScope
.Override, metadata.Scope);
300
.WithCertificateTrustScope(
CertificateTrustScope
.None)
315
Assert.Equal(
CertificateTrustScope
.None, metadata.Scope);
348
.WithCertificateTrustScope(
CertificateTrustScope
.Append)
555
private static Func<
CertificateTrustScope
, CertificateTrustExecutionConfigurationContext> CreateCertificateTrustConfigurationContextFactory()
TestingAppHost1.AppHost (1)
Program.cs (1)
23
.WithCertificateTrustScope(
CertificateTrustScope
.None);