0xfurai / 0xfurai/peekaping

[Feature Request]: Have all settings behind /settings URL slug

Abierto
#217 0 comentarios 1 reacción 0 asignados Ver en GitHub
Lenguaje dominante
Go
Estrellas
1.2k
Forks
69
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

**Is your feature request related to a problem? Please describe.**
Currently all the admin URLs are `/monitors`, `/proxies`, `/tags` etc. - the (possibly) public URLs are `/status/`. Given firewall rules, it is hard to block all URL slugs, but `/status/*` especially if you are using CNAMEs for the status pages, e.g. `status.example.org` actually represents `/status/`.

**Describe the solution you'd like**
If all setting pages were behind an `/settings` URL slug e.g. `/settings/tags`, `/settings/monitors` etc., one could easily have custom authentication / IP access rules for `/settings/*`. Whether it is `/settings`, `/admin`, `/config` as the base-URL for settings I really don't care.

**Describe alternatives you've considered**
Create manual access rules per URL. The problem is that new setting URLs may be created in the future.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Look at the routing configuration in the codebase to understand how URLs like /monitors and /proxies are currently handled. Identify where route definitions are set up, likely in a main.go or routes file. The change involves adding a /settings prefix to admin routes and ensuring all existing functionality remains accessible. Test by running the application and verifying that /settings/monitors, /settings/proxies, etc., work correctly while public /status/* routes remain unchanged.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
go
Área
api, backend
Tipo de issue
Nueva funcionalidad
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bien especificado
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.