Commit Graph

265 Commits

Author SHA1 Message Date
Thibaut
3b7d9a2a75 sync: handle new sync format: flags 2018-12-08 03:23:07 +01:00
156a87abc0 admin/pki: use symlink instead of DB to associate certificate to team 2018-05-11 15:03:10 +02:00
bcc598ebd5 Write docs! 2018-05-11 15:03:09 +02:00
0ec90b14c6 Fixes thanks to go vet 2018-05-11 05:27:51 +02:00
68e5c4cd2b pki: improve serial number generation + fix team association
Replace math/rand by crypto/rand.

Fix big when associating certificate with leading zero: nginx prepend 0 wherehas we don't.
2018-05-11 05:27:51 +02:00
ff98bfa79f admin: can edit flags after creation 2018-05-11 05:27:51 +02:00
45620ba4c2 admin: try to generate events.json file 2018-05-11 05:27:51 +02:00
6d1ef0f51c admin: new route to fill URLIds if they are not defined 2018-05-11 05:27:50 +02:00
4dbfffef7b admin: bump new API version 2018-05-11 05:27:50 +02:00
c18465d498 Reserved directory for public interface now lives in public instead of _public 2018-05-11 05:27:50 +02:00
c118035c33 Introducing new PKI management 2018-05-11 05:27:50 +02:00
5b558bcf00 admin/api: bytes handlers now returned data as application/octet-stream 2018-05-11 05:27:50 +02:00
992221a6da Remove old PKI 2018-05-11 05:27:50 +02:00
e083da2f72 Remove team's initial_name, replaced by their ID 2018-05-11 05:27:50 +02:00
0c540a39eb frontend: beautiful URLs 2018-01-26 12:02:32 +01:00
1eef71923a admin: new interface to manage claims 2018-01-18 12:08:12 +01:00
87428909b2 admin: avoid CSRF: use POST instead of GET, mainly for synchronisation methods 2018-01-18 12:08:11 +01:00
9a1a64c41c admin: complet API and interface with files checking page 2018-01-18 12:08:11 +01:00
ea3f3b709d admin/sync: import theme introductions 2018-01-18 12:08:10 +01:00
e9910fe827 admin: can delete team history item 2018-01-17 18:52:48 +01:00
bc9d27aa94 public: can control up to 9 separate displays 2018-01-17 18:52:47 +01:00
edc6ca9b7a change request log format, close to nginx ones 2018-01-17 18:52:45 +01:00
48e6ba7861 admin: add route to handle quiz 2018-01-17 18:52:45 +01:00
b079f7891c admin: sync mcq/ucq 2018-01-17 18:52:45 +01:00
92c7de942b admin: API version bump 2018-01-17 18:52:42 +01:00
3d59042802 admin: sync.ImportFile takes Importer as first arg 2018-01-17 18:52:41 +01:00
9a9d5fcda4 libfic: Type key is now Label 2018-01-17 18:52:41 +01:00
a1c6eadbe5 Display read-only settings for information purpose 2018-01-17 18:52:41 +01:00
6ef91a92e5 Perform full deep synchronisation 2018-01-17 18:52:41 +01:00
993b83f8e7 admin: can sync exercices 2018-01-17 18:52:40 +01:00
762d3a5222 admin: synchronization of exercices, files, hints and keys 2018-01-17 18:52:40 +01:00
38a0f4c9b5 libfic: Add new row in exercices table, to store relative path to exercice 2018-01-17 18:52:40 +01:00
4d1dde4528 admin: Implement theme synchronization 2018-01-17 18:52:39 +01:00
8f7de926d3 admin: Implement sychronization backends
We are now able, depending on configuration, to retrieve files from either WebDAV or local file system.
2018-01-17 18:52:39 +01:00
cd5a9d06ea Define global default value at initialisation 2018-01-17 18:52:39 +01:00
e6e6e6c206 Use BLAKE2b checksum instead of SHA-1 and SHA-512 2018-01-17 18:52:38 +01:00
9325419002 import: avoid ugly padding = at the end of base32 pathname 2018-01-17 18:52:38 +01:00
f17541e252 Move settings and started file into SETTINGS directory 2018-01-17 18:52:38 +01:00
41400a8710 admin: add history route in API 2018-01-17 18:52:37 +01:00
88ef2f64c0 admin: ensure _public is created at startup 2018-01-17 18:52:36 +01:00
d03350f6b3 Fix generated JSON in case of error 2018-01-17 18:52:35 +01:00
2e8d28542e admin: unify API to revoke certificates 2018-01-17 18:52:34 +01:00
6148897dac settings: add title and authors 2018-01-17 18:52:33 +01:00
7597fcfe5b admin: add button and route to reset some parts 2018-01-17 18:52:32 +01:00
7478051425 admin: interface to edit teams 2018-01-17 18:52:32 +01:00
17f51f5e7b admin: can force page regeneration 2018-01-17 18:52:31 +01:00
544bbb745c admin: new route /members/ 2018-01-17 18:52:31 +01:00
416ad65c87 admin: add public interface management 2018-01-17 18:52:31 +01:00
d4177f6228 admin: allow import of remote hint and partials remote parts 2018-01-17 18:52:31 +01:00
b8b1f14806 admin: restore function to add team and members 2018-01-17 18:52:31 +01:00
8e91e7edbe admin: sanitize use of InitialName when needed 2018-01-17 18:52:30 +01:00
b1c4ebfe45 settings: admin interface see default params 2018-01-17 18:52:30 +01:00
ef4a738672 admin: control settings 2018-01-17 18:52:29 +01:00
b772a22705 Hints can something else than text 2018-01-17 18:52:29 +01:00
91182b1877 admin: Improve CA API 2018-01-17 18:52:28 +01:00
1bd403cd8c Handle file import digest 2018-01-17 18:51:53 +01:00
63931f73ba admin: new argument --rapidimport to speed up the import but don't ensure consistency 2018-01-17 18:51:53 +01:00
f0621fa191 [admin] Add new routes to manage hints, files and keys 2018-01-17 18:51:53 +01:00
b6782962f1 [admin] Add events 2018-01-17 18:51:53 +01:00
2e718b22b6 Merge exercices API routes 2018-01-17 18:51:52 +01:00
4b4c6881c7 Bump new version API 2018-01-17 18:51:52 +01:00
3b320469b5 Use github.com/julienschmidt/httprouter instead of gorilla 2018-01-17 18:51:52 +01:00
5a0b81ba32 Merge big splitted files before import 2018-01-17 18:51:52 +01:00
25bf34e82c Multiple hints 2018-01-17 18:51:50 +01:00
1054dd7086 admin/api: use gorilla/mux instead of Go router 2018-01-17 18:51:44 +01:00