Sam Scott

Results 23 issues of Sam Scott

Given a schema like: ``` { "$schema": "https://json-schema.org/draft/2019-09/schema", "title": "test", "definitions": { "Foo1": { "type": "object", "required": [ "bar" ], "properties": { "bar": { "$ref": "#/definitions/Bar" } } }, "Foo2":...

Using the `-i` command line switch with an identity file requires providing the _private_ SSH key, and proceeds to derive the public key from it. Unless I'm missing how the...

PR checklist: - [ ] Added changelog entry.

Docs

[Ruby docs](https://docs.osohq.com/ruby/reference/polar/classes.html#nil) state that you can do `x != nil` but this errors with unsupported operation. The workaround is to use `not x = nil`. But we should improve the...

languages/ruby

With this policy: ``` f(x: Integer); f(1); g(1); g(x: Integer); ``` You get: ``` query> f(1) [debug] QUERY: f(1), BINDINGS: {} [debug] APPLICABLE_RULES: [debug] f(x: Integer); [debug] f(1); ... query>...

Possible uses: - Indexing into a list `list = [1, 2, 3] and list[2] = 3` - Lookup an attribute on a dictionary/instance dynamically `dict[key]` Currently, you can almost workaround...

polar

It's quite common that when writing policies for implement route-level access control, that it could be useful to check paths using a regex. There's also possibly a less generic solution...

e.g. ``` allow(user, action, resource) if user.role = "admin_" + resource.name; ```

PR checklist: - [ ] Added changelog entry.

We currently do tests of m1 builds by running self-hosted runners on m1 machines (e.g. my laptop). I had to do this recently, and here were the steps I did...