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

Expose issuer as a worker service binding #78

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

lbaquerofierro
Copy link
Contributor

No description provided.

src/index.ts Outdated
}
// If we move the rotation logic to a separate worker, we can define a rotation-specific named entry point.
// https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/rpc/
export class IssuerHandler extends WorkerEntrypoint<Bindings> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from a review perspective, it could be worth keeping the methods unchanged (not moving them to a new class)

and declare the new class Issuer below which would proxy method, possibly with different method signatures. for instance, I could imagine handleTokenRequest to be have the following signature issue(request: TokenRequest)

ctx is also specific to this worker, that is hard to provide from another worker.

.gitignore Outdated
Comment on lines 1 to 2
dist/*
!dist/types/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why publish the dist folder? is this required for use as a submodule?

@lbaquerofierro lbaquerofierro force-pushed the lina/PCP-299 branch 23 times, most recently from 8219242 to 7075db4 Compare February 12, 2025 19:15
@lbaquerofierro lbaquerofierro force-pushed the lina/PCP-299 branch 3 times, most recently from 1d1a13a to 3c92805 Compare February 18, 2025 14:37
@thibmeu thibmeu changed the title Lina/pcp 299 Expose issuer as a worker service binding Feb 18, 2025
@lbaquerofierro lbaquerofierro force-pushed the lina/PCP-299 branch 5 times, most recently from 957a513 to 89e6fe0 Compare February 18, 2025 15:43
@lbaquerofierro lbaquerofierro force-pushed the lina/PCP-299 branch 12 times, most recently from f88c16b to e4e8c0c Compare February 19, 2025 13:06
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