brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [3/3] brooklyn-client git commit: Closes #21
Date Mon, 30 May 2016 15:02:12 GMT
Closes #21

[BROOKLYN-280] add --skipSslChecks flag to work with self-signed certs

- defaults to `false`, ie existing behaviour
- setting the flag `--skipSslChecks` disables certificate chain and hostname verification
(see `InsecureSkipVerify` in https://golang.org/pkg/crypto/tls/)
- persisted to `~/.brooklyn_cli`
- also bumped version to `0.10.0-SNAPSHOT`

```
bash-4.3$ br login https://10.10.10.100:8443/ admin password
Get https://10.10.10.100:8443/v1/server/version: x509: certificate signed by unknown authority
bash-4.3$ br app
Get https://10.10.10.100:8443/v1/applications: x509: certificate signed by unknown authority

bash-4.3$ br --skipSslChecks login https://10.10.10.100:8443/ admin password
Connected to Brooklyn version 0.10.0-20160513.2042 at https://10.10.10.100:8443
bash-4.3$ br app
Id   Name   Status   Location
```
*Note*: I'd no apps running on this system so the empty table is ok, catalog returns as expected.

```json
{
    "auth": {
        "https://10.10.10.100:8443": {
            "password": "password",
            "username": "admin"
        }
    },
    "skipSslChecks": true,
    "target": "https://10.10.10.100:8443"
}
```


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-client/commit/9700ec0a
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-client/tree/9700ec0a
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-client/diff/9700ec0a

Branch: refs/heads/master
Commit: 9700ec0ab005438bab08df8f1596304093ea177e
Parents: 39fad13 fe57b6a
Author: Svetoslav Neykov <svetoslav.neykov@cloudsoftcorp.com>
Authored: Mon May 30 18:02:01 2016 +0300
Committer: Svetoslav Neykov <svetoslav.neykov@cloudsoftcorp.com>
Committed: Mon May 30 18:02:01 2016 +0300

----------------------------------------------------------------------
 app/app.go        |  9 ++++++++-
 br/brooklyn.go    | 10 ++++++----
 commands/login.go |  2 ++
 net/net.go        | 10 ++++++++--
 4 files changed, 24 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-client/blob/9700ec0a/app/app.go
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/brooklyn-client/blob/9700ec0a/commands/login.go
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/brooklyn-client/blob/9700ec0a/net/net.go
----------------------------------------------------------------------


Mime
View raw message