|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## [0.2.13](https://github.com/origadmin/runtime/compare/v0.2.12...v0.2.13) (2025-12-01) |
| 4 | + |
| 5 | + |
| 6 | +### Features |
| 7 | + |
| 8 | +* **auth:** Refactor security package structure into authn and authz subpackages and update credential extractor interface ([f692249](https://github.com/origadmin/runtime/commit/f692249784c8badc3779d4a92c349915f48cc45f)) |
| 9 | +* **bootstrap:** add app configuration support to bootstrap process and enhance container initialization ([46a0269](https://github.com/origadmin/runtime/commit/46a026941d688542aed96b545d1d927d6960c376)) |
| 10 | +* **config:** add caching mechanism to structured config implementation with sync.Map ([6410eb9](https://github.com/origadmin/runtime/commit/6410eb93832339dfc89890080eefc441f3d688cb)) |
| 11 | +* **config:** Add protobuf definitions for app, bootstrap and kafka configurations ([8bc8d3f](https://github.com/origadmin/runtime/commit/8bc8d3f0459603e6e6d73a79177eb2760f934f7a)) |
| 12 | +* **config:** refactor component paths to use typed constant.ComponentKey and move constants to interfaces/constant package ([6e383a9](https://github.com/origadmin/runtime/commit/6e383a93aaa73438d9742d3ae2de6830fabcfd33)) |
| 13 | +* **config:** refactor config package with simplified factory pattern and improved source handling ([6734af4](https://github.com/origadmin/runtime/commit/6734af431785b6e09c53575ff625275711284a25)) |
| 14 | +* **config:** refactor file source registration and move protobuf utils to config package ([f2317c3](https://github.com/origadmin/runtime/commit/f2317c300aa1d819948858799f62495e766fa112)) |
| 15 | +* **config:** refactor source builder to Builder type and consolidate config loading logic ([2d2d735](https://github.com/origadmin/runtime/commit/2d2d7356a713900759bb36bcaa9bf9b2d9967335)) |
| 16 | +* **config:** refactor source factory pattern with embedded registry and function adapter ([ea53f6c](https://github.com/origadmin/runtime/commit/ea53f6c5654da029e823adc73fd05eb619fe428a)) |
| 17 | +* **config:** rename Filestores to ObjectStores in data proto configuration ([12b2434](https://github.com/origadmin/runtime/commit/12b24340083df094209c2a1a6055e5f261f5a17b)) |
| 18 | +* **container:** Add container options utility functions ([101639c](https://github.com/origadmin/runtime/commit/101639cbeeb9d7718df4a9a433816a116d7413d3)) |
| 19 | +* **container:** add WithContainer option and FromOptions helper for container context ([ef14624](https://github.com/origadmin/runtime/commit/ef14624454446144742b4c9a9a0c83827056c384)) |
| 20 | +* **container:** implement core container providers for cache, database, middleware, objectstore, registry and component management ([2f073f0](https://github.com/origadmin/runtime/commit/2f073f06f984bee5e631418327466baac1e4ea5c)) |
| 21 | +* **container:** refactor component initialization with options support and add Logger accessor ([882ee48](https://github.com/origadmin/runtime/commit/882ee489036542ba9b8c289f9b83064f7c887d89)) |
| 22 | +* **container:** refactor component initialization with priority-based factory execution and error handling ([7c643b1](https://github.com/origadmin/runtime/commit/7c643b15e3afd6240ff55b73149deec95aaa5a5d)) |
| 23 | +* **container:** refactor component management with priority system and direct container integration ([2828e03](https://github.com/origadmin/runtime/commit/2828e03220b634fcea14452675c28fa42c2cc59d)) |
| 24 | +* **container:** refactor container and provider interfaces with improved type safety and component registration ([6977cd7](https://github.com/origadmin/runtime/commit/6977cd756a17999077faf8eba0017dfce7b88daf)) |
| 25 | +* **container:** refactor provider implementations with enhanced default instance resolution and logging ([7fd64a3](https://github.com/origadmin/runtime/commit/7fd64a34edede38b4c2ee244e9e49ec41df85748)) |
| 26 | +* **container:** refactor provider initialization to support dynamic options via SetConfig ([d27f503](https://github.com/origadmin/runtime/commit/d27f50319c8bc0f5c6368f5c1470cdf59bc4a89d)) |
| 27 | +* **container:** refactor storage providers with default implementations and unified interfaces ([0784098](https://github.com/origadmin/runtime/commit/0784098613acce0084adc711059fb2e9a92eb2a3)) |
| 28 | +* **container:** remove WithOptions and refactor container to be immutable with functional options pattern ([2250756](https://github.com/origadmin/runtime/commit/2250756a6e78e54fed72e14263c286bb8453c1d4)) |
| 29 | +* **docs:** update factory pattern analysis with improved naming conventions and embedding registry ([5e393eb](https://github.com/origadmin/runtime/commit/5e393eb3448e421514ef695e4faab61d7670f632)) |
| 30 | +* **errors:** update error reason enum values to follow new naming convention ([27929de](https://github.com/origadmin/runtime/commit/27929def301a4efa22c6cb9fa863a9f8f3696690)) |
| 31 | +* **factory:** add New method to Func and ContextFunc types for consistent interface ([1db5cda](https://github.com/origadmin/runtime/commit/1db5cdaddfcbc6747ec8df9022562ba091d25826)) |
| 32 | +* **jwt:** enhance JWT middleware with configurable claims factory ([5754894](https://github.com/origadmin/runtime/commit/5754894ac45926272e8cc4e50ba5e273eefc0b6b)) |
| 33 | +* **jwt:** enhance JWT middleware with token headers, RSA/ECDSA support and flexible claims types ([e781b6d](https://github.com/origadmin/runtime/commit/e781b6d9b2e6e9089016dc5044f1522dbc5ef151)) |
| 34 | +* **log:** add WithDecorate function to enhance logger with service info and tracing ([2c5e951](https://github.com/origadmin/runtime/commit/2c5e951daa97cf0d39958cdf3b5df7f8687fee3b)) |
| 35 | +* **middleware:** Add declarative security middleware support with configurable policy management ([a263c53](https://github.com/origadmin/runtime/commit/a263c531c82e5a145a0f2d69b587b120277c8f71)) |
| 36 | +* **middleware:** add ordered names tracking and refactor middleware initialization ([a00eb6f](https://github.com/origadmin/runtime/commit/a00eb6fef0c20d40ee1401162114e7c1dcf84363)) |
| 37 | +* **middleware:** add WithClientCarrier and WithServerCarrier options for selective middleware initialization ([7dfdb2e](https://github.com/origadmin/runtime/commit/7dfdb2e3fa8459605a6eca4e77cc90a01224fbe7)) |
| 38 | +* **middleware:** enhance JWT test with YAML config support and dynamic test cases ([236a893](https://github.com/origadmin/runtime/commit/236a893600f42a79c9f8848dddc78e2508d40f2a)) |
| 39 | +* **middleware:** Implement CORS middleware factory and native handler with config support ([3b6ba38](https://github.com/origadmin/runtime/commit/3b6ba38f9ae117fd250d1f4d0d5cff82249ca45a)) |
| 40 | +* **middleware:** refactor carrier implementation and add enabled checks ([3c0e239](https://github.com/origadmin/runtime/commit/3c0e2395865cfa2ca6077fe4d6b1775a65e9620a)) |
| 41 | +* **middleware:** refactor provider initialization and error handling with simplified config processing ([464ea98](https://github.com/origadmin/runtime/commit/464ea987a2add0ad31acfa1cf9f6156134fbf98e)) |
| 42 | +* **optionutil:** Add TestOptionCarriesContextData to verify context data persistence with options ([a5afae2](https://github.com/origadmin/runtime/commit/a5afae22493663ad04fc1a37481c9a7ac696588b)) |
| 43 | +* **proto:** Update SecurityErrorReason enum values to follow SUBJECT_MODIFI ([3392b23](https://github.com/origadmin/runtime/commit/3392b23d46dec0b65494a3e84e9f5adfcc565548)) |
| 44 | +* **runtime:** add container to global options during initialization ([b65e793](https://github.com/origadmin/runtime/commit/b65e793c0d813893ad8c28b588ecfda18e39a90e)) |
| 45 | +* **runtime:** add core data components including event bus, model, mapper, query and repository interfaces ([84f9540](https://github.com/origadmin/runtime/commit/84f954021196a346fc5a9f7d87bee0e5754b8e4a)) |
| 46 | +* **runtime:** add new component constants and config decoding methods for caches, databases and object stores ([7fc8b6c](https://github.com/origadmin/runtime/commit/7fc8b6c4572f877e255e1b08a9894121d9fe7754)) |
| 47 | +* **runtime:** enhance config loading with convention-based fallback and direct loading mode ([9c0189e](https://github.com/origadmin/runtime/commit/9c0189e439ca7c25904a9acc85a5a0a924e09792)) |
| 48 | +* **runtime:** refactor app info and builder pattern with concrete implementation and type safety ([aac0a9e](https://github.com/origadmin/runtime/commit/aac0a9e09ac69bd9d9f0f1e208e61a71ca937f5a)) |
| 49 | +* **runtime:** refactor AppInfo handling to use interface directly and enforce non-nil invariant ([6bb4c60](https://github.com/origadmin/runtime/commit/6bb4c601083285bb1fabbdb272cf76ab02e45db2)) |
| 50 | +* **runtime:** refactor appInfo merging with new Merge method and config support ([6f28af7](https://github.com/origadmin/runtime/commit/6f28af7969d4ddc25081208371db915476eb9ded)) |
| 51 | +* **runtime:** refactor container locking, app initialization and component handling ([d826f29](https://github.com/origadmin/runtime/commit/d826f29abcacdcbf45725071c2213488e801a9cc)) |
| 52 | +* **runtime:** remove unused registry interfaces and rename empty middleware to noop ([05b4394](https://github.com/origadmin/runtime/commit/05b4394c44a8ffaf91046fd506cc273043f22e03)) |
| 53 | +* **security:** Add declarative security middleware configuration and move optionutil to extension package ([d7f5f86](https://github.com/origadmin/runtime/commit/d7f5f866d483ccbf0655d5ad62894eb5a4b80ad3)) |
| 54 | +* **security:** Add integration tests for security auth flow with mock implementations ([e3102eb](https://github.com/origadmin/runtime/commit/e3102ebcfc3b4740da2f1e17734201f9d095282a)) |
| 55 | +* **security:** Add method comments to Principal interface for better documentation ([7a62daa](https://github.com/origadmin/runtime/commit/7a62daa900bcade81554deb7b614ea66665747f1)) |
| 56 | +* **security:** Add protobuf definitions for authentication credential sources and refactor token structure ([5f0618c](https://github.com/origadmin/runtime/commit/5f0618cb7a755fe0ff9831cf85d22bd8f653aed4)) |
| 57 | +* **security:** Enhance authentication and authorization middleware with improved error handling and debug logging ([ec83a93](https://github.com/origadmin/runtime/commit/ec83a93357433da03084afa8f5e3cee21eb70880)) |
| 58 | +* **security:** Enhance header credential extractor with token payload and add Kratos HTTP test service ([efc08ab](https://github.com/origadmin/runtime/commit/efc08ab0f79f19df33c9208f903afbf144a7281b)) |
| 59 | +* **security:** Implement auth FilterFunc middleware and fix Kratos HTTP context propagation ([70d2db6](https://github.com/origadmin/runtime/commit/70d2db6ea7b9a045eb09ed2352564db20e2d65bd)) |
| 60 | +* **security:** Move token cache implementation to security package and update return type to token.CacheStorage ([1f31b72](https://github.com/origadmin/runtime/commit/1f31b729df59406b6e90ae277c2cf13c51ff834a)) |
| 61 | +* **security:** Refactor auth credential handling to use switch statement and add error for unknown types ([ce3a826](https://github.com/origadmin/runtime/commit/ce3a82623a85f4b30e0383f3b6232c00a2674a95)) |
| 62 | +* **security:** Refactor authentication system with credential extractor and value provider interfaces ([00d39bb](https://github.com/origadmin/runtime/commit/00d39bb6522961879e69759e2f6ceb57d6f5fde9)) |
| 63 | +* **security:** Refactor authn/authz proto structure and rename files for clarity ([b135472](https://github.com/origadmin/runtime/commit/b135472166011de536eee912fdf239be48f3746f)) |
| 64 | +* **security:** Refactor authn/authz registry by splitting into separate packages and renaming factory methods ([b137a28](https://github.com/origadmin/runtime/commit/b137a282a2b5715b2ab41128d21cdaa88a919261)) |
| 65 | +* **security:** Refactor credential extraction to use SecurityRequest interface and enhance security middleware ([bc41150](https://github.com/origadmin/runtime/commit/bc41150fd6e438c0e11513f9a407a8225ef3ed50)) |
| 66 | +* **security:** Refactor credential handling to use generic claims and improve token processing ([e6ab2ae](https://github.com/origadmin/runtime/commit/e6ab2ae8e134b1152a7afbfc00be2ccd246590eb)) |
| 67 | +* **security:** Refactor Credential interface to support typed authentication payloads ([0a317c9](https://github.com/origadmin/runtime/commit/0a317c95ddc3b2e128686a895d36a71ded38695b)) |
| 68 | +* **security:** Refactor Credential interface to support typed authentication payloads ([67dd3af](https://github.com/origadmin/runtime/commit/67dd3af0c9071fad460a47f55e3d97c1cb182c2d)) |
| 69 | +* **security:** Refactor credential interfaces and implement composite authenticator with Go-idiomatic storage ([56aa4db](https://github.com/origadmin/runtime/commit/56aa4db182505e4f0cfd23970f909b5382ab37f8)) |
| 70 | +* **security:** Refactor credential interfaces into separate files and update Principal claims type ([6835019](https://github.com/origadmin/runtime/commit/6835019a07169f990889acbadbf91387ed1d0532)) |
| 71 | +* **security:** Refactor credential package structure and add credential payload helpers for JWT, OIDC and API Key ([d41501c](https://github.com/origadmin/runtime/commit/d41501c2143d00fd36a4d9d55c4d8687ff5b7d55)) |
| 72 | +* **security:** Refactor credential proto with improved type safety and metadata handling ([3c49d0b](https://github.com/origadmin/runtime/commit/3c49d0b2598c403fd3e45e517af40c916c0929be)) |
| 73 | +* **security:** Refactor credential protobuf definitions and add Payload, CredentialSource, and CredentialResponse types ([13b829c](https://github.com/origadmin/runtime/commit/13b829c0e678d61673fce5ca80f494265f5de298)) |
| 74 | +* **security:** Refactor error constants and Principal model to follow SUBJECT_MODIFIER naming convention and use structpb.Value for claims ([0ab6c40](https://github.com/origadmin/runtime/commit/0ab6c4027662b9d66271c10bd98224cf7b95d775)) |
| 75 | +* **security:** Refactor error constants and Principal model to follow SUBJECT_MODIFIER naming convention and use structpb.Value for claims ([d36d463](https://github.com/origadmin/runtime/commit/d36d46313a094027c210081b55884b8b19dc72f1)) |
| 76 | +* **security:** Refactor JWT auth proto definitions and credential handling ([676d3bb](https://github.com/origadmin/runtime/commit/676d3bb7e17c9ccae23ac122c908bede5a2cba8f)) |
| 77 | +* **security:** Refactor middleware tests with improved assertions and error handling ([2836009](https://github.com/origadmin/runtime/commit/2836009e0f2cd6e7e67e9a4ee0d0cbef5deaf0ed)) |
| 78 | +* **security:** Refactor security interfaces by renaming AuthRequest to Request and consolidating packages under security ([e3658c2](https://github.com/origadmin/runtime/commit/e3658c2089fc5dc00ffa7b3f2537e802b54174d2)) |
| 79 | +* **security:** Refactor security interfaces with principal enhancements and deprecated package reorganization ([18646ca](https://github.com/origadmin/runtime/commit/18646ca7f4cf67340e85515f30a2fed5c4271012)) |
| 80 | +* **security:** Refactor security policy implementation and update proto definitions ([7edcd92](https://github.com/origadmin/runtime/commit/7edcd92c45179b9a2b5bdc77d842adf1c442f0f1)) |
| 81 | +* **security:** Refactor security request handling and registry with unified policy management and transport support ([57c8aa3](https://github.com/origadmin/runtime/commit/57c8aa36955c10f25a0368d090d4128352a204e8)) |
| 82 | +* **security:** Refine credential proto definitions with usage guidelines and clear input/output distinctions ([13f2dca](https://github.com/origadmin/runtime/commit/13f2dca7beca653339c7558388437740073a4ccb)) |
| 83 | +* **security:** Refine declarative security interfaces with improved docs and context handling ([e8fb918](https://github.com/origadmin/runtime/commit/e8fb9183596f04b8a040c89e5e50d7e5550f7385)) |
| 84 | +* **security:** Rename meta to metadata in credential proto and clean up imports ([7f2f707](https://github.com/origadmin/runtime/commit/7f2f707518bdccdd55e4423b82a4ea56df6c9217)) |
| 85 | +* **security:** Replace structpb with wrapperspb for metadata handling and add support for primitive types ([9dad9bb](https://github.com/origadmin/runtime/commit/9dad9bbded69e80cabed0aac0220bcb6e07bf648)) |
| 86 | +* **security:** Simplify credential proto definitions and clarify usage guidelines ([f9dae5b](https://github.com/origadmin/runtime/commit/f9dae5b1a6cbb69afd7fedc182a369271f93c50b)) |
| 87 | +* **security:** Split security middleware into Kratos and standard HTTP variants ([2ce1fe0](https://github.com/origadmin/runtime/commit/2ce1fe0231351fcf00d5ab8315c429ab68613f7e)) |
| 88 | +* **storage:** implement Put and Get methods for LocalStorage and clean up test assertions ([ba8a119](https://github.com/origadmin/runtime/commit/ba8a1196ba5b52d43aaf19184edb751a161b652b)) |
| 89 | +* **storage:** refactor cache and objectstore with improved error handling and config defaults ([b57b448](https://github.com/origadmin/runtime/commit/b57b448de10244851cf3494debac62639ba7f2ec)) |
| 90 | +* **storage:** refactor cache and storage interfaces with improved defaults and cleanup logic ([f134654](https://github.com/origadmin/runtime/commit/f134654c56945ccbcdf9c85379bc4eae1596035b)) |
| 91 | +* **storage:** refactor cache implementation to use builder pattern and registry ([90320de](https://github.com/origadmin/runtime/commit/90320de7dc4c9e6ae0cb9845302321ceefb93113)) |
| 92 | +* **test:** Add Kratos HTTP HandlerFunc context propagation test scenario ([9d90ac7](https://github.com/origadmin/runtime/commit/9d90ac7407764106a34265c3d42fabcd33331af6)) |
| 93 | +* **transport:** Export RegisterPprof function for pprof handlers ([2281563](https://github.com/origadmin/runtime/commit/228156399c62fe58440cb54f41a9c75a2b919e88)) |
| 94 | +* **transport:** move TLS config from security/transport to transport/tls and update imports ([5ec1f54](https://github.com/origadmin/runtime/commit/5ec1f54a1ac2738332f4a931e5668a75e52ee41b)) |
| 95 | +* **transport:** Refactor gRPC and HTTP transport options to use direct middleware and discovery maps instead of container dependency ([a8b9301](https://github.com/origadmin/runtime/commit/a8b93015351a74828b57fe8f1eae2dd35cad66d8)) |
| 96 | +* **transport:** Refactor middleware and discovery handling with direct options injection ([16f4032](https://github.com/origadmin/runtime/commit/16f403211ab6102aa740aef6471ff674969918a8)) |
| 97 | +* **transport:** refactor service registration with context support and simplified interface ([959bc46](https://github.com/origadmin/runtime/commit/959bc461151a806217de65a735102d9d4c8da27f)) |
| 98 | + |
3 | 99 | ## [0.2.12](https://github.com/origadmin/runtime/compare/v0.2.11...v0.2.12) (2025-11-06) |
4 | 100 |
|
5 | 101 |
|
|
0 commit comments