Self-registered clients have no global cap, and an explicit shared-tenant authority passes the SSO check
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 38/100
- Tipo de issue
- Bug
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- csharp
- Domínio
- authentication, backend, databases
Direção de pesquisa
Start with src/FluentCMS.Core/Identity/Oidc/McpClients.cs, DynamicClientRegistration.cs, ClientRegistrationService.cs, and Identity/SsoOptions.cs; read the existing registration limits, cleanup, counting, and authority validation paths. Coordinate with the changes in #3272 and #3225, which touch the same code. Done means all acceptance checks pass, including tests for each behavior.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Problem
- Self-registered clients have no global cap. Pending clients are capped (
Identity/Oidc/McpClients.cs:284), but in Open mode with a default role the cap is skipped (:281-287), and approved or rejected clients are never pruned. The only bound is an in-memory, per-address, per-instance hourly limiter (Identity/Oidc/DynamicClientRegistration.cs:65,327-370).CountPendingAsync(McpClients.cs:357-369) and the startupRemoveUnlistedAsync(Identity/Oidc/ClientRegistrationService.cs:59-69) read every application, so growth also costs time. - The shared-tenant check is skipped when
Authorityis set. It sits insideif (string.IsNullOrWhiteSpace(Authority))(Identity/SsoOptions.cs:145-152), so an explicit…/common/v2.0authority passes validation.
Paths are under src/FluentCMS.Core/.
Proposal
- A configurable cap on all self-registered clients, a job that prunes ones never used, and a count done in SQL.
- Run the shared-tenant check on the resolved authority.
Done together with #3272 and #3225, which change the same client and SSO code.
Acceptance
- Registration is refused at the cap in every registration mode
- A self-registered client never used within the configured period is removed
- Counting clients does not load them
- An explicit shared-tenant authority is refused at startup unless the tenant list is set
- Tests for each
Found in the code review of 17 Nov 2026.
- Linguagem predominante
- C#
- Estrelas
- 569
- Forks
- 107
- Merge médio
- 2h 49min
- PRs com merge (30d)
- 397
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de fluentcms/FluentCMS
-
area:host area:operations type:bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
area:build security type:chore
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
area:sdk security type:bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
area:content security type:bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 1 dia
-
area:build type:bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
Todas as issues de fluentcms/FluentCMS
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
Mantenedores costumam responder em até 1 dia
-
area-ai untriaged
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
dotnet/extensions#7956 ·
Mantenedores costumam responder em até 1 dia
-
bug needs-triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 67/100
microsoft/microsoft-ui-reactor#1567 ·
Mantenedores costumam responder em até 1 dia
-
priority:p2
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
QuantConnect/Lean#10191 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
openclaw/openclaw-windows-node#2287 · 2 comentários · 1 reação ·
Mantenedores costumam responder em até 1 dia