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

HMS-2694 feat: Host conf token MVP #17

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

tiran
Copy link
Collaborator

@tiran tiran commented Oct 9, 2023

Implement minimal host conf token and signing JWK.

A private ECDSA key is genenerated from a hard-coded seed and the JWK is
stored in memory. In the future, the ECDSA key will be generated from a
random source and the JWK stored in the database.

The GET /signing_keys endpoint returns the public JWK.

The POST /host-conf endpoint now returns a signed token.

Signed-off-by: Christian Heimes [email protected]

@tiran tiran force-pushed the hms-2694-minimal-token branch from edbc155 to c8d044a Compare October 9, 2023 08:15
Implement minimal host conf token and signing JWK.

A private ECDSA key is genenerated from a hard-coded seed and the JWK is
stored in memory. In the future, the ECDSA key will be generated from a
random source and the JWK stored in the database.

The `GET /signing_keys` endpoint returns the public JWK.

The `POST /host-conf` endpoint now returns a signed token.

Signed-off-by: Christian Heimes <[email protected]>
@tiran tiran force-pushed the hms-2694-minimal-token branch from c8d044a to 2cfac4f Compare October 10, 2023 06:49
@tiran tiran marked this pull request as ready for review October 10, 2023 08:36
@tiran tiran requested a review from frasertweedale October 10, 2023 08:36
@frasertweedale
Copy link
Contributor

Diff looks good. I'm going to do some testing before I merge it.

@frasertweedale
Copy link
Contributor

It works. There are some things that need addressing but not in this diff. Better to follow-up with subsequent PRs and keep this already-big PR from growing more.

So, I am merging it. Thanks!

@frasertweedale frasertweedale merged commit 41f95c2 into podengo-project:main Oct 11, 2023
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants