Commit Graph

1000 Commits

Author SHA1 Message Date
97a3aa713f sync: fix hash computation by factorizing 2019-11-25 14:52:19 +01:00
0766fbe480 sync: don't rely on map order to import flags
Sometimes, maps order doesn't match file order. Return flag ID as
list to keep the order.
2019-11-25 14:52:19 +01:00
Tristan Ruter-Naon
cb7f3326c4 admin: fix typo 2019-11-25 14:52:19 +01:00
48a941e2c5 compose: use /dashboard baseurl to be proxified by nginx 2019-11-25 14:52:19 +01:00
0c8099a639 config: add a route to fic-dashboard 2019-11-25 14:52:19 +01:00
f2fc142869 api: remote route takes advantage from builds functions 2019-11-25 14:52:19 +01:00
ded583008a dashboard: handle correctly baseurl option
On the first public.html GET, load the index.html file, as Go
Template.
2019-11-25 14:52:19 +01:00
ca891cd9b2 sync: Fix non-import of MCQ during sync 2019-11-25 14:52:19 +01:00
6265f85149 sync: Implement vector flags 2019-11-25 14:52:19 +01:00
99fcc99e82 sync: turn IgnoreCase on by default with reverse field CaseSensitive 2019-11-25 14:52:19 +01:00
33f7d104e4 sync: MCQ justifications are given in the choice tag directly 2019-11-25 14:52:19 +01:00
d7f0425d8a repochecker: Fix given URL to documentation 2019-11-25 14:52:19 +01:00
4e01377a29 sync: search theme's label in a title.txt file, fallback on dirname 2019-11-25 14:52:19 +01:00
6f7bd3b785 admin interface need rw access to TEAMS directory to do associations 2019-11-25 14:52:19 +01:00
168be0f7cc config: Allow unconditional access to admin interface with compose 2019-11-25 14:52:19 +01:00
846f2ce8a4 admin: Double check before doing dangerous actions in settings panel
Suggested-by: Nicolas Ribeyrolle <nicolas.ribeyrolle@epita.fr>
2019-11-25 14:52:19 +01:00
8e618565ad sync: Fix long running bug known as "why my fresh uploaded file is now empty again"
Thanks to Nicolas Ribeyrolle
2019-11-25 14:52:19 +01:00
0cbd6390ba docker-compose: fix started detection 2019-11-25 14:52:19 +01:00
6d72e6b970 Complete commit 75463dcebbcdabfba6416436e22f6ce639bd5635: if not configured, challenge should not be considered as started 2019-11-25 14:52:19 +01:00
41a3279bf8 libfic: avoid stange MYSQL_HOST variable, expect IP or DN 2019-11-25 14:52:19 +01:00
8131fda0e7 admin: display file dependancies and be able to remove them 2019-07-21 23:50:26 +02:00
c8ece39cb2 sync: alert about unknown keys in challenge.txt 2019-07-21 22:38:45 +02:00
936ef09e33 admin: fix strange behaviour when deleting some items 2019-07-21 21:55:36 +02:00
973363b3da admin/api: refactor file API 2019-07-21 21:55:11 +02:00
3e5b4ebad2 admin: add missing default settings 2019-07-12 19:22:05 +02:00
ba5642da8f admin: new form to update history coefficient 2019-07-12 19:21:07 +02:00
2b75287d16 backend: multithread generation 2019-07-11 19:52:13 +02:00
3bcac39f5f FIC2020 logo 2019-07-10 17:41:07 +02:00
4c7fd839b6 fixup! sync: Extract function that import flags from importer 2019-07-10 16:58:20 +02:00
a3d473983d fickit: Include /boot partition into RAID1 array, see https://outflux.net/blog/archives/2018/04/19/uefi-booting-and-raid1/ 2019-07-10 13:09:08 +02:00
444ba85f11 repochecker: add a mean to automatically check update on run
go build -tags "checkupdate"
2019-07-10 13:09:08 +02:00
32f1c86519 sync: ignore directory beginning with . (like .git) 2019-07-10 13:09:08 +02:00
9a9675bcf5 repochecker: introduce new project 2019-07-10 13:09:08 +02:00
eb95d861d3 sync: Extract function that import hints from importer 2019-07-10 13:09:08 +02:00
4039a394b5 sync: Extract function that import flags from importer 2019-07-10 13:09:08 +02:00
3f55845374 sync: Extract function that import files from importer 2019-07-06 04:08:29 +02:00
3104bf4e65 Speak about dashboard 2019-07-06 03:28:44 +02:00
3f99771910 sync: Extract function that builds an exercice from importer 2019-07-06 03:28:44 +02:00
682598fdbb sync: Extract function that builds a theme from importer 2019-07-06 03:28:44 +02:00
536dc0eb6b frontend: allow partial settings (used when publicly published) 2019-02-18 18:00:54 +01:00
15d108497e backend: check the team has access to the exercice/flag before doing the action 2019-02-06 03:40:49 +01:00
ff7c89af9f synchro: back to the default behaviour: don't synchronize/erase files that aren't treated yet 2019-02-06 03:40:49 +01:00
771627a0da pki: fix team association, complement to 68e5c4cd2b
The fix introduced in the referenced commit was not working.

This time, it has been tested with the following commands:

	# Associate all certificate to a team
	curl http://localhost:8081/api/certs/ | jq -r .[].id | while read CERTID; do curl -X PUT -d '{"id_team":1}' http://localhost:8081/api/certs/$CERTID; done

	# For each certificate associated with the team, try to connect to the server with each certificate. Report failing certificates.
	curl -s http://localhost:8081/api/teams/1/certificates | jq -r '.[] | .id + " " + .password' | while read CERTID PASSWORD; do curl -sf --cert-type P12 --cert $CERTID.p12:$PASSWORD https://fic.srs.epita.fr/my.json > /dev/null || echo $CERTID; done
2019-02-06 03:40:49 +01:00
b778d29dd9 admin: allow certid to finish by .p12, to permit downloading .p12 file 2019-02-06 03:40:49 +01:00
703eaef880 admin: display serial in hexadecimal 2019-02-06 03:40:49 +01:00
14d31737e0 admin: new route and interface to manage symlink for team association exclusing certificates 2019-02-06 03:40:49 +01:00
2b95995104 settings: add canJoinTeam parameter 2019-02-06 03:40:49 +01:00
921644deb4 frontend: rely on angular base path 2019-02-06 03:40:49 +01:00
a35aa7be70 admin: add a new route to update team history coefficient 2019-02-06 03:40:49 +01:00
6a1f73c895 admin: include coefficient in history.json 2019-02-06 03:40:49 +01:00