Skip to content

Conversation

@giovanninocco
Copy link
Member

No description provided.

giovanninocco and others added 30 commits October 13, 2023 19:33
Bumps [Serilog.Sinks.ElasticSearch](https://github.com/serilog-contrib/serilog-sinks-elasticsearch) from 8.4.1 to 9.0.3.
- [Release notes](https://github.com/serilog-contrib/serilog-sinks-elasticsearch/releases)
- [Changelog](https://github.com/serilog-contrib/serilog-sinks-elasticsearch/blob/dev/CHANGES.md)
- [Commits](https://github.com/serilog-contrib/serilog-sinks-elasticsearch/commits/v9.0.3)

---
updated-dependencies:
- dependency-name: Serilog.Sinks.ElasticSearch
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
…sticSearch-9.0.3

Bump Serilog.Sinks.ElasticSearch from 8.4.1 to 9.0.3
Bumps [Serilog.Sinks.Seq](https://github.com/serilog/serilog-sinks-seq) from 5.1.0 to 5.2.3.
- [Release notes](https://github.com/serilog/serilog-sinks-seq/releases)
- [Commits](datalust/serilog-sinks-seq@v5.1.0...v5.2.3)

---
updated-dependencies:
- dependency-name: Serilog.Sinks.Seq
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…-5.2.3

Bump Serilog.Sinks.Seq from 5.1.0 to 5.2.3
giovanninocco and others added 28 commits October 19, 2024 16:07
Added `helloworld.bicep` to define Azure resources including a storage account, an App Service Plan, and a web app.

Updated project files (`Genocs.Auth.csproj`, `Genocs.Common.csproj`, `Genocs.Core.csproj`, `Genocs.Discovery.Consul.csproj`, `Genocs.HTTP.csproj`) to modify `<PackageTags>`, adding tags like `genocs`, `authentication`, `service-discovery`, and `http-client`.

Removed unused `using` directives in `IQueryDispatcher.cs`.

Modified `DispatcherEndpointsBuilder.cs` to allow `afterDispatch` function to accept nullable `TResult`.

Updated `Extensions.cs` to make the `middleware` parameter nullable in `UseDispatcherEndpoints`.

Changed `IDispatcher.cs` and `InMemoryDispatcher.cs` to make the return type of `QueryAsync` nullable.

Refactored `IDispatcherEndpointsBuilder.cs` to improve formatting and make `afterDispatch` function accept nullable `TResult`.

Updated `PublicContractsMiddleware.cs` to add null checks and improve command and event registration handling.

Refactored `CertificateMiddleware.cs` to initialize dictionaries inline and added null checks for `options.Certificate`.

Updated `SecurityOptions.cs` to improve formatting of the `GetHeaderName` method.

Enhanced `Extensions.cs` to add null checks and default value handling for `sectionName` in `AddCertificateAuthentication`.
Updated `appsettings.json` to include a comprehensive "swagger" section with configuration options such as `enabled`, `title`, `description`, `version`, `termsOfService`, `contactName`, `contactEmail`, `contactUrl`, `licenseName`, `licenseUrl`, `includeSecurity`, and a list of `servers`.

Extended `SwaggerOptions` class to include new properties: `Description`, `ContactName`, `ContactEmail`, `ContactUrl`, `LicenseName`, `LicenseUrl`, `TermsOfService`, and a list of `OpenApiServer` objects. Added an inner class `OpenApiServer` to represent server details.

Modified `AddSwaggerDocs` method in `Extensions.cs` to handle the new `SwaggerOptions` properties, including logic for security definitions, custom operation IDs, and server details. Added XML comments to the Swagger documentation.

Provided specific values for the "swagger" section in `appsettings.json` for different environments (local development, containerized, and production).
…Metrics, Genocs.WebApi, Genocs.Security, Genocs.Logging, Genocs.Secrets.Vault, Genocs.MessageBrokers, Genocs.WebApi.Swagger, Genocs.ServiceBusAzure, Genocs.Persistence.Redis, Genocs.Core.Demo.Contracts, Genocs.Persistence.MongoDb, Genocs.WebApi.Security, Genocs.Secrets.AzureKeyVault, Genocs.MessageBrokers.Outbox, Genocs.MessageBrokers.RabbitMQ, Genocs.Auth, Genocs.WebApi.CQRS, Genocs.Discovery.Consul, Genocs.Persistence.MongoDb.UnitTests, and Genocs.Core.Demo.Domain projects
Updated multiple packages to their latest versions:
- MassTransit.RabbitMQ to 8.3.0
- Swashbuckle.AspNetCore to 6.9.0
- System.Text.Json to 8.0.5
- SmartFormat.NET to 3.5.1
- Azure.Identity to 1.13.0
- System.Linq.Dynamic.Core to 1.4.6

Removed MongoDB.Driver.Core.Extensions.OpenTelemetry package.

Added MongoDB.Driver.Core.Extensions.DiagnosticSources source and GuidSerializer with GuidRepresentation.CSharpLegacy.

Refactored IMongoRepository.cs, EndpointsBuilder.cs, and Extensions.cs for nullable context, method signatures, and formatting.

Fixed a typo in JsonParser.cs exception message.

Adjusted IRequestHandler and RequestDispatcher interfaces and classes for readability and formatting.

Added WebApiOptions configuration in Extensions.cs.

Improved formatting and readability across multiple files.
Refactored AzureInitializer for readability and removed unused code.
Updated MongoDB.Driver to version 2.30.0 in Genocs.Persistence.MongoDb.csproj.
Reformatted commented-out code in MongoDatabaseProvider.
Updated Roslynator.Analyzers to 4.12.9 and Scrutor to 5.0.1.
Enhanced JwtOptions with XML docs and new default values.
Refactored RabbitMQ config in ServiceCollectionExtensions.
Added JWT settings to appsettings.json and disabled azureKeyVault.
Updated various Microsoft.Extensions packages in Genocs.Core.csproj.
Tested to use auth with simmetric key.
Updated project references in various .csproj files to use newer versions of dependencies. Removed `netstandard2.1` from target frameworks in `Genocs.Common.csproj` and `Genocs.Core.csproj`. Changed primary key type from `int` to `Guid` for several domain entities and interfaces. Improved documentation comments and exception handling. Made `Id` property non-nullable in `Entity` class. Added `net8.0` target framework to `Genocs.SignalR.WebApi.csproj` and reorganized `Content` item group for certificates.
Updated project versions to 6.2.0 and replaced Jaeger tracing with OpenTelemetry across various projects. Enhanced Swagger configuration, improved null safety with nullable reference types, and refactored code for better readability and maintainability. Removed unnecessary metadata from project files and updated package references to specific versions.
Updated Directory.Build.props to use Roslynator.Analyzers 4.12.9.
Removed net8.0 and net7.0 FrameworkReferences from Genocs.Core.csproj.
Now, Microsoft.AspNetCore.App is referenced only for net6.0.
Updated `Directory.Build.props` to include additional files for packaging. Removed these files from multiple `.csproj` files. Updated `Genocs.Core.Demo.WebApi.csproj` and `Genocs.Core.Demo.Worker.csproj` to reference `MassTransit.RabbitMQ` v8.3.0. Updated `Genocs.Secrets.AzureKeyVault.csproj` to reference `Azure.Identity` v1.13.1. Added new package references for Release configuration in `Genocs.APIGateway.csproj` and `Genocs.Orders.WebApi.csproj`.
Updated various Genocs package references from version 6.2.0 to 6.3.0 across multiple project files. This includes updates to `Genocs.Core`, `Genocs.QueryBuilder`, `Genocs.Persistence.MongoDb`, `Genocs.MessageBrokers.RabbitMQ`, `Genocs.Tracing`, `Genocs.WebApi`, and other related packages. Removed redundant `<Version>6.2.0</Version>` tags from several project files to streamline version management.
- Entity class now inherits from Entity<Guid> instead of IEntity
- Updated Id property in Entity<TPrimaryKey> to use nullable reference type
- Refactored Equals method in Entity<TPrimaryKey> for null checks and type comparison
- Id property in Equals method uses null-forgiving operator
- IAggregateRoot now inherits from IAggregateRoot<Guid> instead of IEntity
Replaced IIdentifiable with IEntity across the codebase. Updated IEntity to include IsTransient method. Modified type parameters and interface inheritance for consistency. Updated MongoDB repository implementations to align with IEntity. Added comments and documentation for clarity. Changed using directives to reflect new namespace for IEntity.
Renamed properties to standardize naming conventions:
- `CreationTime` to `CreatedAt`
- `LastModificationTime` to `LastUpdate`
- `LastModifierUserId` to `UpdatedBy`
- `DeleterUserId` to `DeletedBy`
- `DeletionTime` to `DeletedAt`
- `LastModifierUser` to `UpdatedByUser`
- `DeleterUser` to `DeletedByUser`

Changed `CreatorUserId` to non-nullable.

Updated `EntityAuditingHelper` and `EntityExtensions` for new names.

Refactored `RepositoryBase` to use null-coalescing operator.

Reformatted `AutoRepositoryTypesAttribute` for readability.

Updated comments and documentation for clarity.
- Updated `BaseAggregate` to initialize `Id` and `CreatedAt`.
- Refactored `Order` and `User` classes to inherit from `BaseAggregate`.
- Made `CreatedAt` property read-only in `IHasCreationTime`.
- Removed `class` constraint in `RepositoryBase`.
- Added comments and reformatted methods in `SystemTextJsonHttpClientSerializer`, `IMessageToLogTemplateMapper`, and `SeqOptions`.
- Updated `HandlerLogTemplate` to use nullable `string?`.
- Replaced `IMongoRepository` with `IMongoDbBaseRepository` in various classes.
- Removed `IMongoDbEntity` interface and several `MongoDbRepository` classes.
- Introduced `IMongoDbBaseRepository`, `MongoDbBaseRepository`, `IMongoDbEntity`, and `MongoDbRepository` classes.
- Updated multiple files to reflect repository structure changes.
- Updated `using` directives in `MongoDbController.cs`, `SubmitOrderConsumer.cs`, and `Program.cs` to use `Genocs.Persistence.MongoDb.Domain.Repositories`.
- Modified `MongoDbRepository<TEntity>` to inherit from `MongoDbBaseRepositoryOfType<TEntity, ObjectId>`.
- Removed `MongoDbRepositoryBaseOfEntityAndKey.cs` and moved its content to `MongoDbBaseRepositoryOfType.cs`.
- Moved `IMongoDbRepository<TEntity>` to `Genocs.Persistence.MongoDb.Domain.Repositories` and updated its content.
- Improved comment format in `IMongoDbSeeder.cs`.
- Created `MongoDbBaseRepositoryOfType.cs` with the implementation of the repository base class for MongoDB.
Refactored the `Delete` method in `MongoDbBaseRepository.cs` to use `ArgumentNullException.ThrowIfNull(predicate)` for null checks, improving code readability and conciseness. Updated the `Get` method in `MongoDbBaseRepositoryOfType.cs` to use a conditional expression for throwing `EntityNotFoundException` when the entity is null, simplifying the logic.
Updated the following package versions:
- `MassTransit.RabbitMQ` from `8.3.0` to `8.3.1` in `Genocs.Core.Demo.WebApi.csproj` and `Genocs.Core.Demo.Worker.csproj`
- `Scrutor` from `5.0.1` to `5.0.2` in `Genocs.Core.csproj`
- `System.Linq.Dynamic.Core` from `1.4.6` to `1.4.8` in `Genocs.QueryBuilder.UnitTests.csproj`
- `Azure.Identity` from `1.13.0` to `1.13.1` in `Genocs.Secrets.AzureKeyVault.csproj`
Updated project version to 6.3.0 across multiple files and projects.
Enhanced `Directory.Build.props` with new properties and item groups.
Upgraded .NET SDK version in `global.json` to 8.0.10.
Improved `JwtOptions` class with default values and documentation.
Refactored `BaseAggregate`, `Order`, and `User` classes.
Changed primary key types to `Guid` and updated property names.
Removed `IsTransient` method from `IIdentifiable` interface.
Updated project references to version 6.3.0.
Enhanced `ServiceCollectionExtensions` for RabbitMQ configuration.
Added JWT configuration in `Program.cs` and `appsettings.json`.
Improved documentation and formatting in various files.
Removed support for `netstandard2.1` in `Genocs.Core.csproj`.
Updated multiple project files to reference `Genocs.Core` version 6.3.0.
Refactored repository interfaces and classes for consistency.
Removed unnecessary files from packaging process.
Removed references to `Genocs.Secrets.AzureKeyVault` and `Genocs.WebApi` from `Genocs.Core.Demo.WebApi.csproj`. Added `using System.Linq.Expressions` to `IMongoDbBaseRepository.cs` to support advanced querying.
@gitguardian
Copy link

gitguardian bot commented Nov 23, 2024

⚠️ GitGuardian has uncovered 6 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
13626644 Triggered Generic Password 863e6ba containers/infrastructure-mysql.yml View secret
13626644 Triggered Generic Password ee78547 containers/infrastructure-oracle.yml View secret
13626644 Triggered Generic Password 863e6ba containers/infrastructure-oracle.yml View secret
13626644 Triggered Generic Password ee78547 containers/infrastructure-mysql.yml View secret
13626644 Triggered Generic Password c1095a7 containers/infrastructure-oracle.yml View secret
13626644 Triggered Generic Password c1095a7 containers/infrastructure-mysql.yml View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@giovanninocco giovanninocco merged commit 9ed74d5 into master Nov 23, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants