GithubHelp home page GithubHelp logo

load-balancer-api's People

Contributors

andy-v-h avatar cherchezlafemme avatar dependabot[bot] avatar fishnix avatar hegartyk avatar jaormx avatar mikemrm avatar nicolerenee avatar renovate[bot] avatar rizzza avatar sfunkhouser avatar sthwang-metal avatar tylerauerbeck avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

load-balancer-api's Issues

Cannot launch the project in local dev container

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:

  1. Clone the project and run a local dev container
  2. Run 'make binary 'and then run 'make go-run'
  3. See error

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.

Allow list for pool origins

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

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • Update module github.com/vektah/gqlparser/v2 to v2.5.12
  • Update module entgo.io/contrib to v0.5.0
  • Update module github.com/labstack/echo/v4 to v4.12.0
  • Update golangci/golangci-lint-action action to v6
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

devcontainer
.devcontainer/devcontainer.json
  • ghcr.io/devcontainers/features/docker-in-docker 2
docker-compose
.devcontainer/docker-compose.yml
dockerfile
.devcontainer/Dockerfile
  • mcr.microsoft.com/vscode/devcontainers/go 1-1.21-bullseye
Dockerfile
github-actions
.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
gomod
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
helm-values
chart/load-balancer-api/values.yaml
  • ghcr.io/infratographer/load-balancer-api v0.1.3
helmv3
chart/load-balancer-api/Chart.yaml
  • common 2.14.1
  • reloader 1.0.58

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.