Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement dashboard backend #73

Closed
3 tasks done
maia-iyer opened this issue Jul 12, 2021 · 0 comments
Closed
3 tasks done

Implement dashboard backend #73

maia-iyer opened this issue Jul 12, 2021 · 0 comments
Assignees

Comments

@maia-iyer
Copy link
Collaborator

maia-iyer commented Jul 12, 2021

Backend implementation of https://github.com/lumjjb/tornjak/issues/40

Four sections on the dashboard: a banner, a cluster metadata table, agent metadata table, and workload entry metadata table.

Necessary information for each section:

  • Banner

    • number agents per cluster ["/api/tornjak/clusters/list"]
    • number workload entries per agent ["/api/agent/list" + "/api/entry/list"]
    • number workload entries per cluster ["/api/tornjak/clusters/list" + "/api/entry/list"]
  • Cluster Metadata Table

    • Name ["/api/tornjak/clusters/list"]
    • Created at / Age ["/api/tornjak/clusters/list"]
    • Number of nodes (based on # agents) ["/api/tornjak/clusters/list"]
    • Number of WL entries ["/api/tornjak/clusters/list" + "/api/entry/list"]
  • Agent Metadata Table

    • Name / SPIFFEID ["/api/agent/list"]
    • Agent Status ["/api/agent/list"]
    • Platform type ["/api/tornjak/agents/list"]
    • Cluster name (if assigned) ["/api/tornjak/agents/list"]
    • Number of WL entries ["/api/entry/list"]
  • Workload Entry Metadata Table

    • SPIFFE ID ["/api/entry/list"]
    • Parent ID (agent SPIFFEID) ["/api/entry/list"]
    • Admin Flag ["/api/entry/list"]
    • Entry expiry time (based on expires-at) ["/api/entry/list"]
    • Platform type (Kubernetes, Docker or Unix) ["/api/entry/list" + "/api/tornjak/agents/list"]
    • Cluster name (if agent with Parent ID assigned) ["/api/entry/list" + "/api/tornjak/agents/list"]

API Todos

  • Augment current api calls for clusters with time stamping
  • "/api/tornjak/agents/list" to return mapping of agent SPIFFEID to Tornjak selector and cluster mapping
  • "/api/entry/list" testing for filtered request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant