Kevin Chung
2d534b9f0e
Switch from manage.py to flask cli in docker-entrypoint.sh ( #2353 )
...
* Switch from manage.py to flask cli in docker-entrypoint.sh to get Docker image working again
* Closes #2352
2023-07-04 12:13:12 -04:00
Kevin Chung
c2eca90b05
Add API interface to mark submissions as correct ( #2350 )
...
* Add the `discard` type for submissions
* Add `PATCH /api/v1/submissions/[submission_id]` to mark submissions as correct
* Closes #181
2023-07-04 03:21:35 -04:00
Kevin Chung
deae9e1941
Bump Dependencies ( #2332 )
...
* Bump dependencies
* Closes #2300
* Closes #2331
2023-07-02 17:33:58 -04:00
Lorenzo Coppi
7b68babee6
Additional configurations for boto3 client under the S3 uploader ( #2326 )
...
This PR adds 2 new config variables to allow for this:
- `AWS_S3_ADDRESSING_STYLE`: Support for selecting the S3 addressing style. It defaults to "auto" as when it's not set, but can also be set to **virtual** and **path**. See https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-bucket-intro.html#access-bucket-console-ex .
- `AWS_S3_CUSTOM_DOMAIN`: Domain that replaces the default one in presigned download URLs.
---------
Co-authored-by: Kevin Chung <kchung@ctfd.io >
2023-06-30 17:51:01 -04:00
Kevin Chung
70999b4fa0
Add linear decay function to dynamic challenges ( #2347 )
...
* Add linear decay funciton to dynamic value challenges
* Add the ability to choose between decay functions for dynamic value challenges
* Closes #2224
* Closes #865
2023-06-29 03:44:33 -04:00
Kevin Chung
79ae94285c
Add SKIP_DB_PING to skip database availability test ( #2346 )
...
* Add new envvar `SKIP_DB_PING` to instruct the CTFd Docker image to not test if the database server is available
---------
Co-authored-by: Smyler <smyler@hackademint.org >
2023-06-28 00:45:57 -04:00
Kevin Chung
1226267faa
Merge pull request #2344 from CTFd/1691-challenge-preview-improvements
...
* Changes challenge previews to be in a full page context using `page.html`
* Closes #1691
2023-06-27 19:03:22 -04:00
Kevin Chung
b5f8dc5e5c
Add new preview option
2023-06-27 18:43:59 -04:00
Kevin Chung
cd7f2720e4
Merge branch 'master' into 1691-challenge-preview-improvements
2023-06-27 18:25:59 -04:00
Kevin Chung
950c87d8bc
Merge pull request #2345 from CTFd/bump-core-beta
2023-06-27 18:19:34 -04:00
Kevin Chung
8d193ae9bd
Merge commit '953a7d07608b019a2403f5628e4ee63c37a78c03' into bump-core-beta
2023-06-27 18:00:14 -04:00
Kevin Chung
953a7d0760
Squashed 'CTFd/themes/core-beta/' changes from bb4edfb6..c7b4b78f
...
c7b4b78f Merge pull request #48 from CTFd/bump-ctfd-js
fa185cbb Bump CTFd.js version to 0.0.12
git-subtree-dir: CTFd/themes/core-beta
git-subtree-split: c7b4b78f8ca9bab23b1ef939c92a9c51e6f7d27d
2023-06-27 18:00:14 -04:00
Kevin Chung
32f3d345e1
Fix challenge plugin rendering under beta theme interface
2023-06-27 12:48:40 -04:00
Kevin Chung
6c97610ea4
Fix hardcoded value
2023-06-27 04:38:24 -04:00
Kevin Chung
e2b8c2de07
Add newline
2023-06-27 04:07:57 -04:00
Kevin Chung
8837d5c955
Fix lints
2023-06-27 04:06:26 -04:00
Kevin Chung
2ec1db3537
Move challenge preview into an iframe modal
2023-06-27 04:02:07 -04:00
Kevin Chung
d138117a2e
Merge branch 'master' into 1691-challenge-preview-improvements
2023-06-26 19:29:13 -04:00
Kevin Chung
79ad434d41
Add a rough implementation of improving the challenge preview
2023-06-26 19:27:27 -04:00
Kevin Chung
8cde25cab1
Merge pull request #2341 from HackademINT/pymysql-rsa
...
Add the optional rsa dependency to pymysql
2023-06-22 11:28:20 -04:00
Smyler
704e08c745
Add the optional rsa dependency to pymysql
...
This dependency is required to allow compatibility with MySQL instances that enforce specific authentication protocols. This is often the case with managed databases for some public cloud providers.
PyMySQL documentation: https://pymysql.readthedocs.io/en/latest/user/installation.html
2023-06-22 13:37:20 +02:00
Kevin Chung
dc555f70ca
Merge pull request #2339 from CTFd/update-core-beta
...
Update core beta
2023-06-22 01:19:29 -04:00
Kevin Chung
6e0072b902
Squashed 'CTFd/themes/core-beta/' changes from 5ce3003b..bb4edfb6
...
bb4edfb6 Add description to TokensForm
50070166 Fix issue with missing endtrans tag
34c58129 Update README.md
git-subtree-dir: CTFd/themes/core-beta
git-subtree-split: bb4edfb6d4535406f7038099501d144d0cc998da
2023-06-22 00:24:12 -04:00
Kevin Chung
de17bef1f7
Merge commit '6e0072b9028bc7c878e3a74be66754fbbcb7d32c' into update-core-beta
2023-06-22 00:24:12 -04:00
Kevin Chung
eac44adf69
Add a description field to api tokens and make api tokens start with a 'ctfd_' prefix ( #2337 )
...
* Add a description field for API tokens
* API tokens now start with a `ctfd_` prefix to make them easier to identify
* Closes #2184
2023-06-22 00:20:32 -04:00
Kevin Chung
e5518b54bd
Improve rendering long submisisons admin panel ( #2338 )
...
* Truncate submissions in the Admin Panel but have some ways to show them fully expanded and add a copy to clipboard button
* Closes #2243
2023-06-21 20:31:25 -04:00
Kevin Chung
89cec0c5e6
Revert "Merge pull request #2334 from CTFd/2253-alpine-js-admin-panel" ( #2336 )
...
This reverts commit fdec5bc7ab , reversing
changes made to e89d4f763c .
2023-06-20 03:31:04 -04:00
Kevin Chung
fdec5bc7ab
Merge pull request #2334 from CTFd/2253-alpine-js-admin-panel
...
* Add AlpineJS to the Admin Panel as a way for plugins to add simple interactivity
* Closes #2253
2023-06-17 04:18:30 -04:00
Kevin Chung
d8c77f19f0
Fix lint
2023-06-17 03:57:58 -04:00
Kevin Chung
ef5f41e177
Add AlpineJS to Admin Panel
2023-06-17 03:46:35 -04:00
Kevin Chung
e89d4f763c
Merge pull request #2333 from CTFd/2157-free-hints-view-public
...
* Free hints (those without a cost or prerequsitites) can now be viewed publicly if challenges are visible publicly
* Closes #2157
2023-06-16 16:51:14 -04:00
Kevin Chung
cb8ea71751
Make free hints visible to unauth users if challenges are visible to unauth users
2023-06-16 16:27:31 -04:00
Kevin Chung
7bae8360c8
Merge pull request #2328 from CTFd/2308-total-user-limit
...
Rough implementation of user registration limit
2023-06-14 02:04:33 -04:00
Kevin Chung
e4b91dfe58
Add test for num_user limit via MLC
2023-06-13 20:53:07 -04:00
Kevin Chung
d5c40142fb
Fix lint
2023-06-13 20:36:32 -04:00
Kevin Chung
030a6bc4d5
Merge branch 'master' into 2308-total-user-limit
2023-06-13 20:36:02 -04:00
Kevin Chung
5d055f60f6
Add test for user limit registration behavior
2023-06-13 20:02:15 -04:00
Kevin Chung
8a1c0a4b07
Merge pull request #2325 from intrigus-lgtm/patch-1
...
* Enable gzip in nginx config
2023-06-13 18:52:44 -04:00
Kevin Chung
1ae65d7b3c
Remove extra space
2023-06-13 18:34:25 -04:00
Kevin Chung
4be7b9f8ed
Move gzip config so location is on top
2023-06-13 18:33:35 -04:00
Kevin Chung
5e8ff5d892
Rough implementation of user registration limit
2023-06-13 17:02:30 -04:00
intrigus-lgtm
4b4847e600
Enable gzip for nginx
2023-06-12 23:52:48 +02:00
Kevin Chung
dd20786b84
Merge pull request #2324 from CTFd/pull-core-beta
...
* Fix issue where the private team page would not render properly
2023-06-11 16:20:24 -04:00
Kevin Chung
a64e7d51ef
Squashed 'CTFd/themes/core-beta/' changes from 9126d77d..5ce3003b
...
5ce3003b Merge pull request #47 from aCursedComrade/patch-1
c9887cb1 Fix team template
git-subtree-dir: CTFd/themes/core-beta
git-subtree-split: 5ce3003b4d68352e629ee2d390bc999e7d6b071e
2023-06-11 15:56:28 -04:00
Kevin Chung
89fb2e5803
Merge commit 'a64e7d51ef7c3bc33dfc19cc9ff48b3e3e23c64e' into pull-core-beta
2023-06-11 15:56:28 -04:00
Kevin Chung
23cdf85bf2
Mark 3.5.3 ( #2319 )
...
# 3.5.3 / 2023-06-07
**Deployment**
- Fixed permissions error in Dockerfile
- Bump dependencies for pybluemonday
2023-06-08 15:26:17 -04:00
Kevin Chung
b89cb3cb98
Add a section in the config panel to configure html sanitization but still allow config.ini to force it ( #2316 )
...
* Add a section in the config panel to configure html sanitization
* `HTML_SANITIZTION` in config.ini can still force sanitization regardless of the database configuration
* Closes #2194
2023-06-05 19:28:55 -04:00
Kevin Chung
692c4b086c
Core beta ( #2314 )
...
* Install the core-beta theme into the CTFd repo
git-subtree-dir: CTFd/themes/core-beta
git-subtree-split: 9126d77d1a858e10c25ce028a35d42efaa0f49c0
2023-06-01 16:30:13 -04:00
Kevin Chung
1d9581cc0a
Save pot file in repo ( #2313 )
2023-06-01 15:51:00 -04:00
Kevin Chung
635b0940e5
Add Translations layer ( #2288 )
...
* Add rough translations support into CTFd
* Add `flask-babel` dependency
* Adds language column to users table
* Closes #570
---------
Co-authored-by: Miłosz Skaza <milosz.skaza@ctfd.io >
2023-06-01 15:24:00 -04:00