diff --git a/.github/workflows/docs-preview.yml b/.github/workflows/docs-preview.yml index 1755fb6d79..e485b8058f 100644 --- a/.github/workflows/docs-preview.yml +++ b/.github/workflows/docs-preview.yml @@ -80,8 +80,6 @@ jobs: # This slows down releasing. # Try to retry, and get some more info about why the flake is happening. - name: Build docs for CI preview - env: - HUGO_SEGMENT_API_KEY: "" uses: nick-invision/retry@v2 with: max_attempts: 2 diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index db13b62b0c..a546c43554 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -6,16 +6,16 @@ on: description: "docs s3 path (docs.oso.dev or docs-preview.oso.dev)" oso_version: description: "oso release to build docs for" - default: "0.26.4" # oso_version + default: "0.27.0" # oso_version flask_oso_version: description: "flask oso release to build docs for" - default: "0.26.0" # flask_oso_version + default: "0.27.0" # flask_oso_version django_oso_version: description: "django oso release to build docs for" - default: "0.26.2" # django_oso_version + default: "0.27.0" # django_oso_version sqlalchemy_oso_version: description: "sqlalchemy oso release to build docs for" - default: "0.26.3" # sqlalchemy_oso_version + default: "0.27.0" # sqlalchemy_oso_version jobs: publish: name: Publish docs diff --git a/Cargo.lock b/Cargo.lock index 1c028a007c..73a8f153c3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -729,7 +729,7 @@ checksum = "3baf96e39c5359d2eb0dd6ccb42c62b91d9678aa68160d261b9e0ccbf9e9dea9" [[package]] name = "oso" -version = "0.26.4" +version = "0.27.0" dependencies = [ "anyhow", "clap 3.2.23", @@ -753,7 +753,7 @@ dependencies = [ [[package]] name = "oso-derive" -version = "0.26.4" +version = "0.27.0" dependencies = [ "quote", "syn", @@ -867,7 +867,7 @@ dependencies = [ [[package]] name = "polar-c-api" -version = "0.26.4" +version = "0.27.0" dependencies = [ "cbindgen", "polar-core", @@ -877,7 +877,7 @@ dependencies = [ [[package]] name = "polar-core" -version = "0.26.4" +version = "0.27.0" dependencies = [ "criterion", "indoc", @@ -897,7 +897,7 @@ dependencies = [ [[package]] name = "polar-language-server" -version = "0.26.4" +version = "0.27.0" dependencies = [ "console_error_panic_hook", "js-sys", @@ -911,7 +911,7 @@ dependencies = [ [[package]] name = "polar-wasm-api" -version = "0.26.4" +version = "0.27.0" dependencies = [ "console_error_panic_hook", "js-sys", diff --git a/VERSION b/VERSION index 12a91df0e0..1b58cc1018 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.26.4 +0.27.0 diff --git a/docs/Makefile b/docs/Makefile index 9524b18bc3..42f2d675ad 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -69,17 +69,17 @@ webpack-deps: .make.webpack-deps.installed cd themes/oso-webpack && npm install && npm run-script build touch $@ -build: install api_docs clean require-HUGO_SEGMENT_API_KEY +build: install api_docs clean HUGO_ENV=production hugo -b https://docs-preview.oso.dev/ -build-prod: install api_docs require-HUGO_SEGMENT_API_KEY +build-prod: install api_docs cd themes/oso-webpack && npm run-script build-prod HUGO_ENV=production hugo -b https://docs.osohq.com/ # Look for the s3deploy binary: https://github.com/bep/s3deploy S3DEPLOY := $(shell command -v s3deploy 2> /dev/null) -deploy-ci: install api_docs clean require-HUGO_SEGMENT_API_KEY +deploy-ci: install api_docs clean ifndef S3DEPLOY $(error "you need to install s3deploy to deploy the docs") endif @@ -103,11 +103,11 @@ build-search: require-algolia-vars: require-ALGOLIA_APPLICATION_ID require-ALGOLIA_ADMIN_API_KEY require-ALGOLIA_INDEX ## This is the entry for all doc stuff for preview -ci-preview-docs: require-ALGOLIA_ADMIN_API_KEY build build-search +ci-preview-docs: require-ALGOLIA_ADMIN_API_KEY build build-search require-HUGO_SEGMENT_API_KEY ./searcher -index='preview_OSODOCS' -app_id='KROZ8F05YT' ## This is the entry for all doc stuff for production -ci-prod-docs: require-ALGOLIA_ADMIN_API_KEY build-prod build-search +ci-prod-docs: require-ALGOLIA_ADMIN_API_KEY build-prod build-search require-HUGO_SEGMENT_API_KEY ./searcher -index='prod_OSODOCS' -app_id='KROZ8F05YT' search: require-algolia-vars build-prod build-search diff --git a/docs/content/any/project/changelogs/2022-12-05.md b/docs/content/any/project/changelogs/2022-12-05.md index a87e639548..6485aed420 100644 --- a/docs/content/any/project/changelogs/2022-12-05.md +++ b/docs/content/any/project/changelogs/2022-12-05.md @@ -19,9 +19,14 @@ description: >- Thanks to [`@kkirsche`](https://github.com/kkirsche) help with this! +#### Other bugs & improvements + +- Thank you to [`FinnRG`](https://github.com/FinnRG) and + [`onalante-msft`](https://github.com/onalante-msft) for updating dependencies + across the core, the C API crate, and the Rust language library. + ### Java #### Other bugs & improvements -- Fixed a potential memory leak in the Java client library. - +- Fixed a potential memory leak in the Java client library. diff --git a/docs/content/any/project/changelogs/2023-04-03.md b/docs/content/any/project/changelogs/2023-04-03.md new file mode 100644 index 0000000000..4d97853123 --- /dev/null +++ b/docs/content/any/project/changelogs/2023-04-03.md @@ -0,0 +1,77 @@ +--- +title: Release 2023-04-03 +menuTitle: 2023-04-03 +any: true +description: >- + Changelog for Release 2023-04-03 (oso 0.27.0, django-oso 0.27.0, flask-oso + 0.27.0, sqlalchemy-oso 0.27.0) containing new features, bug fixes, and more. +--- + +## `oso` 0.27.0 + +### Core + +#### Other bugs & improvements + +- Removed the development dependency on the AGPL-licensed `permute` crate, + replacing it with the MIT-or-Apache-2.0-licensed `permutohedron` crate. + Thanks to [`FinnRG`](https://github.com/FinnRG)! + +### Go + +#### New features + +##### Linux ARM64 platform support + +Support for using Oso's Go library in Linux ARM64 environments has landed +thanks to [`omusil24`](https://github.com/omusil24)! + +### Python + +#### Breaking changes + +{{% callout "Warning" "orange" %}} + This release contains breaking changes. Be sure to follow migration steps + before upgrading. +{{% /callout %}} + +- Dropped support for end-of-life Python 3.6 and upgraded the Python code to + 3.7+ standards. Thanks to [`kkirsche`](https://github.com/kkirsche) for the + contribution! + +#### Other bugs & improvements + +- Loosened the version constraint on the `packaging` dependency. Thanks again + to [`kkirsche`](https://github.com/kkirsche)! + +### Java + +#### Breaking changes + +{{% callout "Warning" "orange" %}} + This release contains breaking changes. Be sure to follow migration steps + before upgrading. +{{% /callout %}} + +- Dropped support for end-of-life Java 11. + +## `django-oso` 0.27.0 + +### Other bugs & improvements + +- Updated to use automatic `AppConfig` discovery for Django 3.2+, silencing a + warning. Thanks to [`devmonkey22`](https://github.com/devmonkey22) for the + contribution! +- Bumped the minimum required version of the `oso` dependency. + +## `flask-oso` 0.27.0 + +Bumped the minimum required version of the `oso` dependency. + +## `sqlalchemy-oso` 0.27.0 + +### Other bugs & improvements + +- Fixed crash when trying to look up a non-existent `"entity"` property. Thanks + to [`snstanton`](https://github.com/snstanton) for the contribution! +- Bumped the minimum required version of the `oso` dependency. diff --git a/docs/examples/Makefile b/docs/examples/Makefile index 8ea5402ed8..5b9a0475d8 100644 --- a/docs/examples/Makefile +++ b/docs/examples/Makefile @@ -7,7 +7,7 @@ JS_DIR := $(OSO_ROOT)/languages/js RUBY_DIR := $(OSO_ROOT)/languages/ruby # Needed for tests -JAVA_PACKAGE_JAR_PATH := $(JAVA_DIR)/oso/target/oso-0.26.4.jar +JAVA_PACKAGE_JAR_PATH := $(JAVA_DIR)/oso/target/oso-0.27.0.jar # Note: if you are using bundler in a sub-makefile (in a docs test for example), # you need to add `unexport BUNDLE_GEMFILE` to that makefile. Otherwise this diff --git a/docs/spelling/allowed_words.txt b/docs/spelling/allowed_words.txt index 73debba75f..57c3b97d38 100644 --- a/docs/spelling/allowed_words.txt +++ b/docs/spelling/allowed_words.txt @@ -1,4 +1,5 @@ ABAC +AGPL APIs AWS Abagail diff --git a/docs/themes/oso-tailwind/layouts/_default/list.html b/docs/themes/oso-tailwind/layouts/_default/list.html index 087234330e..0a4f395f5d 100644 --- a/docs/themes/oso-tailwind/layouts/_default/list.html +++ b/docs/themes/oso-tailwind/layouts/_default/list.html @@ -3,14 +3,13 @@ {{ if (or (ne .Language.Lang "any") (or .Params.any (and (not (isset .Params "any")) .Parent.Params.any))) }}
-
-
-
-

Pick a language:

- {{- partial "language-dropdown.html" . }} +
+
+
+

Pick a language:

+ {{- partial "language-dropdown.html" . }} +
-
{{ .Content }}
@@ -24,9 +23,9 @@ {{ if not (isset .Params "no_one_on_one") }}
-

Connect with us on Slack

-

If you have any questions, or just want to talk something through, jump into Slack. An Oso engineer or - one of the thousands of developers in the growing community will be happy to help.

+

Connect with us on Slack

+

If you have any questions, or just want to talk something through, jump into Slack. An Oso engineer or + one of the thousands of developers in the growing community will be happy to help.

{{ end }}
diff --git a/docs/themes/oso-tailwind/layouts/_default/single.html b/docs/themes/oso-tailwind/layouts/_default/single.html index fcb9ad24fc..05f9098434 100644 --- a/docs/themes/oso-tailwind/layouts/_default/single.html +++ b/docs/themes/oso-tailwind/layouts/_default/single.html @@ -3,19 +3,18 @@ {{ if (or (ne .Language.Lang "any") (or .Params.any (and (not (isset .Params "any")) .Parent.Params.any))) }}
-
+
-

Pick a language:

{{- partial "language-dropdown.html" . }} -
+

Pick a language:

{{- partial "language-dropdown.html" . }}
+
{{ .Content }} {{ if not (isset .Params "no_one_on_one") }} -

Connect with us on Slack

+

Connect with us on Slack

If you have any questions, or just want to talk something through, jump into Slack. An Oso engineer or - one of the thousands of developers in the growing community will be happy to help.

-

+ one of the thousands of developers in the growing community will be happy to help.

{{ end }} {{ $currentPage := . }} @@ -23,12 +22,12 @@

Connect with us on Slack

{{ if and (eq $currentPage $page) (lt (add $pageIdx 1) (len .CurrentSection.RegularPages)) }} {{ $nextRegPage := index .CurrentSection.RegularPages (add $pageIdx 1) }} {{ if not (eq $nextRegPage.Params._build.render "never") }} - - - - {{ end }} + + + + {{ end }} {{ end }} {{ end }} diff --git a/languages/java/oso/pom.xml b/languages/java/oso/pom.xml index 43fb8960a9..1df9e689bd 100644 --- a/languages/java/oso/pom.xml +++ b/languages/java/oso/pom.xml @@ -12,7 +12,7 @@ com.osohq oso - 0.26.4 + 0.27.0 diff --git a/languages/js/package.json b/languages/js/package.json index 361222cf2a..6df7dfe193 100644 --- a/languages/js/package.json +++ b/languages/js/package.json @@ -1,6 +1,6 @@ { "name": "oso", - "version": "0.26.4", + "version": "0.27.0", "description": "oso authorization library.", "bin": "bin/repl.js", "main": "dist/src/index.js", diff --git a/languages/python/django-oso/django_oso/__init__.py b/languages/python/django-oso/django_oso/__init__.py index 45a722f144..fdca3dc745 100644 --- a/languages/python/django-oso/django_oso/__init__.py +++ b/languages/python/django-oso/django_oso/__init__.py @@ -3,7 +3,7 @@ from .oso import Oso -__version__ = "0.26.2" +__version__ = "0.27.0" if django.VERSION < (3, 2): default_app_config = "django_oso.apps.DjangoOsoConfig" diff --git a/languages/python/django-oso/requirements.txt b/languages/python/django-oso/requirements.txt index 13b03c6fa9..18f1370d52 100644 --- a/languages/python/django-oso/requirements.txt +++ b/languages/python/django-oso/requirements.txt @@ -1,2 +1,2 @@ -oso~=0.26.2 +oso~=0.27.0 django>=2.2 diff --git a/languages/python/docs/conf.py b/languages/python/docs/conf.py index dfcfd326bf..c43b351d36 100644 --- a/languages/python/docs/conf.py +++ b/languages/python/docs/conf.py @@ -42,8 +42,8 @@ project = "oso" copyright = "2020-2021 Oso Security, Inc" author = "oso" -version = "0.26.4" -release = "0.26.4" +version = "0.27.0" +release = "0.27.0" # -- General configuration --------------------------------------------------- diff --git a/languages/python/flask-oso/flask_oso/__init__.py b/languages/python/flask-oso/flask_oso/__init__.py index 6eab76c188..4f77015f7d 100644 --- a/languages/python/flask-oso/flask_oso/__init__.py +++ b/languages/python/flask-oso/flask_oso/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.26.0" +__version__ = "0.27.0" from .decorators import authorize, skip_authorization from .flask_oso import FlaskOso diff --git a/languages/python/flask-oso/requirements.txt b/languages/python/flask-oso/requirements.txt index 22cc7917d8..d298232197 100644 --- a/languages/python/flask-oso/requirements.txt +++ b/languages/python/flask-oso/requirements.txt @@ -1,3 +1,3 @@ -oso~=0.26.0 +oso~=0.27.0 flask==2.1.0 werkzeug==2.0.3 diff --git a/languages/python/oso/oso/oso.py b/languages/python/oso/oso/oso.py index 2881c583d6..0622999847 100644 --- a/languages/python/oso/oso/oso.py +++ b/languages/python/oso/oso/oso.py @@ -1,6 +1,6 @@ """Core oso functionality""" -__version__ = "0.26.4" +__version__ = "0.27.0" import os from typing import Any, List, Set, Type diff --git a/languages/python/sqlalchemy-oso/requirements.txt b/languages/python/sqlalchemy-oso/requirements.txt index fe65cbb5bb..677d5055bf 100644 --- a/languages/python/sqlalchemy-oso/requirements.txt +++ b/languages/python/sqlalchemy-oso/requirements.txt @@ -1,3 +1,3 @@ -oso~=0.26.2 +oso~=0.27.0 SQLAlchemy>=1.3.17,<1.5 packaging>=21.3,<24.0 diff --git a/languages/python/sqlalchemy-oso/sqlalchemy_oso/__init__.py b/languages/python/sqlalchemy-oso/sqlalchemy_oso/__init__.py index 30f79ecb29..477a02f5ce 100644 --- a/languages/python/sqlalchemy-oso/sqlalchemy_oso/__init__.py +++ b/languages/python/sqlalchemy-oso/sqlalchemy_oso/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.26.3" +__version__ = "0.27.0" from .auth import register_models diff --git a/languages/ruby/Gemfile.lock b/languages/ruby/Gemfile.lock index 202ff2e020..39bb76e98b 100644 --- a/languages/ruby/Gemfile.lock +++ b/languages/ruby/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - oso-oso (0.26.4) + oso-oso (0.27.0) ffi (~> 1.0) GEM diff --git a/languages/ruby/lib/oso/version.rb b/languages/ruby/lib/oso/version.rb index e4737d8fa1..acece74c2f 100644 --- a/languages/ruby/lib/oso/version.rb +++ b/languages/ruby/lib/oso/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Oso - VERSION = '0.26.4' + VERSION = '0.27.0' end diff --git a/languages/rust/oso-derive/Cargo.toml b/languages/rust/oso-derive/Cargo.toml index c96cb871ab..75293a086a 100644 --- a/languages/rust/oso-derive/Cargo.toml +++ b/languages/rust/oso-derive/Cargo.toml @@ -6,7 +6,7 @@ license = "Apache-2.0" homepage = "https://github.com/osohq/oso" readme = "README.md" -version = "0.26.4" +version = "0.27.0" edition = "2021" diff --git a/languages/rust/oso/Cargo.toml b/languages/rust/oso/Cargo.toml index d9d2d1239a..3a52d7d03f 100644 --- a/languages/rust/oso/Cargo.toml +++ b/languages/rust/oso/Cargo.toml @@ -6,7 +6,7 @@ license = "Apache-2.0" name = "oso" readme = "README.md" -version = "0.26.4" +version = "0.27.0" edition = "2021" @@ -30,8 +30,8 @@ required-features = ["anyhow"] [dependencies] impl-trait-for-tuples = "0.2.1" maplit = "1.0.2" -oso-derive = { path = "../oso-derive", version = "=0.26.4", optional = true } -polar-core = { path = "../../../polar-core", version = "=0.26.4" } +oso-derive = { path = "../oso-derive", version = "=0.27.0", optional = true } +polar-core = { path = "../../../polar-core", version = "=0.27.0" } thiserror = "1.0.30" tracing = { version = "0.1.29", features = ["log"] } @@ -51,7 +51,7 @@ uuid-10 = { package = "uuid", version = ">=1.0.0, <2.0.0", optional = true } [dev-dependencies] anyhow = "1.0.44" criterion = { version = "0.3.5", default-features = false } -oso-derive = { path = "../oso-derive", version = "=0.26.4" } +oso-derive = { path = "../oso-derive", version = "=0.27.0" } static_assertions = "1.1.0" tempfile = "3.2.0" tracing-subscriber = { version = "0.3.1", default-features = false, features = [ diff --git a/polar-c-api/Cargo.toml b/polar-c-api/Cargo.toml index c11448ad99..1b31f448aa 100644 --- a/polar-c-api/Cargo.toml +++ b/polar-c-api/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "polar-c-api" -version = "0.26.4" +version = "0.27.0" authors = ["Oso Security, Inc. "] edition = "2021" @@ -10,7 +10,7 @@ crate-type = ["lib", "staticlib", "cdylib"] bench = false [dependencies] -polar-core = { path = "../polar-core", version = "=0.26.4" } +polar-core = { path = "../polar-core", version = "=0.27.0" } serde = "1.0" serde_json = "1.0.61" diff --git a/polar-core/Cargo.toml b/polar-core/Cargo.toml index 76c6b0373a..0ff3e09a34 100644 --- a/polar-core/Cargo.toml +++ b/polar-core/Cargo.toml @@ -6,7 +6,7 @@ license = "Apache-2.0" homepage = "https://github.com/osohq/oso" readme = "README.md" -version = "0.26.4" +version = "0.27.0" edition = "2021" diff --git a/polar-language-server/Cargo.toml b/polar-language-server/Cargo.toml index daf7b877c9..66b685b5d8 100644 --- a/polar-language-server/Cargo.toml +++ b/polar-language-server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "polar-language-server" -version = "0.26.4" +version = "0.27.0" authors = ["Oso Security, Inc. "] edition = "2021" @@ -12,7 +12,7 @@ bench = false console_error_panic_hook = "0.1.6" js-sys = "0.3.53" lsp-types = "0.90.0" -polar-core = { path = "../polar-core", version = "=0.26.4" } +polar-core = { path = "../polar-core", version = "=0.27.0" } serde = { version = "1.0", features = ["derive"] } serde-wasm-bindgen = "0.3.1" wasm-bindgen = "0.2.76" diff --git a/polar-wasm-api/Cargo.toml b/polar-wasm-api/Cargo.toml index 1529562bfa..3ee255b229 100644 --- a/polar-wasm-api/Cargo.toml +++ b/polar-wasm-api/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "polar-wasm-api" -version = "0.26.4" +version = "0.27.0" authors = ["Oso Security, Inc. "] edition = "2021" @@ -11,7 +11,7 @@ bench = false [dependencies] console_error_panic_hook = "0.1.6" js-sys = "0.3.53" -polar-core = { path = "../polar-core", version = "=0.26.4" } +polar-core = { path = "../polar-core", version = "=0.27.0" } serde = { version = "1.0.119", features = ["rc"] } serde-wasm-bindgen = "0.3.1" wasm-bindgen = "0.2.76" diff --git a/vscode/oso/package.json b/vscode/oso/package.json index 0deab6cc64..15bff2db33 100644 --- a/vscode/oso/package.json +++ b/vscode/oso/package.json @@ -1,6 +1,6 @@ { "private": true, - "version": "0.26.4", + "version": "0.27.0", "name": "oso", "displayName": "Oso", "author": "Oso Security Inc.",