Compare commits

...
Author SHA1 Message Date
dependabot[bot] a93b4d3972 👷 Bump dessant/lock-threads from 4 to 5 (#4910)
Bumps [dessant/lock-threads](https://github.com/dessant/lock-threads) from 4 to 5.
- [Release notes](https://github.com/dessant/lock-threads/releases)
- [Changelog](https://github.com/dessant/lock-threads/blob/main/CHANGELOG.md)
- [Commits](https://github.com/dessant/lock-threads/compare/v4...v5)

---
updated-dependencies:
- dependency-name: dessant/lock-threads
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-22 17:16:58 +01:00
dependabot[bot] b141f79669 👷 Bump actions/github-script from 6 to 7 (#4909)
Bumps [actions/github-script](https://github.com/actions/github-script) from 6 to 7.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-22 17:15:57 +01:00
Gina Häußge dfe2893049 💸 Update FUNDING.yml
Add ko-fi and liberapay links
2023-10-18 15:05:39 +02:00
Gina Häußge f325791ec6 ⏪ Revert the addition of 3.11.2 to test install matrix 2023-10-12 14:14:35 +02:00
Gina Häußge df257eca83 👷 Fix a typo 2023-10-12 10:47:31 +02:00
Gina Häußge 74990e8ee6 👷 Add bookworm python 3 version to test matrix 2023-10-12 10:46:01 +02:00
Gina Häußge 506648c152 🔖 Preparing release of 1.9.3 2023-10-09 14:32:34 +02:00
Gina Häußge d0072cff89 Merge branch 'bug/gcode_script_vuln' into staging/bugfix 2023-10-09 14:31:21 +02:00
Gina Häußge 2b7c01563f 📌 Pin pydantic to 1.10.12
Solves #4893 by working around pydantic/pydantic#7689
2023-10-09 10:49:37 +02:00
Gina Häußge 7bfd77d9eb Merge branch 'master' into staging/bugfix 2023-10-09 10:19:41 +02:00
Gina Häußge 3bde48a9fb 🔒️ Use sandboxed jinja env for gcode scripts
Without this patch, an attacker with admin rights could configure
a specially crafted GCODE Script to allow for code execution during
rendering of that script. An attacker might use this to extract data
managed by OctoPrint, or manipulate data managed by OctoPrint,
as well as execute arbitrary commands with the rights of the
OctoPrint process on the server system.

Fixes a reported security issue, CVE pending.
2023-08-31 16:35:08 +02:00
Sven Richardsandsrlinux 87bea3c7c0 🐛 Fix extrusion rate not being converted to int (#4860)
Closes  #4849

Co-authored-by: srlinux <{ID}+{username}@users.noreply.github.com>
2023-08-28 16:36:59 +02:00
Gina Häußge c59c161d96 🔖 staging/bugfix is now 1.9.3.dev 2023-07-18 13:24:58 +02:00
11 changed files with 21 additions and 19 deletions

No files matched your search

+2
View File
@@ -1,5 +1,7 @@
# These are supported funding model platforms # These are supported funding model platforms
github: [foosel] github: [foosel]
ko_fi: OctoPrint
patreon: foosel patreon: foosel
liberapay: foosel
custom: https://octoprint.org/support-octoprint/ custom: https://octoprint.org/support-octoprint/
+1 -1
View File
@@ -10,7 +10,7 @@ jobs:
name: 🔒 Lock issues & PRs closed over a year name: 🔒 Lock issues & PRs closed over a year
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: dessant/lock-threads@v4 - uses: dessant/lock-threads@v5
with: with:
github-token: ${{ github.token }} github-token: ${{ github.token }}
issue-comment: "" issue-comment: ""
+2 -2
View File
@@ -7,7 +7,7 @@ jobs:
issue-automation: issue-automation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/github-script@v6 - uses: actions/github-script@v7
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
script: | script: |
@@ -72,7 +72,7 @@ jobs:
# with: # with:
# repo-token: ${{ secrets.GITHUB_TOKEN }} # repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/github-script@v6 - uses: actions/github-script@v7
env: env:
REMINDER: > REMINDER: >
Hi @${{ github.event.issue.user.login }}! Hi @${{ github.event.issue.user.login }}!
+1 -1
View File
@@ -7,7 +7,7 @@ jobs:
linkifyBundles: linkifyBundles:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/github-script@v6 - uses: actions/github-script@v7
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
script: | script: |
+1 -1
View File
@@ -12,7 +12,7 @@ jobs:
with: with:
repo-token: "${{ secrets.GITHUB_TOKEN }}" repo-token: "${{ secrets.GITHUB_TOKEN }}"
- uses: actions/github-script@v6 - uses: actions/github-script@v7
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
script: | script: |
+2 -2
View File
@@ -26,8 +26,8 @@ improve/.* 1.9.0 fa2c4680cca0d1d6b46e6c1ed68ceea4d9b79afb pep440-dev
# staging/bugfix is the branch for preparation of the 1.9.x bugfix releases # staging/bugfix is the branch for preparation of the 1.9.x bugfix releases
# so are any bug/... branches # so are any bug/... branches
staging/bugfix 1.9.2 1d519a21702ea180c026929da2a6e17079470b9a pep440-dev staging/bugfix 1.9.3 f027aaa7300f70b046525a49245b33c43dd198c1 pep440-dev
bug/.* 1.9.2 1d519a21702ea180c026929da2a6e17079470b9a pep440-dev bug/.* 1.9.3 f027aaa7300f70b046525a49245b33c43dd198c1 pep440-dev
# staging/maintenance is currently the branch for preparation of 1.9.0rc6 # staging/maintenance is currently the branch for preparation of 1.9.0rc6
# so is regressionfix/... # so is regressionfix/...
+4 -6
View File
@@ -10,7 +10,6 @@ thanks to everyone who contributed!
* 3DPrinterOS * 3DPrinterOS
* Al Mucci * Al Mucci
* Ash King * Ash King
* Ben Fritsch
* BigTreeTech * BigTreeTech
* Boris Hussein * Boris Hussein
* Brad Jackson * Brad Jackson
@@ -18,13 +17,12 @@ thanks to everyone who contributed!
* Christian Wolf * Christian Wolf
* Christian Würthner * Christian Würthner
* Christoph Sigrist * Christoph Sigrist
* Creality3D
* DeltaMaker 3D Printers * DeltaMaker 3D Printers
* Dennis Breining * Dennis Breining
* Dima Gorbenko * Dima Gorbenko
* Douglas Floyd
* Ed Crump * Ed Crump
* Ernesto Martinez * Ernesto Martinez
* Fiberpunk
* Franziska Kunsmann * Franziska Kunsmann
* Hog Duske * Hog Duske
* Jacob Renstrom * Jacob Renstrom
@@ -41,10 +39,10 @@ thanks to everyone who contributed!
* Lachlan Bell * Lachlan Bell
* Lefteris Lertas * Lefteris Lertas
* LulzBot * LulzBot
* Makerbase
* Makespace Madrid * Makespace Madrid
* Mark Greenwald * Mark Greenwald
* Mark Walker * Mark Walker
* Martin Majewski
* Michael Aumock * Michael Aumock
* Michael Badagliacco * Michael Badagliacco
* Mike Labanov * Mike Labanov
@@ -52,7 +50,6 @@ thanks to everyone who contributed!
* Norman Jaffe * Norman Jaffe
* Obico * Obico
* Ory Weaver * Ory Weaver
* Peopoly
* Pete Barnwell * Pete Barnwell
* Raise3D * Raise3D
* Randy C. Will * Randy C. Will
@@ -64,6 +61,7 @@ thanks to everyone who contributed!
* Stefan Krister * Stefan Krister
* Steve Dougherty * Steve Dougherty
* Steve Thompson * Steve Thompson
* Tideline 3D
* Ulrich Kempken * Ulrich Kempken
and 1970 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [GitHub Sponsors](https://github.com/users/foosel/sponsorship)! and 1918 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [GitHub Sponsors](https://github.com/users/foosel/sponsorship)!
+1 -1
View File
@@ -61,7 +61,7 @@ core_deps = [
"pathvalidate>=2.5.2,<3", "pathvalidate>=2.5.2,<3",
"pkginfo>=1.9.6,<2", "pkginfo>=1.9.6,<2",
"psutil>=5.9.4,<6", "psutil>=5.9.4,<6",
"pydantic>=1.10.7,<2", "pydantic==1.10.12", # to be kept pinned until https://github.com/pydantic/pydantic/issues/7689 is resolved
"pylru>=1.2.1,<2", "pylru>=1.2.1,<2",
"pyserial>=3.5,<4", "pyserial>=3.5,<4",
"PyYAML>=6.0.1,<7", # changelog at https://github.com/yaml/pyyaml/blob/master/CHANGES "PyYAML>=6.0.1,<7", # changelog at https://github.com/yaml/pyyaml/blob/master/CHANGES
@@ -18,10 +18,10 @@ from octoprint.util.version import (
) )
SENTRY_URL_SERVER = ( SENTRY_URL_SERVER = (
"https://ba4e3d61c37a4d219e1cd81bdc1417a7@o118517.ingest.sentry.io/1373987" "https://f723fd2a91da40dbae1148193ea49001@o118517.ingest.sentry.io/1373987"
) )
SENTRY_URL_COREUI = ( SENTRY_URL_COREUI = (
"https://2382252761de4d318e5f83be0816efaa@o118517.ingest.sentry.io/1374096" "https://a115318be6faed605c6bfde4e183b7a0@o118517.ingest.sentry.io/1374096"
) )
SETTINGS_DEFAULTS = { SETTINGS_DEFAULTS = {
+1
View File
@@ -666,6 +666,7 @@ class PrinterProfileManager:
("axes", "x", "speed"), ("axes", "x", "speed"),
("axes", "y", "speed"), ("axes", "y", "speed"),
("axes", "z", "speed"), ("axes", "z", "speed"),
("axes", "e", "speed"),
): ):
try: try:
convert_value(profile, path, int) convert_value(profile, path, int)
+4 -3
View File
@@ -593,9 +593,10 @@ class Settings:
return folder return folder
def _init_script_templating(self): def _init_script_templating(self):
from jinja2 import BaseLoader, ChoiceLoader, Environment, TemplateNotFound from jinja2 import BaseLoader, ChoiceLoader, TemplateNotFound
from jinja2.ext import Extension from jinja2.ext import Extension
from jinja2.nodes import Include from jinja2.nodes import Include
from jinja2.sandbox import SandboxedEnvironment
from octoprint.util.jinja import FilteredFileSystemLoader from octoprint.util.jinja import FilteredFileSystemLoader
@@ -664,9 +665,9 @@ class Settings:
def list_templates(self): def list_templates(self):
return self._default.list_templates() return self._default.list_templates()
class RelEnvironment(Environment): class RelEnvironment(SandboxedEnvironment):
def __init__(self, prefix_sep=":", *args, **kwargs): def __init__(self, prefix_sep=":", *args, **kwargs):
Environment.__init__(self, *args, **kwargs) super().__init__(*args, **kwargs)
self._prefix_sep = prefix_sep self._prefix_sep = prefix_sep
def join_path(self, template, parent): def join_path(self, template, parent):