-
Notifications
You must be signed in to change notification settings - Fork 41
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
fix: impresonation regression for service accounts #405
fix: impresonation regression for service accounts #405
Conversation
c070bb5
to
9e32ee2
Compare
8ad49e4
to
0f1187d
Compare
Yay! The checks are passing! :) |
Welcome to Capsule and thank you a lot @rgruchalski-klarrio! |
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.
Looks good to me @rgruchalski-klarrio!
Just left a couple of minor points.
cc @prometherion PTAL
079f33d
to
d79e4be
Compare
Thank you @rgruchalski-klarrio! LGTM |
@rgruchalski-klarrio thanks for your contribution. Please fix the commit syntax. We have good documentation here: https://github.com/projectcapsule/capsule/blob/main/CONTRIBUTING.md#semantics |
Also run |
@maxgio92 what does this even mean?
|
d79e4be
to
0058038
Compare
@rgruchalski-klarrio That means your imports are not correctly ordered
|
Okay, thank you @oliverbaehler, this seems to be a puzzle I really don't want to think about, what's the correct order?
import (
"fmt"
h "net/http"
"regexp"
"strings"
authenticationv1 "k8s.io/api/authentication/v1"
authorizationv1 "k8s.io/api/authorization/v1"
"k8s.io/apiserver/pkg/authentication/serviceaccount"
"k8s.io/apiserver/pkg/authentication/user"
"sigs.k8s.io/controller-runtime/pkg/client"
)
import (
"context"
"crypto/tls"
"crypto/x509"
"crypto/x509/pkix"
"fmt"
"net/http"
"reflect"
"regexp"
"sort"
"testing"
authenticationv1 "k8s.io/api/authentication/v1"
authorizationv1 "k8s.io/api/authorization/v1"
"sigs.k8s.io/controller-runtime/pkg/client"
"k8s.io/apiserver/pkg/authentication/serviceaccount"
"k8s.io/apiserver/pkg/authentication/user"
"github.com/projectcapsule/capsule-proxy/internal/request"
) |
They should look like this, not really a puzzle:
|
0058038
to
e8fba6d
Compare
Ah, thank you, alphabetical order within a group. All resolved and the CI is passing. |
@rgruchalski-klarrio We only accept GPG signed commits, please sign your commit |
omg... yes, let me configure gpg and have a look at this once again for you. |
7104e38
to
55b6bac
Compare
Signed-off-by: Radek Gruchalski <[email protected]>
55b6bac
to
ccdbcb3
Compare
There we go. Should be much better now. |
It's not for me, no need to get upset |
Nobody got upset, just extremely busy and the ping ping kinda annoyed me. Glad we're done with it! |
Fixes service account impresonation regression discussed in #388 (comment).