Reduced privileges for human users until elevation requested
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 38/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- go, kubernetes, postgresql
- Área
- databases, infrastructure, security
Línea de trabajo
Comienza en pkg/cluster/cluster.go, en initPreparedDatabaseRoles, y sigue cómo defaultRoles, defaultUsers, team_admin_role y enable_admin_role_for_users afectan a los roles de base de datos preparados. Compara la implementación con el comportamiento documentado de elevación de privilegios y determina si el rol de administrador codificado de forma fija es intencional; se considera terminado cuando el comportamiento previsto de leer primero y de autoelevación se haya aclarado o corregido.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Please, answer some short questions which should help us to understand your problem / question better?
- Which image of the operator are you using? ghcr.io/zalando/postgres-operator:v1.14.0
- Where do you run it - cloud or metal? Kubernetes or OpenShift? GCP
- Are you running Postgres Operator in production? On an experimental basis
- Type of issue? Bug report / discussion
We are setting up access for human users to our databases, using the Teams API to create users.
We were looking for a way to make it so that human users have only read access when first connecting to the database, but can use GRANT ROLE or SET ROLE to give themselves more access if needed.
We use the defaultRoles/defaultUsers on preparedDatabases, so by default the human users are given admin, which has access to owner-roles, given them full access to everything.
Looking at the documentation, we thought maybe setting team_admin_role to the reader role would give us what we needed, but then they can't elevate themselves. Our understanding of the enable_admin_role_for_users was that this should be possible, but it doesn't seem to work that way.
Is what we want to do possible somehow?
Is our understanding of enable_admin_role_for_users wrong, or is there a bug when that option is used for the defaultRoles created for preparedDatabases?
We are wondering if the hardcoding of admin in initPreparedDatabaseRoles is a bug, or intentional?
- Lenguaje dominante
- Go
- Estrellas
- 5.3k
- Forks
- 1.1k
- Merge medio
- 3 d 17 h
- PR fusionados (30 d)
- 11
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de zalando/postgres-operator
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
zalando/postgres-operator#3257 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
zalando/postgres-operator#3254 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
zalando/postgres-operator#3253 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
zalando/postgres-operator#3252 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
zalando/postgres-operator#3182 · 1 comentario ·
Los mantenedores suelen responder en 2 días
Todos los issues de zalando/postgres-operator
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
[inputs.internal] README lists go_version tag on internal_gather instead of internal_agentPosiblemente ocupada @cvas22 la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
influxdata/telegraf#20264 ·
Los mantenedores suelen responder en 1 día
-
[Bug] Standalone migration breaks existing Ingress routes using the envoy-http Service port nameAbiertoaccepted bug wg/enterprise-environment
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
vllm-project/semantic-router#7483 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
stacklok/toolhive-catalog#2076 ·
Los mantenedores suelen responder en 1 día
-
vulncheck or vulndb
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
golang/go#83428 · 1 comentario ·
Los mantenedores suelen responder en 1 día