Develop - #235
Merged
Merged
Conversation
* feat(parsing): add automatic layout detection contract * feat(parsing): harden automatic layout detection * fix(security): preserve scanner baseline positions
Bumps the github-actions group with 1 update: [dawidd6/action-send-mail](https://github.com/dawidd6/action-send-mail). Updates `dawidd6/action-send-mail` from 3.12.0 to 18 - [Release notes](https://github.com/dawidd6/action-send-mail/releases) - [Commits](dawidd6/action-send-mail@2cea961...94de994) --- updated-dependencies: - dependency-name: dawidd6/action-send-mail dependency-version: '18' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
--- updated-dependencies: - dependency-name: xunit.runner.visualstudio dependency-version: 4.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…rkspace com isolamento cross-workspace (#234) - Modelo de dominio: FiscalUser, ExternalIdentity, FiscalWorkspace, WorkspaceMembership - SqlIdentityWorkspaceStore: persistencia idempotente (UNIQUE constraint + retry em corrida) - IdentityWorkspaceService: trava em processo + politica fail-closed - TrustedIdentityMiddleware estendido (nao substituido) para os headers x-layoutparser-identity-{provider,subject,tenant}, mesma guarda de loopback - WorkspacesController: GET /api/workspaces/me e GET /api/workspaces/{workspaceId} (404 uniforme para nao-existe/nao-e-seu, 401 explicito no /me sem identidade) - Testes de isolamento cross-workspace, idempotencia sob concorrencia e subject-nunca-logado (issues #225/#228) dotnet build e dotnet test (437/437) verdes.
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files
|
|
|
||
| _logger.LogInformation( | ||
| "Seleção de layout da detecção automática. CorrelationId={CorrelationId} Status={DetectionStatus} SelectionSource={SelectionSource} LayoutGuid={LayoutGuid} Rank={Rank} AlgorithmVersion={AlgorithmVersion} CatalogVersion={CatalogVersion}", | ||
| correlationId, |
| } | ||
| catch (InvalidOperationException ex) | ||
| { | ||
| _logger.LogWarning(ex, "Detecção automática indisponível. CorrelationId={CorrelationId}", correlationId); |
| } | ||
| catch (Exception ex) | ||
| { | ||
| _logger.LogError(ex, "Falha inesperada na detecção automática. CorrelationId={CorrelationId}", correlationId); |
| // INSERT. Não é erro — relê o UserId que já existe (idempotência sob concorrência, | ||
| // critério de aceite #3 do contrato cross-repo). | ||
| await tx.RollbackAsync(cancellationToken); | ||
| _logger.LogInformation("Corrida de criação de identidade externa detectada (provider={Provider}); relendo UserId existente.", provider); |
| { | ||
| // Fail-closed: identidade externa não resolvida vira UserId null. O chamador (endpoint) | ||
| // nega acesso — nunca degrada para "segue sem filtro". Nunca logar subject. | ||
| _logger.LogWarning(ex, "Falha ao resolver identidade externa (provider={Provider}, tenant={Tenant}) — negando UserId (fail-closed).", provider, tenant); |
| { | ||
| // Fail-closed: identidade externa não resolvida vira UserId null. O chamador (endpoint) | ||
| // nega acesso — nunca degrada para "segue sem filtro". Nunca logar subject. | ||
| _logger.LogWarning(ex, "Falha ao resolver identidade externa (provider={Provider}, tenant={Tenant}) — negando UserId (fail-closed).", provider, tenant); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.