-
Notifications
You must be signed in to change notification settings - Fork 56
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
use stronger algorithm defaults for certificates #326
Conversation
Great stuff. Should we also update (OK in a separate PR) how we generate the certs we use to sign JWTs? infra/internal/registry/data.go Line 403 in e414cb7
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
hmm. this last change seems to break when I use it with prod,
so I'm guessing it's not backwards compatible with what's currently in prod, or I missed something. I would really expect that I should be able to change the algorithm without breaking existing deployments. |
I do think this is unrelated, and worth trying now after rebasing :-) |
ac0a132
to
59cf854
Compare
internal/registry/api.go
Outdated
@@ -136,6 +136,8 @@ func extractToken(context context.Context) (*Token, error) { | |||
return nil, errors.New("token not found in context") | |||
} | |||
|
|||
// todo: should validate token? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This happens in line 100
(this function is really just for type casting!). That said, maybe the function naming / structure isn't the greatest if it looks naked without validation
@@ -779,3 +779,15 @@ func containsUser(users []api.User, email string) bool { | |||
|
|||
return false | |||
} | |||
|
|||
func TestCredentials(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤩
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few optional comments and a small lint error to fix 😉 . LGTM!
No description provided.