Skip to content

Commit 9a3f05e

Browse files
committed
docs: note the breaking change in this PR
Signed-off-by: Grant Ramsay <seapagan@gmail.com>
1 parent 79014ce commit 9a3f05e

3 files changed

Lines changed: 21 additions & 2 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Documentation for this project is now availiable on it's own page at
1919
finished will include full usage information and how-to's.
2020

2121
- [Important note on Versioning](#important-note-on-versioning)
22+
- [Breaking Changes](#breaking-changes)
2223
- [Changes from version 0.4.x](#changes-from-version-04x)
2324
- [Functionality](#functionality)
2425
- [Installation](#installation)
@@ -50,6 +51,13 @@ previous version. This will be in the form of a `.patch` file which can be
5051
applied to their project using the `git apply` command. This will be documented
5152
in the release notes.
5253

54+
## Breaking Changes
55+
56+
There will be breaking changes implemented from time to time, as the template is
57+
still evolving. These may be due to security issues or changes in philosophy.
58+
These can always be found [here](https://api-template.seapagan.net/important/)
59+
on the website.
60+
5361
## Changes from version 0.4.x
5462

5563
Starting from version 0.5.0, the template has been refactored to use SQLAlchemy

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
| Version | Supported |
66
| ------- | ------------------ |
7-
| >=0.6.0 | :white_check_mark: |
7+
| >=0.7.1 | :white_check_mark: |
88

99
Until we reach a 1.0 milestone, we will generally only support the latest
1010
release of the project. If you are having issues with an older version, please

docs/important.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@ API.
88

99
None.
1010

11+
## Breaking changes in 0.7.1
12+
13+
### Modified the API Key Hashing method
14+
15+
The API key is **NEVER** stored in the database, however a **hashed** version of
16+
this is so that we can authenticate. Previously it used a plain SHA256
17+
algorythm, and has now been switched to using `HMAC` in conjunction with SHA256
18+
instead. This allows using the `SECRET_KEY` already set to make the API keys
19+
more secure. As a result, **any existing API Keys are now invalid and will need to
20+
be deleted and regenerated**.
21+
1122
## Breaking Changes in 0.7.0
1223

1324
### Modified the Authentication backend
@@ -37,7 +48,7 @@ Several function signatures have changed, generally to fix boolean
3748
inconsistencies. Boolean parameters should be passed as named parameters
3849
instead of positional parameters. This is to make the code more readable and
3950
maintainable. The `UserManager.set_ban_status` function is one of these changes
40-
that causes a breaking change. However, this method is only called from and API
51+
that causes a breaking change. However, this method is only called from an API
4152
endpoint for the moment, so it should not affect any existing code that
4253
depends on it unless you are using it directly in your code.
4354

0 commit comments

Comments
 (0)