Skip to content

Commit 30e7e3b

Browse files
Enable default throttle auto-registration and polish docs/workflows/security defaults
1 parent a87b016 commit 30e7e3b

8 files changed

Lines changed: 175 additions & 78 deletions

File tree

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ SECURITY_CSRF_VERIFY_JSON=false
1515
SECURITY_CSRF_INPUT_KEY=_token
1616

1717
SECURITY_THROTTLE_ENABLED=true
18-
SECURITY_THROTTLE_ADD_TO_KERNEL=false
18+
SECURITY_THROTTLE_ADD_TO_KERNEL=true
1919
SECURITY_THROTTLE_MAX_ATTEMPTS=60
2020
SECURITY_THROTTLE_DECAY_SECONDS=60

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
awk "/^## \\[$VERSION\\]/ {flag=1; next} /^## \\[/ {flag=0} flag {print}" CHANGELOG.md > RELEASE_NOTES.md
4242
4343
if [ ! -s RELEASE_NOTES.md ]; then
44-
echo "⚠️ No changelog entry found, using default message"
44+
echo "No changelog entry found, using default message"
4545
echo "Release $RAW_VERSION" > RELEASE_NOTES.md
4646
fi
4747

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [1.3.0] - 2026-01-03
6+
7+
### Changed
8+
9+
- Enabled throttle middleware auto-registration by default and synced `.env.example` default.
10+
- Bumped `codemonster-ru/security` to `v1.1.0`.
11+
512
## [1.2.0] - 2025-12-17
613

714
### Added
@@ -39,7 +46,7 @@ All notable changes to this project will be documented in this file.
3946

4047
### Initial Release
4148

42-
- Introduced the **Annabel Skeleton** starter project for the [Annabel PHP framework](https://github.com/codemonster-ru/annabel)
49+
- Introduced the **Annabel Skeleton** - starter project for the [Annabel PHP framework](https://github.com/codemonster-ru/annabel)
4350
- Included minimal but complete structure:
4451
- `app/Controllers/HomeController.php`
4552
- `bootstrap/app.php`, `public/index.php`

README.md

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
[![Total Downloads](https://img.shields.io/packagist/dt/codemonster-ru/annabel-skeleton.svg?style=flat-square)](https://packagist.org/packages/codemonster-ru/annabel-skeleton)
55
[![License](https://img.shields.io/packagist/l/codemonster-ru/annabel-skeleton.svg?style=flat-square)](https://packagist.org/packages/codemonster-ru/annabel-skeleton)
66

7-
Starter project for the **[Annabel PHP Framework](https://github.com/codemonster-ru/annabel)**
8-
a clean and modern foundation for building full-stack web applications.
7+
Starter project for the **[Annabel PHP Framework](https://github.com/codemonster-ru/annabel)**.
8+
A clean and modern foundation for building full-stack web applications.
99

1010
## Quick Start
1111

@@ -17,8 +17,27 @@ cd myapp
1717
composer start
1818
```
1919

20-
Then open [http://localhost:8000](http://localhost:8000)
21-
you’ll see your first page rendered by **Annabel**
20+
Open [http://localhost:8000](http://localhost:8000) to see your first page rendered by **Annabel**.
21+
22+
## Security Defaults
23+
24+
The `codemonster-ru/security` package is enabled by default.
25+
26+
- CSRF and throttling are auto-registered in the kernel.
27+
- Use `.env` to disable or tune `SECURITY_*` settings.
28+
29+
Default `SECURITY_*` values:
30+
31+
```dotenv
32+
SECURITY_CSRF_ENABLED=true
33+
SECURITY_CSRF_ADD_TO_KERNEL=true
34+
SECURITY_CSRF_VERIFY_JSON=false
35+
SECURITY_CSRF_INPUT_KEY=_token
36+
SECURITY_THROTTLE_ENABLED=true
37+
SECURITY_THROTTLE_ADD_TO_KERNEL=true
38+
SECURITY_THROTTLE_MAX_ATTEMPTS=60
39+
SECURITY_THROTTLE_DECAY_SECONDS=60
40+
```
2241

2342
## Requirements
2443

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
"authors": [
1515
{
1616
"name": "Kirill Kolesnikov",
17-
"email": "admin@codemonster.ru",
17+
"email": "admin@codemonster.net",
1818
"homepage": "https://github.com/KolesnikovKirill",
1919
"role": "Lead Developer"
2020
}
2121
],
2222
"require": {
2323
"php": ">=8.2",
24-
"codemonster-ru/annabel": "^1.12",
25-
"codemonster-ru/security": "^1.0"
24+
"codemonster-ru/annabel": "^1.14",
25+
"codemonster-ru/security": "^1.1"
2626
},
2727
"autoload": {
2828
"psr-4": {

0 commit comments

Comments
 (0)