Skip to content

Commit

Permalink
Federation Creation (#566)
Browse files Browse the repository at this point in the history
  • Loading branch information
mamy-CS authored Dec 23, 2024
2 parents e2278dd + ead3521 commit 325bf81
Show file tree
Hide file tree
Showing 7 changed files with 1,052 additions and 238 deletions.
48 changes: 48 additions & 0 deletions docs/newFederation-json-format.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
## JSON Format for New Federation

```json
{
"federation_relationships": [
{
"trust_domain": "server.org",
"bundle_endpoint_url": "https://host.docker.internal:8440",
"https_spiffe": {
"endpoint_spiffe_id": "spiffe://server.org/spire/server"
},
"trust_domain_bundle": {
"trust_domain": "server.org",
"x509_authorities": [
{
"asn1": "MIID3TCCAsWg... (truncated)"
},
{
"asn1": "MIID3TCCAsWg... (truncated)"
},
{
"asn1": "MIID3TCCAsWg... (truncated)"
}
],
"jwt_authorities": [
{
"public_key": "MIIBIjANBgkqh... (truncated)",
"key_id": "hZinOYBqM3jGnq...",
"expires_at": 1734022841
},
{
"public_key": "MIIBIjANBgkqh... (truncated)",
"key_id": "3o0DnZN5clyzR...",
"expires_at": 1734113731
},
{
"public_key": "MIIBIjANBgkqh... (truncated)",
"key_id": "ngoXDgR1SWATM...",
"expires_at": 1734191531
}
],
"sequence_number": 18
}
}
]
}

```
4 changes: 4 additions & 0 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import SelectServer from "./components/select-server";
import ClusterList from "./components/cluster-list";
import ClusterManagement from "./components/cluster-management";
import FederationList from "./components/federation-list";
import TrustBundleCreate from "components/trustbundle-create";
import FederationCreate from "components/federation-create";
import AgentList from "./components/agent-list";
import CreateJoinToken from "./components/agent-create-join-token";
import EntryList from "./components/entry-list";
Expand Down Expand Up @@ -38,6 +40,8 @@ function App() {
<Route path="/" exact component={AgentList} />
<Route path="/clusters" exact component={ClusterList} />
<Route path="/federations" exact component={FederationList} />
<Route path="/trustbundle" exact component={TrustBundleCreate} />
<Route path="/federation/create" exact component={FederationCreate} />
<Route path="/agents" exact component={AgentList} />
<Route path="/entries" exact component={EntryList} />
<RenderOnAdminRole>
Expand Down
489 changes: 256 additions & 233 deletions frontend/src/components/entry-create-json.tsx

Large diffs are not rendered by default.

Loading

0 comments on commit 325bf81

Please sign in to comment.