Skip to content

Commit

Permalink
Bump OPA and built-in metadata (#155)
Browse files Browse the repository at this point in the history
Signed-off-by: Anders Eknert <anders@styra.com>
  • Loading branch information
anderseknert authored Jun 8, 2023
1 parent bfb9d45 commit e98b60a
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Regal

[![Build Status](https://github.com/styrainc/regal/workflows/Build/badge.svg?branch=main)](https://github.com/styrainc/regal/actions)
![OPA v0.53.0](https://openpolicyagent.org/badge/v0.53.0)
![OPA v0.53.1](https://openpolicyagent.org/badge/v0.53.1)

Regal is a linter for Rego, with the goal of making your Rego magnificent!

Expand Down
38 changes: 38 additions & 0 deletions bundle/regal/opa/builtins/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,25 @@
"type": "number"
}
},
"crypto.hmac.equal": {
"args": [
{
"description": "mac1 to compare",
"name": "mac1",
"type": "string"
},
{
"description": "mac2 to compare",
"name": "mac2",
"type": "string"
}
],
"result": {
"description": "`true` if the MACs are equals, `false` otherwise",
"name": "result",
"type": "boolean"
}
},
"crypto.hmac.md5": {
"args": [
{
Expand Down Expand Up @@ -568,6 +587,25 @@
"type": "array[object[string: any]]"
}
},
"crypto.x509.parse_keypair": {
"args": [
{
"description": "string containing PEM or base64 encoded DER certificates",
"name": "cert",
"type": "string"
},
{
"description": "string containing PEM or base64 encoded DER keys",
"name": "pem",
"type": "string"
}
],
"result": {
"description": "if key pair is valid, returns the tls.certificate(https://pkg.go.dev/crypto/tls#Certificate) as an object. If the key pair is invalid, nil and an error are returned.",
"name": "output",
"type": "object[string: any]"
}
},
"crypto.x509.parse_rsa_private_key": {
"args": [
{
Expand Down

0 comments on commit e98b60a

Please sign in to comment.