mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-16 07:16:38 +00:00
Rotate Access token with refresh token (#280)
Add method for rotating access token with refresh tokens This will be useful for catching expired sessions and offboarding users Also added functions to handle secrets. They have to be revisited as some tests didn't run on CI as they waited some user input, like password
This commit is contained in:
15
.github/workflows/golang-test-linux.yml
vendored
15
.github/workflows/golang-test-linux.yml
vendored
@@ -11,18 +11,7 @@ jobs:
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
# - name: update limits.d
|
||||
# run: |
|
||||
# cat <<'EOF' | sudo tee -a /etc/security/limits.d/wt.conf
|
||||
# root soft nproc 65535
|
||||
# root hard nproc 65535
|
||||
# root soft nofile 65535
|
||||
# root hard nofile 65535
|
||||
# $(whoami) soft nproc 65535
|
||||
# $(whoami) hard nproc 65535
|
||||
# $(whoami) soft nofile 65535
|
||||
# $(whoami) hard nofile 65535
|
||||
# EOF
|
||||
|
||||
|
||||
- name: Cache Go modules
|
||||
uses: actions/cache@v2
|
||||
@@ -42,4 +31,4 @@ jobs:
|
||||
run: go mod tidy
|
||||
|
||||
- name: Test
|
||||
run: go test -exec sudo -timeout 5m -p 1 ./...
|
||||
run: go test -exec 'sudo --preserve-env=CI' -timeout 5m -p 1 ./...
|
||||
|
||||
Reference in New Issue
Block a user