Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Route destination operations should require write permissions in the app's space

Offen
#5,285 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 3 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
50/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Ruhig
Tech-Stack
ruby

Rechercherichtung

Beginne mit den in #5284 referenzierten Operationen für Routenziele: Ziel hinzufügen, Ziele ersetzen, Ziel aktualisieren und Ziel löschen. Verfolge ihre Autorisierungsprüfungen und die bestehende Berechtigungsabdeckung und überprüfe anschließend, dass alle vier in der Space der App space_developer oder space_supporter erfordern, wobei nur admin ausgenommen ist und globale Rollen mit Nur-Lese-Zugriff abgelehnt werden.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Issue

Currently, the permission model for route destination operations is inconsistent with respect to the app's space. The table below shows which roles in the app's space/org are sufficient (assuming the user already has space_developer in the route's space and the route has been explicitly shared with the app's space):

Role in app's space/org Add destination Replace destinations Update destination Delete destination
space_developer ✅ ✅ ✅ ✅
space_supporter ✅ ✅ ✅ ✅
space_manager ✅ ✅ ✅ ✅
space_auditor ✅ ✅ ✅ ✅
org_manager ✅ ✅ ✅ ✅
org_auditor ❌ ❌ ✅ ✅
org_billing_manager ❌ ❌ ✅ ✅
no role ❌ ❌ ✅ ✅
admin ✅ ✅ ✅ ✅
admin_read_only ✅ ✅ ✅ ✅
global_auditor ✅ ✅ ✅ ✅

Three problems stand out:

  1. Add/Replace: read-only roles (space_manager, space_auditor, org_manager) are sufficient to wire up routing to an app they cannot write to.
  2. Update/Delete: no role in the app's space is required at all — any user with write access to the route's space can modify or remove destinations regardless of which space the app lives in.
  3. admin_read_only and global_auditor: these read-only global roles can perform all four mutating operations, which contradicts their intended purpose.
Context

No response

Steps to Reproduce

see #5284

Expected Result

No response

Current Result

No response

Possible Fix

Proposed change: All four operations should require space_developer or space_supporter in the app's space. Only admin should be exempt as the global write role.
admin_read_only and global_auditor should be denied just like any other role without write access to the app's space.

Vorherrschende Sprache
Ruby
Sterne
207
Forks
373
Ø Merge
3 T. 7 Min.
Gemergte PRs (30 T.)
72

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus cloudfoundry/cloud_controller_ng

Alle Issues in cloudfoundry/cloud_controller_ng

Ähnliche Issues

Weitere Issues zu Ruby

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.