Allow logging of failed login attempts
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 65/100
- Tipo de issue
- Funcionalidade
- Clareza
- Claramente especificada
- Status de atividade
- Estagnada
- Stack de tecnologia
- rust
- Domínio
- authentication
Direção de pesquisa
Localize o módulo de autenticação na base de código Rust do SQLPage onde as tentativas de login são processadas. Altere a resposta HTTP para tentativas de login malsucedidas de 302 para 401, mantendo 302 para logins bem-sucedidos. Verifique o comportamento testando cenários de login bem-sucedidos e malsucedidos.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
What are you building with SQLPage ?
I’ve currently built a shared calendar with SQLPage, but I really like the project and will use it some more in the future for other simple apps
What is your problem ? A description of the problem, not the solution you are proposing.
When using the auth module, all login attempts show up the same in the reverse proxy logs (302 HTTP code) whether they’re successful or not. Because of this, it’s not possible to monitor if there is suspicious activity on the login page, with a bad actor trying to bruteforce passwords for example
What are you currently doing ? Since your solution is not implemented in SQLPage currently, what are you doing instead ?
Instead, I’m monitoring if an IP address is hitting the page that handles an auth multiple times in an hour. Any login attempt hits this page once, but when a legitimate user sucessfully logs in, they won’t fave to hit it again because they stay logged in thanks to their session cookie. Multiple hits point towards failed login attempts
Describe the solution you'd like
I’d like for an option in the auth module to return a different HTTP code for a failed login attempt (typically 401) and a successful one (the current 302). This way, failed logins can be logged by the reverse proxy
Describe alternatives you've considered
I’ve tried manually setting the status code to 401 with the ad hoc module, but it didn’t work
- Linguagem predominante
- Rust
- Estrelas
- 2.6k
- Forks
- 175
- Merge médio
- 14h 16min
- PRs com merge (30d)
- 43
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Sem 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 sqlpage/SQLPage
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
Mantenedores costumam responder em até 1 dia
-
There is no convenient way to reproduce issuesTalvez já em andamento @81reap assumiu há 26 dias. Abertaenhancement
sqlpage/SQLPage#1566 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Confusing sort interfaceTalvez já em andamento @lovasoa assumiu há 74 dias. Abertabug
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 20/100
sqlpage/SQLPage#1442 · 3 comentários ·
Mantenedores costumam responder em até 1 dia
-
Mutation Testing Results :: Dead Code + Missing TestsTalvez livre de novo @81reap assumiu há 61 dias e não há nenhum pull request aberto. Aberta
sqlpage/SQLPage#1396 · 5 comentários · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
chart: 3D chartsAbertaenhancement
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
Mantenedores costumam responder em até 1 dia
Todas as issues de sqlpage/SQLPage
Issues semelhantes
-
CI/CD ignore-for-release
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
eclipse-ankaios/ankaios#844 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 1 dia
-
std: `SliceIndex<str>` missing for `std::ops` ranges, so generic `R: SliceIndex<str>` bounds failAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
symposium-dev/symposium#530 ·
Mantenedores costumam responder em até 5 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia