Skip to content

Commit

Permalink
Release 0.27.0 (#1692)
Browse files Browse the repository at this point in the history
* Only require segment key for prod & staging builds

* Belatedly credit @FinnRG and @onalante-msft in changelog

* Fix html

* Indentation to make html tag pairs easier to identify

* Add 0.27.0 changelog

* Bump versions to 0.27.0

* make -C docs spelling
  • Loading branch information
gj authored Apr 3, 2023
1 parent 741e1d7 commit 3646574
Show file tree
Hide file tree
Showing 30 changed files with 148 additions and 69 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/docs-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.26.4
0.27.0
10 changes: 5 additions & 5 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
9 changes: 7 additions & 2 deletions docs/content/any/project/changelogs/2022-12-05.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
77 changes: 77 additions & 0 deletions docs/content/any/project/changelogs/2023-04-03.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion docs/examples/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions docs/spelling/allowed_words.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ABAC
AGPL
APIs
AWS
Abagail
Expand Down
19 changes: 9 additions & 10 deletions docs/themes/oso-tailwind/layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
{{ if (or (ne .Language.Lang "any") (or .Params.any (and (not (isset .Params "any")) .Parent.Params.any))) }}
<main id="content-wrapper" class="min-w-0 w-full flex-auto lg:static lg:max-h-full lg:overflow-visible">
<div class="w-full flex">
<div class="min-w-0 flex-auto px-4 sm:px-6 xl:px-8 pt-10 pb-24
lg:pb-16">
<div class="max-w-none min-w-0 flex-auto px-4 sm:px-6 xl:px-8">
<div class="flex pb-8 align-middle items-center">
<p class="font-bold mr-3">Pick a language:</p>
{{- partial "language-dropdown.html" . }}
<div class="min-w-0 flex-auto px-4 sm:px-6 xl:px-8 pt-10 pb-24 lg:pb-16">
<div class="max-w-none min-w-0 flex-auto px-4 sm:px-6 xl:px-8">
<div class="flex pb-8 align-middle items-center">
<p class="font-bold mr-3">Pick a language:</p>
{{- partial "language-dropdown.html" . }}
</div>
</div>
</div>
<article class="prose max-w-none min-w-0 flex-auto px-4 sm:px-6 xl:px-8 pb-24 lg:pb-16">
{{ .Content }}
</article>
Expand All @@ -24,9 +23,9 @@
<!--/ Post Content-->
{{ if not (isset .Params "no_one_on_one") }}
<div class="prose max-w-none min-w-0 flex-auto px-4 pt-12 sm:px-6 xl:px-8">
<h3>Connect with us on Slack</h3>
<p>If you have any questions, or just want to talk something through, jump into <a id="slack-join" href="https://join-slack.osohq.com/">Slack</a>. An Oso engineer or
one of the thousands of developers in the growing community will be happy to help.<p>
<h3>Connect with us on Slack</h3>
<p>If you have any questions, or just want to talk something through, jump into <a id="slack-join" href="https://join-slack.osohq.com/">Slack</a>. An Oso engineer or
one of the thousands of developers in the growing community will be happy to help.</p>
</div>
{{ end }}
</div>
Expand Down
23 changes: 11 additions & 12 deletions docs/themes/oso-tailwind/layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,31 @@
{{ if (or (ne .Language.Lang "any") (or .Params.any (and (not (isset .Params "any")) .Parent.Params.any))) }}
<main id="content-wrapper" class="min-w-0 w-full flex-auto lg:static lg:max-h-full lg:overflow-visible">
<div class="w-full flex">
<div class="min-w-0 flex-auto px-4 sm:px-6 xl:px-8 pt-10 pb-24 lg:pb-16">
<div class="min-w-0 flex-auto px-4 sm:px-6 xl:px-8 pt-10 pb-24 lg:pb-16">
<div class="max-w-none min-w-0 flex-auto px-4 sm:px-6 xl:px-8">
<div class="flex pb-8 align-middle items-center">
<p class="font-bold mr-3">Pick a language: </p>{{- partial "language-dropdown.html" . }}
</div>
<p class="font-bold mr-3">Pick a language: </p>{{- partial "language-dropdown.html" . }}
</div>
</div>
<article class="prose max-w-none min-w-0 flex-auto px-4 sm:px-6 xl:px-8 pb-24 lg:pb-16">
{{ .Content }}
{{ if not (isset .Params "no_one_on_one") }}
<h3>Connect with us on Slack</h3>
<h3>Connect with us on Slack</h3>
<p>If you have any questions, or just want to talk something through, jump into <a id="slack-join" href="https://join-slack.osohq.com/">Slack</a>. An Oso engineer or
one of the thousands of developers in the growing community will be happy to help.<p>
</div>
one of the thousands of developers in the growing community will be happy to help.</p>
{{ end }}
</article>
{{ $currentPage := . }}
{{ range $pageIdx, $page := .CurrentSection.RegularPages }}
{{ 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") }}
<a class="flex justify-end" href="{{$nextRegPage.RelPermalink}}">
<button class="btn btn-purple">
Read next: {{$nextRegPage.Title}}
</button>
</a>
{{ end }}
<a class="flex justify-end" href="{{$nextRegPage.RelPermalink}}">
<button class="btn btn-purple">
Read next: {{$nextRegPage.Title}}
</button>
</a>
{{ end }}
{{ end }}
{{ end }}
<!--/ Post Content-->
Expand Down
2 changes: 1 addition & 1 deletion languages/java/oso/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<groupId>com.osohq</groupId>
<artifactId>oso</artifactId>
<!-- oso_version --><version>0.26.4</version>
<!-- oso_version --><version>0.27.0</version>

<distributionManagement>
<snapshotRepository>
Expand Down
2 changes: 1 addition & 1 deletion languages/js/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion languages/python/django-oso/django_oso/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion languages/python/django-oso/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
oso~=0.26.2
oso~=0.27.0
django>=2.2
4 changes: 2 additions & 2 deletions languages/python/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion languages/python/flask-oso/flask_oso/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.26.0"
__version__ = "0.27.0"

from .decorators import authorize, skip_authorization
from .flask_oso import FlaskOso
Expand Down
2 changes: 1 addition & 1 deletion languages/python/flask-oso/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
oso~=0.26.0
oso~=0.27.0
flask==2.1.0
werkzeug==2.0.3
2 changes: 1 addition & 1 deletion languages/python/oso/oso/oso.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Core oso functionality"""

__version__ = "0.26.4"
__version__ = "0.27.0"

import os
from typing import Any, List, Set, Type
Expand Down
2 changes: 1 addition & 1 deletion languages/python/sqlalchemy-oso/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
oso~=0.26.2
oso~=0.27.0
SQLAlchemy>=1.3.17,<1.5
packaging>=21.3,<24.0
2 changes: 1 addition & 1 deletion languages/python/sqlalchemy-oso/sqlalchemy_oso/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.26.3"
__version__ = "0.27.0"


from .auth import register_models
Expand Down
2 changes: 1 addition & 1 deletion languages/ruby/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
oso-oso (0.26.4)
oso-oso (0.27.0)
ffi (~> 1.0)

GEM
Expand Down
2 changes: 1 addition & 1 deletion languages/ruby/lib/oso/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Oso
VERSION = '0.26.4'
VERSION = '0.27.0'
end
Loading

0 comments on commit 3646574

Please sign in to comment.