commit caasp-cli for openSUSE:Factory
Hello community, here is the log from the commit of package caasp-cli for openSUSE:Factory checked in at 2018-12-13 19:49:52 Comparing /work/SRC/openSUSE:Factory/caasp-cli (Old) and /work/SRC/openSUSE:Factory/.caasp-cli.new.28833 (New) Package is "caasp-cli" Thu Dec 13 19:49:52 2018 rev:6 rq:657784 version:3.0.0+20180515.git_r38_8943b1e Changes: --- /work/SRC/openSUSE:Factory/caasp-cli/caasp-cli.changes 2018-05-16 18:45:00.623885288 +0200 +++ /work/SRC/openSUSE:Factory/.caasp-cli.new.28833/caasp-cli.changes 2018-12-13 19:49:56.628584701 +0100 @@ -1,0 +2,5 @@ +Wed Dec 12 21:40:02 UTC 2018 - c...@suse.com + +- Update Golang BuildRequires to 1.11 + +--- Other differences: -- ++ caasp-cli.spec ++ --- /var/tmp/diff_new_pack.N3waG1/_old 2018-12-13 19:49:57.072584127 +0100 +++ /var/tmp/diff_new_pack.N3waG1/_new 2018-12-13 19:49:57.076584122 +0100 @@ -16,6 +16,9 @@ # +# Project name when using go tooling. +%define go_version 1.11 + Name: caasp-cli Version:3.0.0+20180515.git_r38_8943b1e Release:0 @@ -24,9 +27,9 @@ Group: System/Management Url:https://github.com/kubic-project/caasp-cli Source: master.tar.gz -BuildRequires: go >= 1.8.3 +BuildRequires: go >= %{go_version} BuildRequires: golang-packaging -BuildRequires: golang(API) = 1.8 +BuildRequires: golang(API) = %{go_version} Requires(post): %fillup_prereq BuildRoot: %{_tmppath}/%{name}-%{version}-build %{go_nostrip}
commit caasp-cli for openSUSE:Factory
Hello community, here is the log from the commit of package caasp-cli for openSUSE:Factory checked in at 2018-05-16 18:43:57 Comparing /work/SRC/openSUSE:Factory/caasp-cli (Old) and /work/SRC/openSUSE:Factory/.caasp-cli.new (New) Package is "caasp-cli" Wed May 16 18:43:57 2018 rev:5 rq:609131 version:3.0.0+20180515.git_r38_8943b1e Changes: --- /work/SRC/openSUSE:Factory/caasp-cli/caasp-cli.changes 2018-05-11 09:17:57.219214097 +0200 +++ /work/SRC/openSUSE:Factory/.caasp-cli.new/caasp-cli.changes 2018-05-16 18:45:00.623885288 +0200 @@ -1,0 +2,7 @@ +Tue May 15 03:00:13 UTC 2018 - containers-bugow...@suse.de + +- Commit 8943b1e by Kiall Mac Innes ki...@macinnes.ie + Add Housekeeping Job + + +--- Other differences: -- ++ caasp-cli.spec ++ --- /var/tmp/diff_new_pack.QeaTOU/_old 2018-05-16 18:45:02.783807232 +0200 +++ /var/tmp/diff_new_pack.QeaTOU/_new 2018-05-16 18:45:02.787807087 +0200 @@ -17,7 +17,7 @@ Name: caasp-cli -Version:3.0.0+20180509.git_r37_ac6784a +Version:3.0.0+20180515.git_r38_8943b1e Release:0 Summary:CLI for interacting with SUSE CaaS Platform Clusters License:Apache-2.0 ++ master.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/caasp-cli-master/Jenkinsfile.housekeeping new/caasp-cli-master/Jenkinsfile.housekeeping --- old/caasp-cli-master/Jenkinsfile.housekeeping 1970-01-01 01:00:00.0 +0100 +++ new/caasp-cli-master/Jenkinsfile.housekeeping 2018-05-15 05:01:17.0 +0200 @@ -0,0 +1,5 @@ +def targetBranch = env.getEnvironment().get('CHANGE_TARGET', env.BRANCH_NAME) + +library "kubic-jenkins-library@${targetBranch}" + +coreKubicProjectHousekeeping() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/caasp-cli-master/vendor/k8s.io/client-go/pkg/version/base.go new/caasp-cli-master/vendor/k8s.io/client-go/pkg/version/base.go --- old/caasp-cli-master/vendor/k8s.io/client-go/pkg/version/base.go 2018-05-09 11:48:01.0 +0200 +++ new/caasp-cli-master/vendor/k8s.io/client-go/pkg/version/base.go 2018-05-15 05:01:17.0 +0200 @@ -51,8 +51,8 @@ // semantic version is a git hash, but the version itself is no // longer the direct output of "git describe", but a slight // translation to be semver compliant. - gitVersion string = "v1.7.3-beta.0+ac6784a" - gitCommitstring = "ac6784ac230b721f03fe3e513fc57364cb436150"// sha1 from git, output of $(git rev-parse HEAD) + gitVersion string = "v1.7.3-beta.0+8943b1e" + gitCommitstring = "8943b1edb3d40c530396a217acbcc7841c2f091d"// sha1 from git, output of $(git rev-parse HEAD) gitTreeState string = "not a git tree" // state of git tree, either "clean" or "dirty" buildDate string = "1970-01-01T00:00:00Z" // build date in ISO8601 format, output of $(date -u +'%Y-%m-%dT%H:%M:%SZ')
commit caasp-cli for openSUSE:Factory
Hello community, here is the log from the commit of package caasp-cli for openSUSE:Factory checked in at 2018-05-11 09:17:53 Comparing /work/SRC/openSUSE:Factory/caasp-cli (Old) and /work/SRC/openSUSE:Factory/.caasp-cli.new (New) Package is "caasp-cli" Fri May 11 09:17:53 2018 rev:4 rq:606226 version:3.0.0+20180509.git_r37_ac6784a Changes: --- /work/SRC/openSUSE:Factory/caasp-cli/caasp-cli.changes 2018-02-28 20:03:01.151340043 +0100 +++ /work/SRC/openSUSE:Factory/.caasp-cli.new/caasp-cli.changes 2018-05-11 09:17:57.219214097 +0200 @@ -1,0 +2,7 @@ +Wed May 9 09:47:22 UTC 2018 - containers-bugow...@suse.de + +- Commit 5bcffa9 by Jordi Massaguer Pla jmassaguer...@suse.de + update version to 3.0.0 + + +--- Other differences: -- ++ caasp-cli.spec ++ --- /var/tmp/diff_new_pack.BLIw9v/_old 2018-05-11 09:17:58.187179026 +0200 +++ /var/tmp/diff_new_pack.BLIw9v/_new 2018-05-11 09:17:58.187179026 +0200 @@ -17,7 +17,7 @@ Name: caasp-cli -Version:0.0.1+20180207.git_r35_7606f5c +Version:3.0.0+20180509.git_r37_ac6784a Release:0 Summary:CLI for interacting with SUSE CaaS Platform Clusters License:Apache-2.0 @@ -29,7 +29,6 @@ BuildRequires: golang(API) = 1.8 Requires(post): %fillup_prereq BuildRoot: %{_tmppath}/%{name}-%{version}-build -ExcludeArch:s390 %{go_nostrip} %{go_provides} ++ master.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/caasp-cli-master/VERSION new/caasp-cli-master/VERSION --- old/caasp-cli-master/VERSION2018-02-07 18:23:45.0 +0100 +++ new/caasp-cli-master/VERSION2018-05-09 11:48:01.0 +0200 @@ -1 +1 @@ -0.0.1+dev +3.0.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/caasp-cli-master/vendor/k8s.io/client-go/pkg/version/base.go new/caasp-cli-master/vendor/k8s.io/client-go/pkg/version/base.go --- old/caasp-cli-master/vendor/k8s.io/client-go/pkg/version/base.go 2018-02-07 18:23:45.0 +0100 +++ new/caasp-cli-master/vendor/k8s.io/client-go/pkg/version/base.go 2018-05-09 11:48:01.0 +0200 @@ -51,8 +51,8 @@ // semantic version is a git hash, but the version itself is no // longer the direct output of "git describe", but a slight // translation to be semver compliant. - gitVersion string = "v1.7.3-beta.0+7606f5c" - gitCommitstring = "7606f5c01169134762049d0e3dcfd3913518147b"// sha1 from git, output of $(git rev-parse HEAD) + gitVersion string = "v1.7.3-beta.0+ac6784a" + gitCommitstring = "ac6784ac230b721f03fe3e513fc57364cb436150"// sha1 from git, output of $(git rev-parse HEAD) gitTreeState string = "not a git tree" // state of git tree, either "clean" or "dirty" buildDate string = "1970-01-01T00:00:00Z" // build date in ISO8601 format, output of $(date -u +'%Y-%m-%dT%H:%M:%SZ')
commit caasp-cli for openSUSE:Factory
Hello community, here is the log from the commit of package caasp-cli for openSUSE:Factory checked in at 2018-02-28 20:02:59 Comparing /work/SRC/openSUSE:Factory/caasp-cli (Old) and /work/SRC/openSUSE:Factory/.caasp-cli.new (New) Package is "caasp-cli" Wed Feb 28 20:02:59 2018 rev:3 rq:580920 version:0.0.1+20180207.git_r35_7606f5c Changes: --- /work/SRC/openSUSE:Factory/caasp-cli/caasp-cli.changes 2018-02-15 13:27:34.439469656 +0100 +++ /work/SRC/openSUSE:Factory/.caasp-cli.new/caasp-cli.changes 2018-02-28 20:03:01.151340043 +0100 @@ -1,0 +2,18 @@ +Mon Feb 26 10:51:59 UTC 2018 - containers-bugow...@suse.de + +- Commit 15bb48e by Kiall Mac Innes ki...@macinnes.ie + Switch to using the RFC defined OOB redirect URL + + CaaSP CLI shouldn't be "fake" redirect URL, instead, use the oauth RFC + defined out of band redirect URL. + + Commit 08bd81a by Kiall Mac Innes ki...@macinnes.ie + Use separate Dex clients for each actual client + + Previously Velum, CaaSP CLI, and Kubernetes all shared a single Dex client. + From a security perspective, this was far from ideal. + + Update CaaSP CLI to request a token which is valid for the Kubernetes client. + + +--- @@ -17,0 +36,5 @@ + +--- +Thu Feb 1 16:44:24 CET 2018 - r...@suse.de + +- do not build on s390, only on s390x (no go on s390) Other differences: -- ++ caasp-cli.spec ++ --- /var/tmp/diff_new_pack.11U5F3/_old 2018-02-28 20:03:02.087306178 +0100 +++ /var/tmp/diff_new_pack.11U5F3/_new 2018-02-28 20:03:02.091306033 +0100 @@ -29,6 +29,7 @@ BuildRequires: golang(API) = 1.8 Requires(post): %fillup_prereq BuildRoot: %{_tmppath}/%{name}-%{version}-build +ExcludeArch:s390 %{go_nostrip} %{go_provides}
commit caasp-cli for openSUSE:Factory
Hello community, here is the log from the commit of package caasp-cli for openSUSE:Factory checked in at 2018-02-15 13:27:32 Comparing /work/SRC/openSUSE:Factory/caasp-cli (Old) and /work/SRC/openSUSE:Factory/.caasp-cli.new (New) Package is "caasp-cli" Thu Feb 15 13:27:32 2018 rev:2 rq:576831 version:0.0.1+20180207.git_r35_7606f5c Changes: --- /work/SRC/openSUSE:Factory/caasp-cli/caasp-cli.changes 2017-10-07 17:50:39.919304594 +0200 +++ /work/SRC/openSUSE:Factory/.caasp-cli.new/caasp-cli.changes 2018-02-15 13:27:34.439469656 +0100 @@ -1,0 +2,18 @@ +Wed Feb 7 17:24:43 UTC 2018 - containers-bugow...@suse.de + +- Commit 15bb48e by Kiall Mac Innes ki...@macinnes.ie + Switch to using the RFC defined OOB redirect URL + + CaaSP CLI shouldn't be "fake" redirect URL, instead, use the oauth RFC + defined out of band redirect URL. + + Commit 08bd81a by Kiall Mac Innes ki...@macinnes.ie + Use separate Dex clients for each actual client + + Previously Velum, CaaSP CLI, and Kubernetes all shared a single Dex client. + From a security perspective, this was far from ideal. + + Update CaaSP CLI to request a token which is valid for the Kubernetes client. + + +--- Other differences: -- ++ caasp-cli.spec ++ --- /var/tmp/diff_new_pack.p2qQ31/_old 2018-02-15 13:27:35.703423748 +0100 +++ /var/tmp/diff_new_pack.p2qQ31/_new 2018-02-15 13:27:35.711423456 +0100 @@ -1,7 +1,7 @@ # # spec file for package caasp-cli # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: caasp-cli -Version:0.0.1+20170929.git_r32_b195256 +Version:0.0.1+20180207.git_r35_7606f5c Release:0 Summary:CLI for interacting with SUSE CaaS Platform Clusters License:Apache-2.0 ++ master.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/caasp-cli-master/cmd/auth.go new/caasp-cli-master/cmd/auth.go --- old/caasp-cli-master/cmd/auth.go2017-09-29 22:20:36.0 +0200 +++ new/caasp-cli-master/cmd/auth.go2018-02-07 18:23:45.0 +0100 @@ -26,6 +26,8 @@ "net/url" "strings" "time" + "io/ioutil" + "regexp" "github.com/coreos/go-oidc" "golang.org/x/net/html" @@ -34,7 +36,7 @@ // Simulate a OAuth2 Web Flow in a command line app -const redirectURL = "http://127.0.0.1"; +const redirectURL = "urn:ietf:wg:oauth:2.0:oob" // AuthRequest represents an OAuth2 auth request flow type AuthRequest struct { @@ -210,7 +212,7 @@ authRequest.verifier = provider.Verifier(&oidc.Config{ClientID: authRequest.ClientID}) // Setup complete, start the actual auth - authRequest.scopes = []string{"openid", "profile", "email", "offline_access", "groups"} + authRequest.scopes = []string{"openid", "profile", "email", "offline_access", "groups", "audience:server:client_id:kubernetes"} authCodeURL := oauth2Config(authRequest).AuthCodeURL("", oauth2.AccessTypeOffline) resp, err := client.Get(authCodeURL) @@ -278,13 +280,21 @@ } defer resp.Body.Close() - - callbackLocation, err := resp.Location() + body, err := ioutil.ReadAll(resp.Body) if err != nil { return AuthResponse{}, err } - code := callbackLocation.Query().Get("code") + r, _ := regexp.Compile("(?:(?:.|\n)*)value=\"(.*?)\"(?:(?:.|\n)*)") + + match := r.FindStringSubmatch(string(body)) + + // We expect two matches - the entire body, and then just the code group + if (len(match) != 2) { + return AuthResponse{}, fmt.Errorf("failed to extract token from OOB response") + } + + code := match[1] client.CheckRedirect = oldRedirectChecker diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/caasp-cli-master/vendor/k8s.io/client-go/pkg/version/base.go new/caasp-cli-master/vendor/k8s.io/client-go/pkg/version/base.go --- old/caasp-cli-master/vendor/k8s.io/client-go/pkg/version/base.go 2017-09-29 22:20:36.0 +0200 +++ new/caasp-cli-master/vendor/k8s.io/client-go/pkg/version/base.go 2018-02-07 18:23:45.0 +0100 @@ -51,8 +51,8 @@ // semantic version is a git hash, but the version itself is no // longer the direct output of "git describe", but a slight // translation to be semver compliant. - gitVersion string = "v1