File tree Expand file tree Collapse file tree 9 files changed +32
-14
lines changed
charts/opserver/templates Expand file tree Collapse file tree 9 files changed +32
-14
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ WORKDIR /app/src/Opserver.Web
22
22
RUN dotnet publish -c Release -o publish
23
23
24
24
# Build runtime image
25
- FROM cr.stackoverflow.software/so-aspnet:6.0-jammy-chiseled AS base
25
+ FROM cr.stackoverflow.software/so-aspnet:6.0-jammy-chiseled-extra AS base
26
26
27
27
USER $APP_UID
28
28
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ spec:
155
155
156
156
{{- if hasKey .Values.opserverSettings "sql" }}
157
157
- name : Modules__Sql__defaultConnectionString
158
- value : " Server=$(SQL_EXCEPTIONAL_SERVERNAME);Database=master;User ID=$(SQL_USERNAME);Password=$(SQL_PASSWORD);"
158
+ value : " Server=$(SQL_EXCEPTIONAL_SERVERNAME);Database=master;User ID=$(SQL_USERNAME);Password=$(SQL_PASSWORD);TrustServerCertificate=True "
159
159
{{- range $i, $instance := .Values.opserverSettings.sql }}
160
160
- name : Modules__Sql__instances__{{ $i }}__name
161
161
value : " {{ $instance.name }}"
@@ -165,7 +165,7 @@ spec:
165
165
{{- if hasKey .Values.opserverSettings "exceptions" }}
166
166
{{- range $i, $instance := .Values.opserverSettings.exceptions }}
167
167
- name : Modules__Exceptions__stores__{{ $i }}__connectionString
168
- value : " Server={{ $instance.serverName}};Database={{ $instance.database}};User ID=$(SQL_USERNAME);Password=$(SQL_PASSWORD);"
168
+ value : " Server={{ $instance.serverName}};Database={{ $instance.database}};User ID=$(SQL_USERNAME);Password=$(SQL_PASSWORD);TrustServerCertificate=True "
169
169
{{- end }}
170
170
{{- end }}
171
171
Original file line number Diff line number Diff line change 1
1
using System . Collections . Concurrent ;
2
2
using System . Collections . Generic ;
3
- using System . Data . SqlClient ;
3
+ using Microsoft . Data . SqlClient ;
4
4
5
5
namespace Opserver . Data . SQL
6
6
{
Original file line number Diff line number Diff line change 2
2
using System . Collections . Concurrent ;
3
3
using System . Collections . Generic ;
4
4
using System . Data . Common ;
5
- using System . Data . SqlClient ;
5
+ using Microsoft . Data . SqlClient ;
6
6
using System . Runtime . CompilerServices ;
7
7
using System . Threading . Tasks ;
8
8
using Opserver . Helpers ;
Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using System . Data ;
3
3
using System . Data . Common ;
4
- using System . Data . SqlClient ;
4
+ using Microsoft . Data . SqlClient ;
5
5
using System . Threading ;
6
6
using System . Threading . Tasks ;
7
7
using StackExchange . Profiling ;
Original file line number Diff line number Diff line change 10
10
<PackageReference Include =" Dapper" Version =" 2.0.123" />
11
11
<PackageReference Include =" Enums.NET" Version =" 4.0.0" />
12
12
<PackageReference Include =" Jil" Version =" 2.17.0" />
13
+ <PackageReference Include =" Microsoft.Data.SqlClient" Version =" 5.2.2" />
13
14
<PackageReference Include =" Microsoft.Extensions.Caching.Abstractions" Version =" 6.0.0" />
14
15
<PackageReference Include =" Microsoft.Extensions.Logging.Abstractions" Version =" 6.0.0" />
15
16
<PackageReference Include =" Microsoft.Extensions.Options.ConfigurationExtensions" Version =" 6.0.0" />
20
21
<PackageReference Include =" StackExchange.Exceptional.Shared" Version =" 2.2.32" />
21
22
<PackageReference Include =" StackExchange.Redis" Version =" 2.6.122" />
22
23
<PackageReference Include =" StackExchange.Utils.Http" Version =" 0.3.48" />
23
- <PackageReference Include =" System.Data.SqlClient" Version =" 4.8.5" />
24
24
<PackageReference Include =" System.DirectoryServices" Version =" 6.0.0" />
25
25
<PackageReference Include =" System.Management" Version =" 6.0.0" />
26
26
<PackageReference Include =" System.Runtime.Caching" Version =" 6.0.0" />
Original file line number Diff line number Diff line change 14
14
using Opserver . Data . Elastic ;
15
15
using Opserver . Data . HAProxy ;
16
16
using System . Collections . Generic ;
17
+ using System . Reflection ;
17
18
18
19
namespace Opserver . Controllers
19
20
{
@@ -152,5 +153,18 @@ public ActionResult ErrorTestPage()
152
153
throw new NotImplementedException ( "I AM IMPLEMENTED, I WAS BORN TO THROW ERRORS!" ) ;
153
154
#pragma warning restore RCS1079 // Throwing of new NotImplementedException.
154
155
}
156
+
157
+ [ Route ( "assemblies" ) ]
158
+ public ActionResult Assemblies ( )
159
+ {
160
+ Assembly [ ] assemblies = AppDomain . CurrentDomain . GetAssemblies ( ) ;
161
+ var result = new System . Text . StringBuilder ( ) ;
162
+ foreach ( Assembly assembly in assemblies )
163
+ {
164
+ result . AppendLine ( $ "{ assembly . FullName } - v{ assembly . GetName ( ) . Version } ") ;
165
+ }
166
+
167
+ return Content ( result . ToString ( ) ) ;
168
+ }
155
169
}
156
170
}
Original file line number Diff line number Diff line change 6
6
</PropertyGroup >
7
7
<ItemGroup >
8
8
<PackageReference Include =" Microsoft.Extensions.Logging.Console" Version =" 8.0.1" />
9
+ <PackageReference Include =" System.Data.SqlClient" Version =" 4.8.6" />
9
10
<ProjectReference Include =" ..\Opserver.Core\Opserver.Core.csproj" />
10
11
<PackageReference Include =" BuildBundlerMinifier" Version =" 3.2.449" PrivateAssets =" all" />
11
12
<PackageReference Include =" BuildWebCompiler" Condition =" '$(OS)' == 'Windows_NT'" Version =" 1.12.405" PrivateAssets =" all" />
12
13
<PackageReference Include =" MiniProfiler.AspNetCore.Mvc" Version =" 4.2.22" />
13
- <PackageReference Include =" Microsoft.IdentityModel.Protocols.OpenIdConnect" Version =" 6.15 .0" />
14
+ <PackageReference Include =" Microsoft.IdentityModel.Protocols.OpenIdConnect" Version =" 6.35 .0" />
14
15
<PackageReference Include =" Serilog" Version =" 4.1.0" />
15
16
<PackageReference Include =" SerilogAnalyzer" Version =" 0.15.0" />
16
17
<PackageReference Include =" Serilog.AspNetCore" Version =" 8.0.3" />
Original file line number Diff line number Diff line change 1
1
{
2
2
"ForwardedHeaders" : {
3
- "KnownNetworks" : [" 10.0.0.0/16" ],
3
+ "KnownNetworks" : [ " 10.0.0.0/16" ],
4
4
"KnownProxies" : [],
5
5
"ForwardedHeaders" : " All"
6
6
},
7
+ "Security" : {
8
+ "Provider" : " EveryonesAnAdmin"
9
+ },
7
10
"Modules" : {
8
11
/* Configuration for the SQL Server dashboard */
9
12
"Sql" : {
10
- // "defaultConnectionString": "Data Source=$ServerName$;Initial Catalog=master;Integrated Security=SSPI;",
11
- // "refreshIntervalSeconds": 30,
12
- // "instances": [
13
- // { "name": "localhost" }
14
- // ]
13
+ "defaultConnectionString" : " Data Source=$ServerName$;Initial Catalog=master;Integrated Security=SSPI;TrustServerCertificate=True " ,
14
+ "refreshIntervalSeconds" : 30 ,
15
+ "instances" : [
16
+ { "name" : " localhost" }
17
+ ]
15
18
},
16
19
/* Configuration for the Redis dashboard */
17
20
"Redis" : {
You can’t perform that action at this time.
0 commit comments