Documentation
¶
Index ¶
- func AddCfAskCommand(cfCmd *cobra.Command)
- func AddCfDeployCommands(cfCmd *cobra.Command)
- func AddCfListCommands(cfCmd *cobra.Command)
- func Execute() error
- type AWSCredentialsScan
- type AWSProfileInfo
- type AzureCredentialsScan
- type AzureSubscriptionInfo
- type CloudflareCredentialsScan
- type CustomScanConfig
- type GCPCredentialsScan
- type LLMCredentialsScan
- type LLMKeyStatus
- type ScanResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCfAskCommand ¶ added in v0.0.3
AddCfAskCommand adds the ask subcommand to the cf command
func AddCfDeployCommands ¶ added in v0.0.3
AddCfDeployCommands adds all deploy-related commands to the cf command
func AddCfListCommands ¶ added in v0.0.3
AddCfListCommands adds list commands to the cf command
Types ¶
type AWSCredentialsScan ¶ added in v0.0.3
type AWSCredentialsScan struct {
Profiles []AWSProfileInfo `json:"profiles"`
Error string `json:"error,omitempty"`
}
AWSCredentialsScan holds detected AWS profiles
type AWSProfileInfo ¶ added in v0.0.3
type AWSProfileInfo struct {
Name string `json:"name"`
Region string `json:"region,omitempty"`
Source string `json:"source"`
}
AWSProfileInfo holds info about a single AWS profile
type AzureCredentialsScan ¶ added in v0.0.3
type AzureCredentialsScan struct {
CLIAvailable bool `json:"cliAvailable"`
Subscriptions []AzureSubscriptionInfo `json:"subscriptions,omitempty"`
Error string `json:"error,omitempty"`
}
AzureCredentialsScan holds detected Azure subscriptions
type AzureSubscriptionInfo ¶ added in v0.0.3
type AzureSubscriptionInfo struct {
ID string `json:"id"`
Name string `json:"name"`
State string `json:"state,omitempty"`
IsDefault bool `json:"isDefault,omitempty"`
}
AzureSubscriptionInfo holds info about an Azure subscription
type CloudflareCredentialsScan ¶ added in v0.0.3
type CloudflareCredentialsScan struct {
HasToken bool `json:"hasToken"`
HasAccountID bool `json:"hasAccountId"`
CustomEnvKeys []string `json:"customEnvKeys,omitempty"`
Error string `json:"error,omitempty"`
}
CloudflareCredentialsScan holds detected Cloudflare credentials
type CustomScanConfig ¶ added in v0.0.3
type CustomScanConfig struct {
AWSPaths []string
GCPPaths []string
CloudflareEnv []string
LLMEnv []string
}
CustomScanConfig holds custom paths and env keys for scanning
type GCPCredentialsScan ¶ added in v0.0.3
type GCPCredentialsScan struct {
HasADC bool `json:"hasADC"`
ADCPath string `json:"adcPath,omitempty"`
Projects []string `json:"projects,omitempty"`
CustomPaths []string `json:"customPaths,omitempty"`
CLIAvailable bool `json:"cliAvailable"`
Error string `json:"error,omitempty"`
}
GCPCredentialsScan holds detected GCP credentials
type LLMCredentialsScan ¶ added in v0.0.3
type LLMCredentialsScan struct {
OpenAI LLMKeyStatus `json:"openai"`
Anthropic LLMKeyStatus `json:"anthropic"`
Gemini LLMKeyStatus `json:"gemini"`
DeepSeek LLMKeyStatus `json:"deepseek"`
MiniMax LLMKeyStatus `json:"minimax"`
CustomEnvKeys []string `json:"customEnvKeys,omitempty"`
}
LLMCredentialsScan holds detected LLM API keys
type LLMKeyStatus ¶ added in v0.0.3
LLMKeyStatus indicates whether an LLM key was detected
type ScanResult ¶ added in v0.0.3
type ScanResult struct {
AWS AWSCredentialsScan `json:"aws"`
GCP GCPCredentialsScan `json:"gcp"`
Azure AzureCredentialsScan `json:"azure"`
Cloudflare CloudflareCredentialsScan `json:"cloudflare"`
LLM LLMCredentialsScan `json:"llm"`
}
ScanResult holds all detected credentials