Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Minimalistic Headless CMS
The CMS models using a graphql file schema.graphql
in the root directory. here you can see a simple example:
enum UserGroup {
Admin # default
User # default
Editor
Author
}
type User
@model
@authorization(
READ: "$user.group = Editor || $user.id = $this.id"
CREATE: "true"
UPDATE: "$user.group = Editor || $user.id = $this.id"
DELETE: "$user.group = Editor || $user.id = $this.id"
) {
id: ID! @auto
createdAt: DateTime! @createdAt
updatedAt: DateTime! @updatedAt
email: Email! @unique
phone: PhoneNumber @unique
password: Password! @validation(length: { min: 12, max: 25 })
group: UserGroup!
name: String!
family: String!
avatar: File @upload(accept: "imagee/*", size: { max: "5MB", min: "10KB" })
}
type Post
@model
@authorization(
READ: "$this.published || $user.group = Editor || $user.id = $this.author"
CREATE: "$user.group in [Editor, Author]"
UPDATE: "$user.group = Editor || $user.id = $this.author"
DELETE: "$user.group = Editor || $user.id = $this.author"
) {
id: ID! @auto
createdAt: DateTime! @createdAt
updatedAt: DateTime! @updatedAt
author: User!
title: String!
content: String!
published: Boolean! @default(value: false) @authorize(READ: "$user.group in [Editor, Author]")
categories: [Category!]!
}
type Category
@model
@authorization(
READ: "true"
CREATE: "$user.group = Editor"
UPDATE: "$user.group = Editor"
DELETE: "$user.group = Editor"
) {
id: ID! @auto
createdAt: DateTime! @createdAt
updatedAt: DateTime! @updatedAt
name: String!
posts: [Post!]!
}
@todo describe
npm install -g desolid
$now
refers to current DateTime$user
refers to the authenticated user$this
refers to the current modelAuthorization describes using @Athorization
directive. you can indicate the logic using javascript boolean operators:
type Post
@model
@authorization(
READ: "$this.published || $user.group = Editor || $user.id = $this.author"
CREATE: "$user.group in [Editor, Author]"
UPDATE: "$user.group = Editor || $user.id = $this.author"
DELETE: "$user.group = Editor || $user.id = $this.author"
) {
id: ID! @auto
createdAt: DateTime! @createdAt
updatedAt: DateTime! @updatedAt
author: User!
title: String!
content: String!
published: Boolean! @default(value: false) @authorize(READ: "$user.group in [Editor, Author]")
categories: [Category!]!
}
2 variables are available in the scope:
$user
: refers to the authenticated user$this
: refers to the current modelFAQs
🤖 Desolid: Single file self hosted backend as a service
The npm package desolid receives a total of 0 weekly downloads. As such, desolid popularity was classified as not popular.
We found that desolid demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.