Skip to content

Instantly share code, notes, and snippets.

@TheLunaticScripter
TheLunaticScripter / opa_sdk_blog_code5.go
Created September 9, 2021 17:14
opa_sdk_blog_code5.go
fmt.Println(result.Result)
@TheLunaticScripter
TheLunaticScripter / opa_sdk_blog_code3.go
Created September 9, 2021 17:13
opa_sdk_blog_code3.go
func main() {
...
decisionOptions := sdk.DecisionOptions{
// Rule to be called example /rules/allow
Path: "/rules/allow",
// Input to be used in the decision example {"user": "alice"}
Input: map[string]interface{}{
"user": "bob",
"method": "GET",
@TheLunaticScripter
TheLunaticScripter / opa_sdk_blog_code2.go
Created September 9, 2021 17:12
opa_sdk_blog_code2.go
package main
import (
"bytes"
...
"github.com/open-policy-agent/opa/sdk"
)
func main() {
...
@TheLunaticScripter
TheLunaticScripter / opa_sdk_blog_code1.go
Last active December 21, 2021 14:57
opa_sdk_blog_code1.go
package main
import (
"context"
"os"
)
func main() {
// Setup the context for OPA
ctx := context.Background()
@TheLunaticScripter
TheLunaticScripter / effortless0_17_0_release.md
Last active February 10, 2020 16:04
This is the a list of the upgrade path for Effortless Scaffolding on Windows after the 0.17.0 release

Effortless Scaffolding Release 0.17.0 (Errors and Fixes)

This is a list of the errors you may encounter when migrating from Effortless Scaffolding 0.16.0 to 0.17.0. This only pertain to Windows builds.

This document is to help you troubleshoot and the fix error you may get in your windows builds or runs after the release of scaffolding-chef-infra and scaffolding-chef-inspec

Why have this doc?

The reason this doc exists is because many of the fixes to get the software working again are pretty simple but there may be more than one choice. This doc will documet the error then show you the recommended way to fix it.

Error

If you were using scaffolding you had to put the $pkg_deps array in your plan file in order for it to build properly.