Repository navigation
Releases
Releases · SamPetherbridge/Rigging
0.3.0
What's New in 0.3.0
Added
RiggingCore,Rigging, &RiggingArgumentParser: AddedRiggedSettings.defaultSecretProvidersandRiggedSettings.makeDefaultContext()so@Settings/@Riggedmodels can register external secret providers (such as.onePassword()and.keychain()) once and haveload(),load(cliArguments:),SettingsWatcher, and turnkeyConfigSubcommand(config show,config doctor) use them automatically.
Changed
- Documentation & Positioning: Refined positioning across
README.md, DocC catalogs, anddocs/SPECIFICATION.mdto highlight Rigging's primary role for Swift CLIs, macOS developer/automation tools, and Swift Server services alongsideapple/swift-configurationandswift-argument-parser; fixed exit-code and API references inRiggingCore.md,CONTRIBUTING.md, andSettingsProtocol.swift; replaced raw Mermaid syntax inRigging.mdwith a DocC-native diagram for Swift Package Index hosting. - Licensing & Governance: Updated
LICENSEcopyright to Peth Pty Ltd, added a direct maintainer contact toCODE_OF_CONDUCT.md, and updatedSECURITY.mdsupported versions to0.3.x.
Full Changelog: 0.2.0...0.3.0
0.2.0
Release 0.2.0 of Rigging — preserving literal spaces in 1Password CLI references and surfacing structured 1Password rate-limit errors.
Installation (Swift Package Manager)
Update Rigging in your Package.swift (Swift 6.2+, macOS 15+ / iOS 18+ / tvOS 18+ / watchOS 11+ / visionOS 2+ / Linux):
dependencies: [
.package(url: "https://github.com/SamPetherbridge/Rigging.git", from: "0.2.0"),
]Added
RiggingCore:- Add
SecretResolutionError.rateLimited(scheme:message:retryAfter:remediation:)(exitCode == 6/.providerFailure) so callers switching on provider errors can distinguish rate limits from authentication or missing-item failures (#4). - Add
ValidationIssue.isRateLimited(Bool) andValidationIssue.retryAfter(Duration?) — also exposed asisRateLimitedandretryAfterSecondsinSettingsValidationError.jsonPayload()— while keeping existingValidationIssueinitialisers andCodablepayloads source- and wire-compatible (#4).
- Add
Fixed
RiggingOnePassword:- Classify 1Password CLI (
op inject/op) rate-limit stderr (Try again in <N> second(s)) and 1Password Connect HTTP429responses (Retry-Afterdelta-seconds) asSecretResolutionError.rateLimitedwith boundedretryAfter(nilwhen absent, non-numeric, negative, zero, HTTP-date, or out of range) without echoingstderror HTTP bodies (#4).
- Classify 1Password CLI (
RiggingCore&RiggingOnePassword:- Preserve literal spaces in
OnePasswordSecretReference.opReadURIsoop injectandop readsucceed with space-containing vault, item, section, and field names instead of failing withinvalid character in secret path: %, while keeping 1Password Connect HTTP path encoding separate and rejecting CLI delimiter/template-breaking characters (#5).
- Preserve literal spaces in
Full Changelog: 0.1.0...0.2.0
Rigging 0.1.0
Initial 0.1.0 release of Rigging — declarative multi-source settings, batched secret references, and configuration provenance for Swift 6.
Installation (Swift Package Manager)
Add Rigging to your Package.swift (Swift 6.2+, macOS 15+ / iOS 18+ / tvOS 18+ / watchOS 11+ / visionOS 2+ / Linux):
dependencies: [
.package(url: "https://github.com/SamPetherbridge/Rigging.git", from: "0.1.0"),
]Added
Rigging&RiggingMacros:@Settingsand@Rigged(SwiftUI-safe alias) attached macros synthesizing multi-source loading, nested@NestedSettingscomposition,$fieldSettingMetadata<Value>provenance projections,ProvenanceReportgeneration, and Draft 2020-12 JSON Schema /.env/ Markdown exporters with zero runtimeMirrorreflection.@Settingand@SecretSettingpeer macros supportingaliases(.env,.configPath,.cli), typedSettingValidator<T>rules,SettingTransform<T>andSecretTransformpipelines, doc-comment extraction, and compile-time diagnostics.
RiggingCore(Zero External Dependencies):- Deterministic 8-layer configuration cascade (
InitSource,EnvironmentSource,DotEnvSource,SecretsDirSource,ProjectConfigSource,UserConfigSource,ManagedPreferencesSource, and Swift defaults) with full winning and shadowedSettingOriginprovenance. - RFC-compatible
.envparser supportingexport, single/double/unquoted strings, multiline PEM blocks,#comments,${VAR}/${VAR:-default}/${VAR-default}interpolation, and exact 1-based line tracking. - Upward project config discovery (stopping inclusively at
.gitor$HOME), XDG / Application Support user config lookup, named"profiles"overlays, andExtraKeysPolicy(.ignore,.warn,.forbid,.allow). - Rich
SettingValueDecodablesupport for scalars, flexibleBoolliterals, fixed-width integers, floating-point types,Decimal,UUID,URL, ISO-8601Date,Data,Duration(30s,500ms,5m,1h),ByteCount(512KB,10MB,2GiB), case-insensitiveRawRepresentableenums, andEnvCollectionStrategycollections. - Leak-proof
Secret<Value>("**********"across descriptions,Mirror, and defaultEncodable),Synchronization.Mutex-backedDiagnosticRedactor, atomic0700/0600withEphemeralFilematerializer with zero-overwrite cleanup, two-phase batchedSecretResolverwith TTLSecretResolutionCache,FileSecretProvider(0600check), andIndirectEnvProvider. - Multi-issue
SettingsValidationErroraggregation (LocalizedError+ deterministic JSON payload) with exit code taxonomy (2validation/missing,4unsafe secret storage,6external provider failure) andSettingsWatcherlive reloader (SIGHUP+ file polling).
- Deterministic 8-layer configuration cascade (
- Secret Provider Modules:
RiggingOnePassword: Single-passop injectbatch resolution over in-memory pipes with 128-bit cryptographic boundary nonces, OTP & document support, Service Account &--accountrouting, and 1Password Connect REST API support (FoundationNetworkingcompatible on Linux).RiggingKeychain: Direct in-processSecurity.frameworkSecItemCopyMatchinglookups for generic and internet passwords (accessGroup,synchronizable).RiggingBitwarden: Bitwarden Secrets Manager (bws://) and Vault CLI (bw://) batch resolution.RiggingUnixPass:pass(pass://line,#full,#line:N, and#keymetadata extraction) andsops(sops://in-memory RFC 6901 JSON Pointer resolution).
- Ecosystem & Format Modules:
RiggingArgumentParser: Non-clobberingParsableArguments/RiggingCLIOptionsbridge (omitting unsetniloptionals) and turnkeyConfigSubcommand<Settings>(config show,config doctor,config schema,config init).RiggingSwiftConfiguration: Bidirectional adapter (SwiftConfigurationSourceandasConfigProvider()/asConfigReader()) forapple/swift-configurationpreservingisSecret: trueon all@SecretSettingfields.RiggingTOML: Zero-dependency pure-Swift TOML v1.0 parser andTOMLProjectConfigSource/TOMLUserConfigSource.RiggingYAML:Yams-backedYAMLFileSource,YAMLProjectConfigSource, andYAMLUserConfigSourcewith<<merge-key andprofilessupport.RiggingTesting: HermeticSettingsContext.inMemory(...),InMemoryFileSystem,MockOnePasswordProvider,MockKeychainProvider,MockSubprocessRunner, andTestFixtures.
- Documentation & Tooling:
- Multi-module Apple DocC catalogs across all 11 library products with Swift Package Index (
.spi.yml) configuration andswift-docc-pluginintegration.
- Multi-module Apple DocC catalogs across all 11 library products with Swift Package Index (
Full Changelog: https://github.com/SamPetherbridge/Rigging/commits/0.1.0