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

[Frontend design] Federation experience - View Federation Relationships #510

Open
mamy-CS opened this issue Sep 30, 2024 · 1 comment
Open
Labels
frontend Tornjak UI (Frontend) good first issue Good for newcomers In Progress
Milestone

Comments

@mamy-CS
Copy link
Collaborator

mamy-CS commented Sep 30, 2024

Implement a view of list of federated servers:

  • A new route/ page at the top navbar for Federation (See Image below)
  • A sub link that shows Federation Relationships and another sublink to create a Federation Relationship
  • This issue focuses on the first sub link, which is viewing the already-created Federation Relationships
  • Use backend apis bundle show/list and federation list (See [here])(

    tornjak/api/agent/server.go

    Lines 982 to 990 in 82214ac

    apiRtr.HandleFunc("/api/v1/spire/bundle", s.bundleGet).Methods(http.MethodGet, http.MethodOptions)
    apiRtr.HandleFunc("/api/v1/spire/federations/bundles", s.federatedBundleList).Methods(http.MethodGet, http.MethodOptions)
    apiRtr.HandleFunc("/api/v1/spire/federations/bundles", s.federatedBundleCreate).Methods(http.MethodPost)
    apiRtr.HandleFunc("/api/v1/spire/federations/bundles", s.federatedBundleUpdate).Methods(http.MethodPatch)
    apiRtr.HandleFunc("/api/v1/spire/federations/bundles", s.federatedBundleDelete).Methods(http.MethodDelete)
    apiRtr.HandleFunc("/api/v1/spire/federations", s.federationList).Methods(http.MethodGet, http.MethodOptions)
    apiRtr.HandleFunc("/api/v1/spire/federations", s.federationCreate).Methods(http.MethodPost)
    apiRtr.HandleFunc("/api/v1/spire/federations", s.federationUpdate).Methods(http.MethodPatch)
    apiRtr.HandleFunc("/api/v1/spire/federations", s.federationDelete).Methods(http.MethodDelete)
    )

image

Helpful documents:
ppt on federation - https://ibm.enterprise.slack.com/files/WAJG4N7SP/F07NTKS7Y4F/24-06-06-spiffe.pptx
Documentation on creating federation using Tornjak based apis - https://github.com/maia-iyer/spire-demos/blob/main/tornjak_api_federation/README.md

Example code on how the agent, entry and cluster apis are deigned in the frontend

@mamy-CS
Copy link
Collaborator Author

mamy-CS commented Sep 30, 2024

/assign @sestuna117

@mamy-CS mamy-CS added good first issue Good for newcomers frontend Tornjak UI (Frontend) In Progress labels Sep 30, 2024
@mamy-CS mamy-CS added this to the 1.9.0 milestone Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Tornjak UI (Frontend) good first issue Good for newcomers In Progress
Projects
None yet
Development

No branches or pull requests

1 participant