gitea.tea/modules/config
Bo-Yi Wu f6d939a8df
refactor(credstore): embed credential store and drop sdk-go dependency
- Embed the minimal credstore subset used by tea (SecureStore,
  EncryptedFileStore, KeyringStore, FileStore) as modules/credstore so
  external SDK renames can no longer break the build
- Keep the on-disk format fully compatible: AES-256-GCM values with the
  v1: prefix, credentials.json / credentials.json.enc paths, and the
  Token JSON field names are unchanged, verified by a ciphertext fixture
  generated with sdk-go v1.1.0
- Store the keyring master key under a tea-owned account name
- Reuse the existing kernel-level filelock module instead of the
  upstream lockfile protocol, removing a stale-lock race
- Cover roundtrip, keyring-unavailable fallback, and fixture decryption
  with tests using a mocked keyring
- Remove github.com/go-signet/sdk-go and promote
  github.com/zalando/go-keyring to a direct dependency

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-03 21:59:07 +08:00
..
config.go update import path to use gitea.dev (#1003) 2026-05-23 17:26:43 +00:00
credstore.go refactor(credstore): embed credential store and drop sdk-go dependency 2026-08-03 21:59:07 +08:00
lock.go update import path to use gitea.dev (#1003) 2026-05-23 17:26:43 +00:00
lock_test.go replace log.Fatal/os.Exit with error returns (#941) 2026-03-27 03:36:44 +00:00
login.go fix(http): add transport timeouts so tea fails fast on stalled servers (#1020) 2026-06-26 19:59:05 +00:00
login_test.go upgrade go sdk and add test (#1048) 2026-07-01 18:06:19 +00:00
testtools.go Use git command instead of go git (#1005) 2026-05-23 20:24:47 +00:00