spiffe / tornjak

Tornjak is a UI and management layer used for brokering human access to one or more SPIRE deployments
Apache License 2.0
78 stars 41 forks source link

[backend] Tornjak Clusters API cleanup #521

Open maia-iyer opened 1 month ago

maia-iyer commented 1 month ago

The code currently defines cluster using this type:

{
  "cluster": {
    "name": "clusterName",
    "platformType": "Docker",
    "agentsList": [
      "agent1"
    ],
    "domainName": "example.org",
    "editedName": "",
    "creationTime": "Feb 08 2023 21:02:10",
    "managedBy": ""
  }
}

The 'editedName' is improper and throws weird, unexpected errors at times. Instead, it would be better to have some UID for a cluster, which can be passed in.

This also eventually affects the frontend call to this API.

jxia20 commented 1 month ago

RCOS - Jimi Xia

DashLHall commented 1 month ago

Dashiell, RCOS group

ArnavPawar commented 4 weeks ago

RCOS - Arnav Pawar