Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

[Bug Bash] doc: authorization.md says golden tags skip can_use_tag, but onSourceTag checks every source_tag.

Abierto Apto para principiantes
#3,235 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
1/5
Tiempo estimado
Menos de una hora
Aptitud para principiantes
83/100
Tipo de issue
Documentación
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
go

Línea de trabajo

Empieza por la fila CreateActor en docs/authorization.md y luego revisa onSourceTag en cmd/ateapi/internal/authz/registry.go y el valor alternativo en cmd/ateapi/internal/controlapi/actor.go. Actualiza el texto para explicar cuándo se comprueba can_use_tag y qué ocurre cuando se omite sourceTag. El trabajo estará terminado cuando la documentación coincida con esas rutas de código.

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

Descripción

area/security bug-bash kind/docs

docs/authorization.md (the CreateActor row under "Checks per RPC") says:

Golden tags skip this check: the handler only accepts one built from the actor's own template.

The skip doesn't depend on whether the tag is golden. It depends on whether sourceTag is set:

  • sourceTag omitted: CreateActor in cmd/ateapi/internal/controlapi/actor.go falls back to template.status.goldenSnapshotStatus.goldenTag. The interceptor never sees a tag, so it checks only can_create_actor and can_use_template.
  • sourceTag set, golden or not: onSourceTag in cmd/ateapi/internal/authz/registry.go always adds can_use_tag, which needs editor on the tag's atespace.

A caller who can use a template from another atespace (viewer there) gets its golden snapshot when they omit sourceTag, but is denied if they name the same golden tag explicitly. The doc suggests both are allowed.

The rule that a tag must come from the actor's own template is in resolveTagSource, and it applies to every tag, not only golden ones.

Suggested wording for the doc: "can_use_tag applies only when sourceTag is set. With no sourceTag, CreateActor uses the template's golden tag and checks can_use_template only."

I checked this in the code on main (ffed8551). I couldn't confirm it on the cluster, because creating a tag failed there with a snapshot upload error.

Found during the authorization bug bash, with help from an AI agent.

Lenguaje dominante
Go
Estrellas
5.9k
Forks
637
Merge medio
2 d 10 h
PR fusionados (30 d)
562

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de agent-substrate/substrate

Todos los issues de agent-substrate/substrate

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.