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

Federation Creation #566

Merged
merged 6 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading