picoclaw/pkg/config
Kristjan Kruus 1f9d390a64 fix: apply security credentials before config validation in web handlers
- Move SecurityCopyFrom() before validateConfig() in PUT and PATCH handlers
- Make SecurityCopyFrom() call applySecurityConfig() to populate private fields
- Add tests for config save with security-only channel tokens

Without this fix, saving config via the web UI fails with 'channels.pico.token
is required' (and similar for Telegram/Discord) when tokens are stored in
.security.yml, because the validation ran before security credentials were
copied to the config struct.
2026-03-23 14:26:51 +02:00
..
config.go fix: apply security credentials before config validation in web handlers 2026-03-23 14:26:51 +02:00
config_old.go Merge branch 'main' into version 2026-03-22 19:58:33 +08:00
config_test.go feat(providers): add extra_body config to inject custom fields into request body 2026-03-23 16:44:12 +08:00
defaults.go Use getter/setter methods for API key access in ModelConfig 2026-03-23 16:39:43 +08:00
envkeys.go refactor: centralize environment variable key constants (#1730) 2026-03-18 18:03:24 +08:00
example_security_usage.go rename security.yml to .security.yml 2026-03-23 11:20:42 +08:00
migration.go refactor: seperate security.yml for store keys 2026-03-22 01:55:00 +08:00
migration_integration_test.go refactor: seperate security.yml for store keys 2026-03-22 01:55:00 +08:00
migration_test.go refactor: seperate security.yml for store keys 2026-03-22 01:55:00 +08:00
model_config_test.go refactor: seperate security.yml for store keys 2026-03-22 01:55:00 +08:00
multikey_test.go refactor: seperate security.yml for store keys 2026-03-22 01:55:00 +08:00
security.go Merge branch 'main' into version 2026-03-23 11:41:36 +08:00
SECURITY_CONFIG.md rename security.yml to .security.yml 2026-03-23 11:20:42 +08:00
security_integration_test.go rename security.yml to .security.yml 2026-03-23 11:20:42 +08:00
security_test.go rename security.yml to .security.yml 2026-03-23 11:20:42 +08:00
version.go feat:Modify the location where version is obtained, and insert version information into the context (#1300) 2026-03-10 17:42:05 +08:00
version_test.go feat:Modify the location where version is obtained, and insert version information into the context (#1300) 2026-03-10 17:42:05 +08:00