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)
1140
/// <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>
1141
/// <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)
1741
if (scope ==
CertificateTrustScope
.Append)
1769
&& certificateTrustConfiguration.Scope !=
CertificateTrustScope
.None
2112
if (scope ==
CertificateTrustScope
.Append)
2138
&& certificateTrustConfiguration.Scope !=
CertificateTrustScope
.None
2155
if (certificateTrustConfiguration.Scope !=
CertificateTrustScope
.Append)
2169
CertificateTrustScope = certificateTrustConfiguration?.Scope ??
CertificateTrustScope
.None,
2656
public
CertificateTrustScope
CertificateTrustScope { get; init; }
ProjectResourceBuilderExtensions.cs (2)
429
builder.WithCertificateTrustScope(
CertificateTrustScope
.None);
434
if (ctx.Scope !=
CertificateTrustScope
.None && OperatingSystem.IsWindows())
ResourceBuilderExtensions.cs (4)
2433
/// Sets the <see cref="
CertificateTrustScope
"/> for custom certificate authorities associated with the resource. The scope
2442
/// The default scope if not overridden is <see cref="
CertificateTrustScope
.Append"/> which means that custom certificate
2444
/// <see cref="
CertificateTrustScope
.Override"/> indicates the set of certificates in referenced
2461
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)
964
.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)
394
.WithCertificateTrustScope(
CertificateTrustScope
.System)
397
if (ctx.Scope ==
CertificateTrustScope
.Append)
1317
.WithCertificateTrustScope(
CertificateTrustScope
.None);
Aspire.Hosting.Python.Tests (1)
AddPythonAppTests.cs (1)
851
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)
229
Assert.Equal(
CertificateTrustScope
.Append, metadata.Scope);
243
.WithCertificateTrustScope(
CertificateTrustScope
.System)
258
Assert.Equal(
CertificateTrustScope
.System, metadata.Scope);
273
.WithCertificateTrustScope(
CertificateTrustScope
.Override)
288
Assert.Equal(
CertificateTrustScope
.Override, metadata.Scope);
301
.WithCertificateTrustScope(
CertificateTrustScope
.None)
316
Assert.Equal(
CertificateTrustScope
.None, metadata.Scope);
349
.WithCertificateTrustScope(
CertificateTrustScope
.Append)
554
private static Func<
CertificateTrustScope
, CertificateTrustExecutionConfigurationContext> CreateCertificateTrustConfigurationContextFactory()
TestingAppHost1.AppHost (1)
Program.cs (1)
23
.WithCertificateTrustScope(
CertificateTrustScope
.None);