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

config: no longer stub out HPKE public key fetch #4853

Merged
merged 1 commit into from Dec 12, 2023

Conversation

kenjenkins
Copy link
Contributor

@kenjenkins kenjenkins commented Dec 12, 2023

Summary

This partially reverts commit a138859.

Fetching the authenticate service HPKE public key is required only for the stateless authentication flow. Now that Pomerium will instead use the older (stateful) authentication flow when configured for a self-hosted authenticate service, this logic shouldn't be needed at all.

Removing this logic should also make it easier to test against a local instance of the hosted authenticate service.

Related issues

User Explanation

Checklist

  • reference any related issues
  • updated docs
  • updated unit tests
  • updated UPGRADING.md
  • add appropriate tag (improvement / bug / etc)
  • ready for review

@coveralls
Copy link

Coverage Status

coverage: 59.928% (+0.04%) from 59.891%
when pulling 762e5b3 on kenjenkins/hpke-key-fetch
into 1dbe441 on main.

Copy link
Contributor

@calebdoxsey calebdoxsey left a comment

Choose a reason for hiding this comment

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

Because the typical flow will be the stateful one, which doesn't use HPKE, this makes sense.

Merely creating the HPKE key fetcher won't initiate an HTTP request right?

@kenjenkins kenjenkins marked this pull request as ready for review December 12, 2023 17:48
@kenjenkins kenjenkins requested a review from a team as a code owner December 12, 2023 17:48
@kenjenkins
Copy link
Contributor Author

Merely creating the HPKE key fetcher won't initiate an HTTP request right?

I believe that's correct. Also, now there should be only one call to Config.GetAuthenticateKeyFetcher(), from authenticateflow.NewStateless():

s.authenticateKeyFetcher, err = cfg.GetAuthenticateKeyFetcher()

@kenjenkins kenjenkins merged commit fe46ed3 into main Dec 12, 2023
11 checks passed
@kenjenkins kenjenkins deleted the kenjenkins/hpke-key-fetch branch December 12, 2023 17:58
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.

None yet

3 participants