]> BookStack Code Mirror - website/blob - content/blog/2023/bookstack-release-v23-08.md
Script refresh, now compatible with RHEL 8.9 with PHP 8.1
[website] / content / blog / 2023 / bookstack-release-v23-08.md
1 +++
2 categories = ["Releases"]
3 tags = ["Releases"]
4 title = "BookStack Release v23.08"
5 date = 2023-08-30T11:43:00Z
6 author = "Dan Brown"
7 image = "/images/blog-cover-images/deer_dan_brown.jpg"
8 slug = "bookstack-release-v23-08"
9 draft = false
10 +++
11
12 The August release of BookStack is now here! This is focused upon an initial implementation of 
13 a notification system for content, but as usual there are a few other improvements to enjoy.
14
15 * [Update instructions](/docs/admin/updates)
16 * [GitHub release page](https://github.com/BookStackApp/BookStack/releases/tag/v23.08)
17
18
19 **Upgrade Notices**
20
21 - **Security - Webhooks** - In scenarios where admin users are not trusted, webhooks could potentially be used maliciously. This update adds a control for such functionality. Please read [our documentation for the new `ALLOWED_SSR_HOSTS` option](/docs/admin/security/#server-side-request-allow-list) if this may be a concern for your instance.
22
23 Note that [v23.06.1](/docs/admin/updates/#updating-to-v23061-or-higher) and [v23.06.2](/docs/admin/updates/#updating-to-v23062-or-higher) also had version specific upgrade notices that should be considered
24 if not already read and/or upgraded to those.
25
26 {{<pt oMVSWxsayhfL7rjtzJLqNF>}}
27
28 ### Content Notification System
29
30 It's now possible to be notified via email upon page changes within BookStack!
31 Alongside this you can also be notified upon new comments to pages.
32 To provide some high-level user control, there's a new "Notification Preferences"
33 view which can be accessed via the "Preferences" option in the header bar user 
34 dropdown:
35
36 ![A view in BookStack titled "Notification Preferences", with three option checkbox. The "Preferences" option is also shown in the top-left header bar user menu](/images/2023/08/notification_preferences.png)
37
38 Within here are three new user preferences:
39
40 - Notify upon changes to pages I own
41 - Notify upon comments on pages I own
42 - Notify upon replies to my comments
43
44 These options represent global defaults for notifications.
45 This new "Notification Preferences" view also lists all the items you're
46 watching or ignoring. Watching or ignoring allows content-specific control of notifications
47 that may work in addition to, or override, your global notification preferences.
48 You can watch any book, chapter or page via the new "Watch" action:
49
50 ![A view of the actions for a page in BookStack, focused on a "Watch" action with eye icon](/images/2023/08/watch_action.png)
51
52 By default this will watch for new pages and page changes. This can be changed
53 via the watch options menu, found by selecting the watch status in the details:
54
55 <img width="420" src="/images/2023/08/watch_options.png" alt='A view within the details for a page in BookStack, showing various options for watching the page, including "Ignore", "All Page Updates" and "All Page Updates & Comments"'>
56
57 This provides various different levels of watching of content, in addition to the ability
58 to ignore any notification events if things are getting too noisy within a particular book,
59 chapter or page.
60
61 In in similar manner to permissions, watch preferences cascade from books to chapters to pages unless
62 those have their own watch preferences set to override the parent status.
63 When a page or chapter has active watch preferences from a parent item, this will be reflected
64 within its details:
65
66 ![A view within the details for a page in BookStack, highlight an eye icon next to the text "Watching via parent book"](/images/2023/08/watch_parent_detail.png)
67
68 Notifications are sent upon relevant activity, and will include a few 
69 helpful related details in addition to a link to the relevant content:
70
71 ![Screenshot of a notification email for a comment, including page name, commenter name and comment text, along with a linked CTA button to view the comment](/images/2023/08/comment_notification_example.png)
72
73 Page update notifications are somewhat debounced, meaning that the system will avoid
74 sending notifications if re-updated by the same author within a time window. This is
75 to prevent an attack of emails from an enthusiastically updating author.
76
77 The ability to receive and manage notifications is handled via a new role permission.
78 For a stable upgrade path, this permission will only be provided to the default
79 "Admin" user role upon upgrade, so you'll need to assign it to other roles where desired:
80
81 ![A view of the "System Permissions" part of the BookStack role edit form, highlighting the new "Receive & manage notifications" option](/images/2023/08/receive_notifications_role_permission.png)
82
83 An important consideration of this system is performance. Having to send out emails
84 upon certain common actions does require extra time, making these actions slower.
85 It is however possible for emails to be sent asynchronously to avoid significant
86 added delay with a little extra setup. Consult our ["Async Action Handling" Email & Webhooks](/docs/admin/email-webhooks/#async-action-handling) documentation for guidance on this.
87
88
89 ### Drawing Save Safety Net
90
91 When editing a drawing within BookStack, via the diagrams.net integration, 
92 BookStack will wait until you save the drawing before then uploading the drawing data
93 to the system for storage. This process works in most cases but, from the drawing start
94 time to the point of save, various things can change or go wrong resulting in the drawing
95 failing to save. As an example, going offline or your user login session timing out could
96 result in a lost drawing. This could be especially frustrating where hours have been spent
97 on a drawing.
98
99 To help avoid the frustration of lost drawing effort, we've added a safety net to the save
100 process. Now when drawings are saved, they'll first be saved into the browser before 
101 they're sent back to BookStack. If they then save on the BookStack server-side successfully,
102 the browser version will be cleared. If the save process fails, the browser stored image will
103 remain and you'll get a prompt when you next try to edit/create a drawing:
104
105 ![A popup prompt in BookStack titled "Unsaved Drawing Found", asking if we'd like to restore and edit a found unsaved drawing](/images/2023/08/unsaved_drawing_prompt.png)
106
107 You can confirm via this prompt to then restore the browser-saved image into diagrams.net
108 for continued editing and re-attempt of saving.
109
110 ### API - Set Page/Chapter Ordering in Books
111
112 The sort ordering of pages and chapters within a book can now be managed
113 via the API. This functionality comes through the addition of a new `priority` parameter
114 available on create & update requests for pages & chapters. As an example:
115
116 ```http
117 PUT https://bookstack.example.com/api/chapters/15
118 Content-Type: application/json
119 Authorization: Token {{token_id}}:{{token_secret}}
120
121 {
122   "priority": 22
123 }
124 ```
125
126 Items within a book or chapter are shown from lowest priority number to largest.
127
128 Thanks to [@rouet on GitHub](https://github.com/BookStackApp/BookStack/pull/4313) for providing
129 the pull request to add this functionality.
130
131 ### Server Side Request Allow List
132
133 As mentioned in the upgrade notices, is was reported that webhooks could be used maliciously as a server-side-request
134 means to potentially hit unexpected or private endpoints from the BookStack instance system.
135 This is usually not a concern, but there could be scenarios where an instance is hosted for admins that are untrusted, within a usually private environment.
136
137 To help with such cases, a new `ALLOWED_SSR_HOSTS` option has been added as a form of allow-list for use in functionality like webhooks:
138
139 ```bash
140 ALLOWED_SSR_HOSTS="https://*.example.com https://example.org/bookstack/"
141 ```
142
143 This defaults to `ALLOWED_SSR_HOSTS="*"` to allow all hosts by default, to prevent breaking webhooks for existing users, and since this only a mild concern in specific environments due to the permissions required and the limits of exploitation in those environments.
144
145 Thanks to [morioka12 on huntr.dev](https://huntr.dev/users/scgajge12) ([@scgajge12 on Twitter](https://twitter.com/scgajge12)) for reporting this vulnerability via huntr.dev.
146
147 For more detail on the new option, see the ["Server Side Request Allow List" section in our security docs](/docs/admin/security/#server-side-request-allow-list).
148
149 ### Translations
150
151 Once again thanks to the tireless translators for their terrific talent in updating the language content of BookStack. Listed below is everyone that has contributed to languages since the last feature release.
152 I've also added their translated word count to properly reflect the great efforts made here.
153
154 - Tomislav Kraljević (tomislav.kraljevic) - *Croatian - 2772 words*
155 - Taygun Yıldırım (yildirimtaygun) - *Turkish - 952 words*
156 - Leonardo Mario Martinez (leonardo.m.martinez) - *Spanish, Argentina - 686 words*
157 - SmokingCrop - *Dutch - 656 words*
158 - toras9000 - *Japanese - 618 words*
159 - Bruno Eduardo de Jesus Barroso (brunoejb) - *Portuguese, Brazilian - 604 words*
160 - TheRazvy - *Romanian - 511 words*
161 - m0uch0 - *Spanish - 422 words*
162 - scureza - *Italian - 416 words*
163 - 10935336 - *Chinese Simplified - 386 words*
164 - Igor V Belousov (biv) - *Russian - 323 words*
165 - David Bauer (davbauer) - *German - 315 words*
166 - Guttorm Hveem (guttormhveem) - *Norwegian Bokmal - 296 words*
167 - Minh Giang Truong (minhgiang1204) - *Vietnamese - 264 words*
168 - Atmis - *French - 246 words*
169 - sdhadi - *Persian - 225 words*
170 - Maciej Lebiest (Szwendacz) - *Polish - 197 words*
171 - Jøran Haugli (haugli92) - *Norwegian Bokmal - 188 words*
172 - pedromcsousa - *Portuguese - 188 words*
173 - Ioannis Ioannides (i.ioannides) - *Greek - 91 words*
174 - HeartCore - *German Informal - 60 words*
175 - Vadim (vadrozh) - *Russian - 52 words*
176 - Indrek Haav (IndrekHaav) - *Estonian - 49 words*
177 - REMOVED_USER - *French - 39 words*
178 - m4z - *German - 29 words*
179 - Paulo Henrique (paulohsantos114) - *Portuguese, Brazilian - 18 words*
180 - Dženan (Dzenan) - *Swedish - 15 words*
181 - Péter Péli (peter.peli) - *Hungarian - 5 words*
182
183 *\* Word counts are those tracked by Crowdin, indicating original EN words translated.*
184
185 ### Next Steps
186
187 While spending time of the features of this release, I noticed some of the UI and views are becoming a
188 little untidy, to a point where it now might be confusing to understand where certain options may exist,
189 especially when it comes to user options and preferences.
190 I want to spend a release cycle focused on cleaning up rough edges and existing bug reports, just to ensure
191 the platform remains at a good level of polish and the user experience remains intuitive.
192
193 Looking a little further forward into the future,
194 I've been thinking about aligning a few inputs where some formatting may be desired,
195 but not at the level of a full-blown page editor. As an example, comments can actually accept markdown input
196 for formatting but this is not clear nor intuitive to most users. There have also been requests for slightly more formatting
197 in descriptions for books, chapters and shelves. Therefore I envision setting up a simplified WYSIWYG editor across these inputs.
198 I just need to be sure we do that in a way that works with existing functionality and doesn't
199  cause too many forward compatibility issues.
200
201 ### Other Updates
202
203 In regards to other goings on in the project over the last month, 
204 In July we reached the 8 year mark for the project. You can find
205 a lot more about that [in my post here](/blog/8-years-of-bookstack/) where
206 I dig into the figures & finances, and reflect on the project reach.
207
208 On the video side of things, I've set-up a PeerTube instance as a YouTube
209 alternative for our video content. I wrote about this in detail in
210 [my blogpost here](/blog/bookstack-on-foss-video/).
211 On the instance you can find the new videos I've published since last
212 release:
213
214 - [More Power User Features in BookStack](https://foss.video/w/b4aTq3YzsTVjdEFBQtuHgZ)
215 - [Installing BookStack on Debian 12 (Bookworm) with HTTPS](https://foss.video/w/mUKH26XNcYwxkF7VzupQAa)
216 - [Tea Break: 8 Years of BookStack, LLM Connection Demo & Video Hosting](https://foss.video/w/mB67n8JBBHb9mSMYUM5DED)
217
218 As one last thing, I've been a long term viewer of the Linus Tech Tips YouTube channel and, although they've been going
219 through some problems & controversy lately, it was pretty cool to see them using BookStack, in their ["Here's the plan." video](https://youtu.be/qAE5KoyFEUo?si=WdaqNUH77Fg9AMeM&t=231) (About 3:51), as a tool to improve/define their processes.
220
221 ### Full List of Changes
222
223 **Released in v23.08**
224
225 * Added content notification system. ([#4390](https://github.com/BookStackApp/BookStack/pull/4390), [#4371](https://github.com/BookStackApp/BookStack/issues/4371), [#241](https://github.com/BookStackApp/BookStack/issues/241))
226 * Added browser-based drawing backup storage mechanism. ([#4457](https://github.com/BookStackApp/BookStack/pull/4457), [#4421](https://github.com/BookStackApp/BookStack/issues/4421))
227 * Added order/priority control within books via the API. Thanks to [@rouet](https://github.com/BookStackApp/BookStack/pull/4313). ([#4313](https://github.com/BookStackApp/BookStack/pull/4313), [#4298](https://github.com/BookStackApp/BookStack/issues/4298))
228 * Added host allow list option for server side requests like webhooks. ([#4410](https://github.com/BookStackApp/BookStack/issues/4410))
229 * Added additional comment-specific activities. ([#4389](https://github.com/BookStackApp/BookStack/pull/4389))
230 * Updated translations with latest Crowdin changes. ([#4380](https://github.com/BookStackApp/BookStack/pull/4380), [#4462](https://github.com/BookStackApp/BookStack/pull/4462))
231 * Fixed API docs caching failure when using DB cache driver. ([#4453](https://github.com/BookStackApp/BookStack/issues/4453))
232 * Fixed overly wide page view when using an RTL language. ([#4429](https://github.com/BookStackApp/BookStack/issues/4429))
233 * Fixed status cache check to work better for simultaneous requests. ([#4396](https://github.com/BookStackApp/BookStack/issues/4396))
234 * Fixed markdown editor scrolling on mobile screen sizes. ([#4466](https://github.com/BookStackApp/BookStack/issues/4466))
235
236 **Released in v23.06.2**
237
238 * Re-added shelf create permissions, now include a note to indicate permission usage. ([#4375](https://github.com/BookStackApp/BookStack/issues/4375))
239 * Fixed issue causing some delete-based action webhooks to create not-found errors. ([#4373](https://github.com/BookStackApp/BookStack/issues/4373))
240 * Updated translations with latest Crowdin changes. ([#4367](https://github.com/BookStackApp/BookStack/pull/4367))
241
242 **Released in v23.06.1**
243
244 * Updated MAIL_ENCRYPTION usage due to incorrectly forcing initial TLS usage. ([#4358](https://github.com/BookStackApp/BookStack/issues/4358))
245 * Updated translations with latest Crowdin changes. ([#4352](https://github.com/BookStackApp/BookStack/pull/4352))
246 * Fixed image updated timestamp not updating when gallery images are replaced. ([#4354](https://github.com/BookStackApp/BookStack/issues/4354))
247 * Fixed sort options breaking roles page load. ([#4350](https://github.com/BookStackApp/BookStack/issues/4350))
248 * Fixed IPv6 addresses in audit log spilling into date column. ([#4349](https://github.com/BookStackApp/BookStack/issues/4349))
249 * Fixed many inaccuracies in API example responses. Thanks to [@devdot](https://github.com/BookStackApp/BookStack/pull/4344). ([#4344](https://github.com/BookStackApp/BookStack/pull/4344))
250
251 ----
252
253 <span style="font-size: 0.8em;opacity:0.9;">Header Image Credits: <span>Photo by <a href="https://danb.me">Dan Brown</a></span></span>