-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
OCI join method - Add server auth ceremony #51446
Conversation
e353656
to
acaf9c2
Compare
6ad2308
to
21128b0
Compare
5fee41e
to
90e7eac
Compare
lib/auth/join_oracle.go
Outdated
} | ||
|
||
// Check allow rules. | ||
token, ok := provisionToken.(*types.ProvisionTokenV2) |
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.
What if we introduce V3? Perhaps using provisionToken.GetVersion()
and asserting a minimum version here would be more future-proof?
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.
We'd still need to cast to v2 to get the v2 spec.
939e2e2
to
83ab4f3
Compare
// validateOracleJoinToken validates the fields in a token using the Oracle | ||
// join method. It's done here instead of in the client so the client doesn't | ||
// have to import the Oracle SDK. | ||
func validateOracleJoinToken(token types.ProvisionToken) error { |
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.
I think this would be more consistent with other types if this were moved within a new func ValidateProvisionToken(token types.ProvisionToken) error
in services/provisioning.go. However, as indicated in your comment, that would add the Oracle SDK to more dependency trees than desired.
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.
I would definitely make sure we add a comment /somewhere/ that indicates that the validation for these fields exists here - I can see this being super hard to find. Probably more evidence that we need to break clients away from depending on lib/services
.
d897eee
to
a8c5529
Compare
d647b43
to
db0511e
Compare
f7c60aa
to
40c332a
Compare
@atburke - this PR will require admin approval to merge due to its size. Consider breaking it up into a series smaller changes. |
ebdc51e
to
3994680
Compare
This change adds the server side of the auth ceremony for the Oracle join method.
153419a
to
ef524ca
Compare
This change adds the server side of the auth ceremony for the Oracle join method.
This change adds the server side of the auth ceremony for the Oracle join method (RFD).
Part of #41705.
Follows #51445.
Changelog: Added Oracle cloud join method