[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/08: Fix compute-token
From: |
Christopher Baines |
Subject: |
04/08: Fix compute-token |
Date: |
Wed, 1 Jul 2020 04:36:51 -0400 (EDT) |
cbaines pushed a commit to branch master
in repository data-service.
commit 911d0779eddf6720fd3c8792ed11fae60ff596ca
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Sun Jun 28 21:42:05 2020 +0100
Fix compute-token
For some reason the string-filter arguments were the wrong way around.
---
guix-data-service/model/build-server-token-seed.scm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/guix-data-service/model/build-server-token-seed.scm
b/guix-data-service/model/build-server-token-seed.scm
index f4a1bf4..c26f796 100644
--- a/guix-data-service/model/build-server-token-seed.scm
+++ b/guix-data-service/model/build-server-token-seed.scm
@@ -30,12 +30,12 @@
build-server-id
token-seed)))
(string-filter
+ ;; Remove the + / and = to make handling the value easier
+ char-set:letter+digit
(base64-encode
(bytevector-hash
(string->utf8 source-string)
- (hash-algorithm sha1)))
- ;; Remove the + / and = to make handling the value easier
- char-set:letter+digit)))
+ (hash-algorithm sha1))))))
(define (compute-tokens-for-build-server conn secret-key-base build-server-id)
(define query
- branch master updated (f60c2ea -> 0242bc6), Christopher Baines, 2020/07/01
- 01/08: Implement insert-build-status using insert-build-statues, Christopher Baines, 2020/07/01
- 03/08: Support storing the id's representing builds in other services, Christopher Baines, 2020/07/01
- 04/08: Fix compute-token,
Christopher Baines <=
- 06/08: Implement more support for builds from the Guix Build Coordinator, Christopher Baines, 2020/07/01
- 02/08: Make build_status.timestamp nullable, Christopher Baines, 2020/07/01
- 05/08: Fix match in render-builds, Christopher Baines, 2020/07/01
- 08/08: Remove the constraint on having one derivation build per server, Christopher Baines, 2020/07/01
- 07/08: Avoid duplicate build status entries, Christopher Baines, 2020/07/01