# Configuration Normalization in Golang Services

**URL:** <https://forum.golangbridge.org/t/configuration-normalization-in-golang-services/41633>\
**Category:** Technical Discussion\
**Created:** [February 26, 2026, 10:46am UTC](https://forum.golangbridge.org/t/configuration-normalization-in-golang-services/41633 "2026-02-26T10:46:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Azhovan](https://forum.golangbridge.org/user_avatar/forum.golangbridge.org/azhovan/32/14603_2.png) [@Azhovan](https://forum.golangbridge.org/u/Azhovan)\
**Post date:** [February 26, 2026, 10:46am UTC](https://forum.golangbridge.org/t/configuration-normalization-in-golang-services/41633/1 "2026-02-26T10:46:02Z")

</div>

A trailing space in an environment variable can break a deployment.

I just added the Config Transformers to Rigging.

Config values come in as strings (env/files), and they’re often messy. One extra space, weird casing, or a trailing slash can cause annoying bugs. But validation is (and should be) strict.

So something like `" PROD "` can fail `oneof:dev,staging,prod` even though it’s obvious what you meant.

Config Transformers in Rigging run before validation, so you get a nice place to normalize once in a single spot

Want to read more:  
GitHub: [GitHub - Azhovan/rigging: A typed, observable, policy-driven configuration system for Go services.](https://github.com/Azhovan/rigging)  
Docs: [rigging/docs/quick-start.md at main · Azhovan/rigging · GitHub](https://github.com/Azhovan/rigging/blob/main/docs/quick-start.md#typed-transforms)

---

<div class="post-metadata">

**Author:** ![Gohar](https://forum.golangbridge.org/user_avatar/forum.golangbridge.org/gohar/32/16833_2.png) [@Gohar](https://forum.golangbridge.org/u/Gohar)\
**Post date:** [February 26, 2026, 11:37am UTC](https://forum.golangbridge.org/t/configuration-normalization-in-golang-services/41633/2 "2026-02-26T11:37:13Z")

</div>

> [@Azhovan](#):
>
> A trailing space in an environment variable can break a deployment.
> 
> I just added the Config Transformers to Rigging.
> 
> Config values come in as strings (env/files), and they’re often messy. One extra space, weird casing, or a trailing slash can cause annoying bugs. But validation is (and should be) strict.
> 
> So something like `" PROD "` can fail `oneof:dev,staging,prod` even though it’s obvious what you meant.
> 
> Config Transformers i

Config values come as strings, and they’re often messy. A small thing like " PROD " can fail strict validation like oneof:dev,staging,prod just because of extra spaces or casing. Config Transformers fix this by cleaning the value first — trimming spaces, fixing casing, etc. So validation stays strict, but small formatting mistakes don’t break your deployment.

---

<div class="post-metadata">

**Author:** ![system](https://forum.golangbridge.org/uploads/default/original/2X/5/5ad234f7c3dbc68b6cc72d338ce4f2973d9fd81c.png) [@system](https://forum.golangbridge.org/u/system)\
**Post date:** [May 27, 2026, 11:38am UTC](https://forum.golangbridge.org/t/configuration-normalization-in-golang-services/41633/3 "2026-05-27T11:38:05Z")

</div>

Closed on May 27, 2026, 11:38am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
