Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Containertest #380

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

test

3aaecbd
Select commit
Loading
Failed to load commit list.
Open

Containertest #380

test
3aaecbd
Select commit
Loading
Failed to load commit list.
DryRunSecurity / Authn/Authz Analyzer succeeded Jun 10, 2024 in 11s

DryRun Security

Details

Authn/Authz Analyzer Findings: 1 detected

⚠️ Potential Authn/Authz Function Used or Modified agent/container/pkg/handler/api_handler.go (click for details)
Type Potential Authn/Authz Function Used or Modified
Description The provided Go code contains functions that are potentially related to authentication or authorization. The code includes imports for 'encoding/json', 'errors', and 'strings', which are commonly used in implementing authentication and authorization mechanisms. Additionally, the 'APIHandler' struct is defined, which could potentially include methods related to authentication or authorization.
Filename agent/container/pkg/handler/api_handler.go
CodeLink
package handler
import (
"encoding/json"
"errors"
"fmt"
"io"
"log"
"net/http"
"strings"
"github.com/gin-gonic/gin"
"github.com/intelops/kubviz/agent/container/api"
"github.com/intelops/kubviz/agent/container/pkg/clients"
"github.com/intelops/kubviz/model"
"github.com/intelops/kubviz/pkg/opentelemetry"
"go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin"
"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/attribute"
)
type APIHandler struct {
conn clients.NATSClientInterface
}
const (