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

Use webhook authentication from node #9808

Merged
merged 3 commits into from
Jul 23, 2016

Conversation

deads2k
Copy link
Contributor

@deads2k deads2k commented Jul 12, 2016

Fixes #8988

This introduces a REST endpoint to back the webhook authentication type from upstream. We use it to plumb through token scopes. Also fixes the upstream authorization attributes so we can roundtrip through it.

I had to remove the ugorji codecs in the patch because they won't compile unless we pick down some codec changes. We were already using the reflection path in the old code, so its not any worse. I also can't get protobuf to generate compiling code, tagged @smarterclayton into the upstream pull.

@liggitt review?

@deads2k
Copy link
Contributor Author

deads2k commented Jul 12, 2016

[test]

@@ -0,0 +1,49 @@
package remotemaster
Copy link
Contributor

Choose a reason for hiding this comment

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

package name mismatch, filename mismatch

@liggitt liggitt self-assigned this Jul 12, 2016
@@ -33,7 +33,9 @@ func (a *TokenAuthenticator) AuthenticateToken(value string) (kuser.Info, bool,
ctx := api.NewContext()

token, err := a.tokens.GetAccessToken(ctx, value)
fmt.Printf("#### 1b %v\n", token)
Copy link
Contributor

Choose a reason for hiding this comment

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

remove debugging?

@deads2k deads2k force-pushed the use-webhook branch 2 times, most recently from c85dac3 to d65d72d Compare July 13, 2016 13:57
@deads2k
Copy link
Contributor Author

deads2k commented Jul 13, 2016

re[test]

@deads2k
Copy link
Contributor Author

deads2k commented Jul 14, 2016

comments look minor. Barring anything else, I'll fix up the comments, re-pick the upstream, and merge tomorrow.

@liggitt
Copy link
Contributor

liggitt commented Jul 14, 2016

shape looks fine... I don't want to carry an API though, do the upstreams have LGTM?

@deads2k
Copy link
Contributor Author

deads2k commented Jul 14, 2016

shape looks fine... I don't want to carry an API though, do the upstreams have LGTM?

I'd be shocked if they were rejected. You could do the user one.

@smarterclayton
Copy link
Contributor

Don't merge until you have LGTM on API review upstream.

On Thu, Jul 14, 2016 at 4:58 PM, David Eads [email protected]
wrote:

shape looks fine... I don't want to carry an API though, do the upstreams
have LGTM?

I'd be shocked if they were rejected. You could do the user one.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#9808 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ABG_p7r2x5qvdWiRsDq9XT9gas8RS3Anks5qVqMTgaJpZM4JKrE_
.

@deads2k
Copy link
Contributor Author

deads2k commented Jul 15, 2016

Already asked Brian for it. Of we don't get it, we'll be cloning our own and hacking it in.

@deads2k deads2k force-pushed the use-webhook branch 4 times, most recently from 5728c44 to 7697e2b Compare July 20, 2016 17:04
@deads2k
Copy link
Contributor Author

deads2k commented Jul 20, 2016

[merge]

@deads2k
Copy link
Contributor Author

deads2k commented Jul 21, 2016

#9775 re[test]

@deads2k
Copy link
Contributor Author

deads2k commented Jul 21, 2016

#9775 re[test]

@deads2k
Copy link
Contributor Author

deads2k commented Jul 22, 2016

re[test] re[merge]

@openshift-bot
Copy link
Contributor

openshift-bot commented Jul 22, 2016

continuous-integration/openshift-jenkins/test Running (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/6767/)

@deads2k
Copy link
Contributor Author

deads2k commented Jul 23, 2016

secret mount again, re[test]

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 4c61f4e

@openshift-bot
Copy link
Contributor

openshift-bot commented Jul 23, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/6770/) (Image: devenv-rhel7_4651)

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 4c61f4e

@openshift-bot openshift-bot merged commit 778af14 into openshift:master Jul 23, 2016
@deads2k deads2k deleted the use-webhook branch September 6, 2016 17:15
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.

node should use webhook authorizer
4 participants