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)
41
additionalData.Scope =
CertificateTrustScope
.Append;
54
if (additionalData.Scope ==
CertificateTrustScope
.None)
60
if (additionalData.Scope ==
CertificateTrustScope
.System)
88
if (additionalData.Scope !=
CertificateTrustScope
.Append)
113
if (additionalData.Scope ==
CertificateTrustScope
.System)
130
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)
1138
/// <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>
1139
/// <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)
1650
if (scope ==
CertificateTrustScope
.Append)
1678
&& certificateTrustConfiguration.Scope !=
CertificateTrustScope
.None
2021
if (scope ==
CertificateTrustScope
.Append)
2046
&& certificateTrustConfiguration.Scope !=
CertificateTrustScope
.None
2063
if (certificateTrustConfiguration.Scope !=
CertificateTrustScope
.Append)
2077
CertificateTrustScope = certificateTrustConfiguration?.Scope ??
CertificateTrustScope
.None,
2564
public
CertificateTrustScope
CertificateTrustScope { get; init; }
ProjectResourceBuilderExtensions.cs (2)
429
builder.WithCertificateTrustScope(
CertificateTrustScope
.None);
434
if (ctx.Scope !=
CertificateTrustScope
.None && OperatingSystem.IsWindows())
ResourceBuilderExtensions.cs (4)
2413
/// Sets the <see cref="
CertificateTrustScope
"/> for custom certificate authorities associated with the resource. The scope
2422
/// The default scope if not overridden is <see cref="
CertificateTrustScope
.Append"/> which means that custom certificate
2424
/// <see cref="
CertificateTrustScope
.Override"/> indicates the set of certificates in referenced
2441
public static IResourceBuilder<TResource> WithCertificateTrustScope<TResource>(this IResourceBuilder<TResource> builder,
CertificateTrustScope
scope)
Aspire.Hosting.JavaScript (2)
JavaScriptHostingExtensions.cs (2)
285
if (ctx.Scope ==
CertificateTrustScope
.Append)
986
.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)
417
.WithCertificateTrustScope(
CertificateTrustScope
.System)
420
if (ctx.Scope ==
CertificateTrustScope
.Append)
1340
.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)
814
[InlineData(false, false, false, false,
CertificateTrustScope
.Append)]
815
[InlineData(false, true, true, false,
CertificateTrustScope
.Append)]
816
[InlineData(true, false, false, false,
CertificateTrustScope
.Append)]
817
[InlineData(false, false, false, false,
CertificateTrustScope
.Override)]
818
[InlineData(false, true, true, false,
CertificateTrustScope
.Override)]
819
[InlineData(true, false, false, false,
CertificateTrustScope
.Override)]
820
[InlineData(false, false, false, true,
CertificateTrustScope
.Override)]
821
[InlineData(false, true, true, true,
CertificateTrustScope
.Override)]
822
[InlineData(true, false, false, true,
CertificateTrustScope
.Override)]
823
[InlineData(false, false, false, false,
CertificateTrustScope
.None)]
824
[InlineData(false, true, false, false,
CertificateTrustScope
.None)]
825
[InlineData(true, false, false, false,
CertificateTrustScope
.None)]
826
public async Task VerifyContainerIncludesExpectedDevCertificateConfiguration(bool? implicitTrust, bool? explicitTrust, bool expectDevCert, bool overridePaths,
CertificateTrustScope
trustScope)
874
if (trustScope ==
CertificateTrustScope
.Append)
878
else if (trustScope ==
CertificateTrustScope
.Override)
895
if (trustScope ==
CertificateTrustScope
.Append)
904
if (trustScope ==
CertificateTrustScope
.None)
919
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)
553
private static Func<
CertificateTrustScope
, CertificateTrustExecutionConfigurationContext> CreateCertificateTrustConfigurationContextFactory()
TestingAppHost1.AppHost (1)
Program.cs (1)
23
.WithCertificateTrustScope(
CertificateTrustScope
.None);