Skip to content

Commit

Permalink
remove limitation of token length for now
Browse files Browse the repository at this point in the history
  • Loading branch information
lsjostro committed Feb 8, 2024
1 parent 57bf568 commit 3b45f39
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ on:

jobs:
build:
runs-on: shelmangroup-default
# runs-on: shelmangroup-default
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v22
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,10 @@ on:
- "v*"
jobs:
goreleaser:
runs-on: shelmangroup-default
# runs-on: shelmangroup-default
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
flake.lock
flake.nix
.envrc

- uses: cachix/install-nix-action@v22
with:
Expand All @@ -21,8 +17,6 @@ jobs:
with:
use_nix_profile: true

- uses: actions/checkout@v4

- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
Expand Down
5 changes: 0 additions & 5 deletions session/encrypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
)

var (
errTokenTooLong = errors.New("token too long")
errInvalidToken = errors.New("invalid token")
)

Expand All @@ -33,10 +32,6 @@ func EncodeToken(ctx context.Context, key [32]byte, sessionData *pb.SessionData)
box := secretbox.Seal(nonce[:], message, &nonce, &key)

token := base64.RawURLEncoding.EncodeToString(box)
if len(token) > 4096 {
return "", errTokenTooLong
}

return token, nil
}

Expand Down

0 comments on commit 3b45f39

Please sign in to comment.