Skip to content

Commit

Permalink
Merge branch 'master' into 210804_Replace_jwt-go
Browse files Browse the repository at this point in the history
  • Loading branch information
MZC-CSC authored Oct 7, 2022
2 parents e422823 + 1b21a25 commit ec890c0
Show file tree
Hide file tree
Showing 323 changed files with 39,950 additions and 15,632 deletions.
32 changes: 31 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
# v.0.6.0-CafeLatte (2022.07.08)
### API Change
- cb-tumblebug 변경된 API 반영

### Feature
- MCIS/VM 생성 시 최적배치 기능 추가
- MCIS 동적 생성 기능 추가
- 리소스 Inspecting 기능 추가

### Bug Fix
- CSP 아이콘 출력 방식 개선
- MCKS Add/Delete Node 보완



# v.0.5.0-Affogato (2021.12.16)
### API Change
- 성능개선 : MCIS/MCKS Manage에 go routin 적용
- cb-spider v0.4.19, cb-tumblebug v0.4.16, cb-mcks v0.4.6, cb-dragonfly v0.4.4 버전의 변경된 API 반영

### Feature
- 작업내역 표시 추가
- MCIS, VM Create 고도화
- 처리결과 return 방식 통합
- 지도 표시 추가

### Bug Fix
- chart 표시 보완



# v0.4.0-CafeMocha (2021.06.30.)
# v0.4.0-CafeMocha (2021.06.30)
### API Change
- 모니터링 Ploicy, Threshold 추가
- UI에서 직접 Framework 직접호출 방식 -> go server를 통해 호출하는 방식으로 변경
Expand Down
23 changes: 12 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
```
[NOTE]
cb-webtool is currently under development. (the latest version is 0.3 espresso)
cb-webtool is currently under development. (the latest version is v0.6.0 (Cafe Latte))
So, we do not recommend using the current release in production.
Please note that the functionalities of cb-webtool are not stable and secure yet.
If you have any difficulties in using cb-webtool, please let us know.
Expand All @@ -23,15 +23,16 @@ cb-webtool은 Multi-Cloud Project의 일환으로 다양한 클라우드를 cb-w
- [[cb-webtool 실행-reflex 방식]](#cb-webtool-실행-reflex-방식)
***
## [설치 환경]
cb-webtool은 1.16 이상의 Go 버전이 설치된 다양한 환경에서 실행 가능하지만 최종 동작을 검증한 OS는 Ubuntu 18.0.4입니다.
cb-webtool은 1.19 이상의 Go 버전이 설치된 다양한 환경에서 실행 가능하지만 최종 동작을 검증한 OS는 Ubuntu 22.0.4입니다.

<br>

## [의존성]
cb-webtool은 내부적으로 cb-tumblebug & cb-spider & cb-dragonfly의 개방형 API를 이용하기 때문에 각 서버의 연동이 필요합니다.<br>
- [https://github.com/cloud-barista/cb-tumblebug](https://github.com/cloud-barista/cb-tumblebug) README 참고하여 설치 및 실행 (검증된 버전 : cb-tumblebug v0.2.9)
- [https://github.com/cloud-barista/cb-spider](https://github.com/cloud-barista/cb-spider) README 참고하여 설치 및 실행 (검증된 버전 : cb-spider v0.2.8)
- [https://github.com/cloud-barista/cb-dragonfly](https://github.com/cloud-barista/cb-dragonfly) README 참고하여 설치 및 실행 (검증된 버전 : cb-dragonfly v0.2.8)
- [https://github.com/cloud-barista/cb-tumblebug](https://github.com/cloud-barista/cb-tumblebug) README 참고하여 설치 및 실행 (검증된 버전 : cb-tumblebug v0.5.11)
- [https://github.com/cloud-barista/cb-spider](https://github.com/cloud-barista/cb-spider) README 참고하여 설치 및 실행 (검증된 버전 : cb-spider v0.5.12-p1)
- [https://github.com/cloud-barista/cb-dragonfly](https://github.com/cloud-barista/cb-dragonfly) README 참고하여 설치 및 실행 (검증된 버전 : cb-dragonfly v0.5.2)
- [https://github.com/cloud-barista/cb-mcks](https://github.com/cloud-barista/cb-mcks) README 참고하여 설치 및 실행 (검증된 버전 : cb-mcks v0.5.3)

<br>

Expand All @@ -40,20 +41,20 @@ cb-webtool은 내부적으로 cb-tumblebug & cb-spider & cb-dragonfly의 개방
- `$ sudo apt update`
- `$ sudo apt install git`

- Go 1.16 이상의 버전 설치<br>
go mod 기반의 설치로 바뀌면서 Go 1.16 이상의 버전이 필요합니다.<br>
- Go 1.19 이상의 버전 설치<br>
go mod 기반의 설치로 바뀌면서 Go 1.19 이상의 버전이 필요합니다.<br>

2021년 6월 기준으로 apt install golang으로는 구 버전이 설치되기 때문에 https://golang.org/doc/install 사이트에서 1.16 이상의 버전을 직접 설치해야 합니다.<br>
- `$ wget https://golang.org/dl/go1.16.4.linux-amd64.tar.gz`
- `$ sudo tar -C /usr/local -xzf go1.16.4.linux-amd64.tar.gz`
2021년 6월 기준으로 apt install golang으로는 구 버전이 설치되기 때문에 https://golang.org/doc/install 사이트에서 1.19 이상의 버전을 직접 설치해야 합니다.<br>
- `$ wget https://golang.org/dl/go1.19.1.linux-amd64.tar.gz`
- `$ sudo tar -C /usr/local -xzf go1.19.1.linux-amd64.tar.gz`

- Go 환경 설정
- `$ echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.bashrc`
- `$ echo "export GOPATH=$HOME/go" >> ~/.bashrc`
- `$ source ~/.bashrc`
- `$ go version`
```
go version go1.16.4 linux/amd64
go version go1.19.1 linux/amd64
```

- cb-webtool 설치
Expand Down
9 changes: 5 additions & 4 deletions conf/setup.env
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ export DRAGONFLY_URL=http://${CBWS_TARGET}:9090/dragonfly
export API_GW=http://${CBWS_TARGET}:8000

export LADYBUG_URL=${API_GW}/ladybug
export MCKS_URL=http://${CBWS_TARGET}:1470/mcks

export LoginUser=admin
export LoginEmail=admin
export LoginPassword=admin
export LoginAccessSecret=cloudbarista
export LoginRefreshSecret=webtool
export LoginAccessSecret=<input access secret>
export LoginRefreshSecret=<input refresh secret>

export API_USERNAME=default
export API_PASSWORD=default
export API_USERNAME=<api userName for using Tumblebug>
export API_PASSWORD=<api password for using Tumblebug>
12 changes: 11 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/cloud-barista/cb-webtool

go 1.16
go 1.19

require (
github.com/davecgh/go-spew v1.1.1
Expand All @@ -10,13 +10,23 @@ require (
github.com/go-session/session v3.1.2+incompatible // indirect
github.com/golang-jwt/jwt/v4 v4.0.0
github.com/google/uuid v1.3.0
github.com/gorilla/websocket v1.4.2
github.com/labstack/echo v3.3.10+incompatible
golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b
)

require (
github.com/go-session/session v3.1.2+incompatible // indirect
// github.com/labstack/echo/v4 v4.5.0
github.com/labstack/gommon v0.3.0 // indirect
github.com/mattn/go-colorable v0.1.8 // indirect
github.com/mattn/go-isatty v0.0.12 // indirect
github.com/smartystreets/goconvey v1.6.4 // indirect
github.com/stretchr/testify v1.7.0 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasttemplate v1.2.1 // indirect
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4 // indirect
golang.org/x/sys v0.0.0-20210423082822-04245dca01da // indirect
golang.org/x/text v0.3.6 // indirect
)
7 changes: 5 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM=
github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
github.com/foolin/echo-template v0.0.0-20190415034849-543a88245eec h1:BurQ3oNjJkB5+zibQGHw97kZOBN/DLlAKYlvfsacBD0=
Expand All @@ -15,6 +13,8 @@ github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8=
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc=
github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo=
github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
github.com/labstack/echo v3.3.10+incompatible h1:pGRcYk231ExFAyoAjAfD85kQzRJCRI8bbnE7CX5OEgg=
Expand Down Expand Up @@ -44,6 +44,7 @@ github.com/valyala/fasttemplate v1.0.1/go.mod h1:UQGH1tvbgY+Nz5t2n7tXsz52dQxojPU
github.com/valyala/fasttemplate v1.2.1 h1:TVEnxayobAdVkhQfrfes2IzOB6o+z4roRkPF52WA1u4=
github.com/valyala/fasttemplate v1.2.1/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=

golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97 h1:/UOmuWzQfxxo9UtlXMwuQU8CMgg1eZXqTRwkSQJWKOI=
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
Expand All @@ -59,6 +60,8 @@ golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1 h1:SrN+KX8Art/Sf4HNj6Zcz06G7VEz+7w9tdXTPOZ7+l4=
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210423082822-04245dca01da h1:b3NXsE2LusjYGGjL5bxEVZZORm/YEFFrWFjR8eFrw/c=
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
Expand Down
Loading

0 comments on commit ec890c0

Please sign in to comment.