mirror of
https://github.com/quay/quay.git
synced 2025-11-17 23:02:34 +03:00
ui: add entry for robot federation config (PROJQUAY-8050) (#3316)
* ui: add entry for robot federation config (PROJQUAY-8050) adding entry for showing description in the UI for robot federation config changes
This commit is contained in:
@@ -415,7 +415,6 @@ class RegenerateOrgRobot(ApiResource):
|
||||
raise Unauthorized()
|
||||
|
||||
|
||||
# TODO: Add log action event for federation config changes
|
||||
@resource("/v1/organization/<orgname>/robots/<robot_shortname>/federation")
|
||||
@path_param("orgname", "The name of the organization")
|
||||
@path_param(
|
||||
@@ -482,6 +481,8 @@ class OrgRobotFederation(ApiResource):
|
||||
subject = item.get("subject")
|
||||
if not issuer or not subject:
|
||||
raise request_error(message="Missing one or more required fields (issuer, subject)")
|
||||
if not (issuer.startswith("http://") or issuer.startswith("https://")):
|
||||
raise request_error(message="Issuer must be a URL (http:// or https://)")
|
||||
entry = {"issuer": issuer, "subject": subject}
|
||||
|
||||
if f"{issuer}:{subject}" in seen:
|
||||
|
||||
Reference in New Issue
Block a user