- Fix YAML tags in auth config struct (json -> yaml) - Update CLI configs to use pre-hashed API keys - Remove double hashing in WebSocket client - Fix port mapping (9102 -> 9103) in CLI commands - Update permission keys to use jobs:read, jobs:create, etc. - Clean up all debug logging from CLI and server - All user roles now authenticate correctly: * Admin: Can queue jobs and see all jobs * Researcher: Can queue jobs and see own jobs * Analyst: Can see status (read-only access) Multi-user authentication is now fully functional.
90 lines
1.7 KiB
YAML
90 lines
1.7 KiB
YAML
---
|
|
version: "2"
|
|
run:
|
|
timeout: 5m
|
|
tests: true
|
|
output:
|
|
format: colored-line-number
|
|
linters-settings:
|
|
govet:
|
|
enable:
|
|
- shadow
|
|
- fieldalignment
|
|
gocyclo:
|
|
min-complexity: 15
|
|
dupl:
|
|
threshold: 100
|
|
goconst:
|
|
min-len: 3
|
|
min-occurrences: 3
|
|
misspell:
|
|
locale: US
|
|
lll:
|
|
line-length: 100
|
|
revive:
|
|
confidence: 0.8
|
|
linters:
|
|
disable-all: true
|
|
enable:
|
|
- bodyclose
|
|
- dogsled
|
|
- dupl
|
|
- errcheck
|
|
- exhaustive
|
|
- gochecknoinits
|
|
- goconst
|
|
- gocritic
|
|
- gocyclo
|
|
- goprintffuncname
|
|
- gosec
|
|
- govet
|
|
- ineffassign
|
|
- lll
|
|
- misspell
|
|
- nakedret
|
|
- noctx
|
|
- nolintlint
|
|
- rowserrcheck
|
|
- staticcheck
|
|
- unconvert
|
|
- unparam
|
|
- unused
|
|
- whitespace
|
|
- revive
|
|
issues:
|
|
exclude-rules:
|
|
# G306: File permissions - acceptable for test files and scripts
|
|
- text: "G306:"
|
|
linters:
|
|
- gosec
|
|
# Exclude linters for test files
|
|
- path: ".*_test\\.go"
|
|
linters:
|
|
- gocyclo
|
|
- errcheck
|
|
- dupl
|
|
- lll
|
|
- gosec
|
|
- revive
|
|
# Exclude errcheck for tests directory
|
|
- path: "^tests/"
|
|
linters:
|
|
- errcheck
|
|
# approve insecureSkipVerify in test files
|
|
- path: _test\.go
|
|
text: "insecureSkipVerify"
|
|
linters:
|
|
- gosec
|
|
# Exclude gosec G204 for tests and tools via source match
|
|
- source: "exec\\.CommandContext"
|
|
path: "(tests|tools)/"
|
|
linters:
|
|
- gosec
|
|
# Exclude revive for api package naming via source match
|
|
- source: "^package api$"
|
|
linters:
|
|
- revive
|
|
max-issues-per-linter: 0
|
|
max-same-issues: 0
|
|
severity:
|
|
default-severity: error
|