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
}
@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",
)
type User {
id: ID!
createdAt: DateTime! @createdAt
updatedAt: DateTime! @updatedAt
email: String! @unique
phone: String @unique
group: UserGroup!
name: String!
family: String!
avatar: File
}
@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",
)
type Post {
id: ID!
createdAt: DateTime! @createdAt
updatedAt: DateTime! @updatedAt
author: User!
title: String!
content: String!
published: Boolean! @default(false)
categories: [Category!]!
}
@Authorization(
READ: "true",
CREATE: "user.group = Editor",
UPDATE: "user.group = Editor",
DELETE: "user.group = Editor",
)
type Category {
id: ID!
createdAt: DateTime! @createdAt
updatedAt: DateTime! @updatedAt
name: String!
posts: [Post!]!
}
TODO: describe
npm install -g desolid
Authorization describes using @Athorization
directive. you can indicate the logic using javascript boolean operators:
@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",
)
type Post {
id: ID!
createdAt: DateTime! @createdAt
updatedAt: DateTime! @updatedAt
author: User!
title: String!
content: String!
published: Boolean! @default(false)
categories: [Category!]!
}
2 objects are available in the scope:
user
: refers to the authenticated userthis
: refers to the selected model recordFAQs
🤖 Desolid: Single file self hosted backend as a service
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.