infratographer / load-balancer-api Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Describe the bug
After running the project in the dev container and building the binary, when I type 'make go-run', the following error appears.
{
"level": "fatal",
"ts": 1691729835.9172926,
"caller": "cmd/serve.go:157",
"msg": "failed to initialize jwt authentication",
"app": "loadbalancer-api",
"version": "unknown",
"error": "Get \".well-known/openid-configuration\": unsupported protocol scheme \"\"",
"stacktrace": "go.infratographer.com/load-balancer-api/cmd.serve\n\t/workspaces/load-balancer-api/cmd/serve.go:157\ngo.infratographer.com/load-balancer-api/cmd.glob..func1\n\t/workspaces/load-balancer-api/cmd/serve.go:58\ngithub.com/spf13/cobra.(*Command).execute\n\t/go/pkg/mod/github.com/spf13/[email protected]/command.go:940\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/go/pkg/mod/github.com/spf13/[email protected]/command.go:1068\ngithub.com/spf13/cobra.(*Command).Execute\n\t/go/pkg/mod/github.com/spf13/[email protected]/command.go:992\ngo.infratographer.com/load-balancer-api/cmd.Execute\n\t/workspaces/load-balancer-api/cmd/root.go:42\nmain.main\n\t/workspaces/load-balancer-api/main.go:7\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:250"
}
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The server should start with no errors.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
After digging into the stack trace
go.infratographer.com/load-balancer-api/cmd.serve
/workspaces/load-balancer-api/cmd/serve.go:157
go.infratographer.com/load-balancer-api/cmd.glob..func1
/workspaces/load-balancer-api/cmd/serve.go:58
github.com/spf13/cobra.(*Command).execute
/go/pkg/mod/github.com/spf13/[email protected]/command.go:940
github.com/spf13/cobra.(*Command).ExecuteC
/go/pkg/mod/github.com/spf13/[email protected]/command.go:1068
github.com/spf13/cobra.(*Command).Execute
/go/pkg/mod/github.com/spf13/[email protected]/command.go:992
go.infratographer.com/load-balancer-api/cmd.Execute
/workspaces/load-balancer-api/cmd/root.go:42
main.main
/workspaces/load-balancer-api/main.go:7
runtime.main
/usr/local/go/src/runtime/proc.go:250
I think the error is caused by the viper jwt auth middleware.
viper.GetBool("oidc.enabled") is true for local dev environment.
Is your feature request related to a problem? Please describe.
I want to limit the possible pool origins so that a user of my system doesn't turn my service into an ddos cannon
Describe the solution you'd like
I would like to give an allowlist as input to the API that filters what IPs I can store as a pool origin.
Describe alternatives you've considered
Putting a block list on the manager.
Additional context
n/a
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
github.com/testcontainers/testcontainers-go
, github.com/testcontainers/testcontainers-go/modules/postgres
)These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.
.devcontainer/devcontainer.json
ghcr.io/devcontainers/features/docker-in-docker 2
.devcontainer/docker-compose.yml
.devcontainer/Dockerfile
mcr.microsoft.com/vscode/devcontainers/go 1-1.21-bullseye
Dockerfile
.github/workflows/apollo-studio-checks.yml
actions/checkout v4
thollander/actions-comment-pull-request v2
.github/workflows/apollo-studio-publish.yml
actions/checkout v4
.github/workflows/image-build.yml
actions/checkout v4
docker/login-action v3
devcontainers/ci v0.3
.github/workflows/image-main-latest.yml
actions/checkout v4
actions/setup-go v5
docker/setup-qemu-action v3
goreleaser/goreleaser-action v5
.github/workflows/lint-go.yml
actions/checkout v4
actions/setup-go v5
golangci/golangci-lint-action v4
.github/workflows/release.yml
actions/checkout v4
actions/checkout v4
docker/setup-qemu-action v3
actions/setup-go v5
goreleaser/goreleaser-action v5
.github/workflows/test-go.yml
actions/checkout v4
actions/setup-go v5
go.mod
go 1.21
entgo.io/contrib v0.4.5
entgo.io/ent v0.12.4
github.com/99designs/gqlgen v0.17.38
github.com/Yamashou/gqlgenc v0.15.1
github.com/brianvoe/gofakeit/v6 v6.28.0
github.com/docker/go-connections v0.5.0
github.com/hashicorp/go-multierror v1.1.1
github.com/hasura/go-graphql-client v0.12.1
github.com/labstack/echo/v4 v4.11.4
github.com/lib/pq v1.10.9
github.com/mattn/go-sqlite3 v1.14.22
github.com/mitchellh/go-homedir v1.1.0
github.com/spf13/cobra v1.8.0
github.com/spf13/viper v1.18.2
github.com/stretchr/testify v1.9.0
github.com/testcontainers/testcontainers-go v0.29.1
github.com/testcontainers/testcontainers-go/modules/postgres v0.29.1
github.com/vektah/gqlparser/v2 v2.5.11
github.com/wundergraph/graphql-go-tools v1.67.1
go.infratographer.com/metadata-api v0.0.4
go.infratographer.com/permissions-api v0.3.2
go.infratographer.com/x v0.3.9
go.uber.org/zap v1.26.0
golang.org/x/exp v0.0.0-20240103183307-be819d1f06fc@be819d1f06fc
chart/load-balancer-api/values.yaml
ghcr.io/infratographer/load-balancer-api v0.1.3
chart/load-balancer-api/Chart.yaml
common 2.14.1
reloader 1.0.58
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.