Skip to content

Add client-authority support to config profile settings#1084

Open
NasitSony wants to merge 3 commits into
temporalio:mainfrom
NasitSony:fix/add-client-authority-to-config
Open

Add client-authority support to config profile settings#1084
NasitSony wants to merge 3 commits into
temporalio:mainfrom
NasitSony:fix/add-client-authority-to-config

Conversation

@NasitSony
Copy link
Copy Markdown
Contributor

Related issues

Closes #1013

What changed?

  • Added authority to envConfigPropsToFieldNames map so
    client-authority can be get/set via config commands
  • Wired cfg.ClientAuthority to profile.Authority in client.go
  • Updated DefaultConfigFilePath() call sites for envconfig v1.0.2
    signature change (returns string instead of (string, error))
  • Bumped go.temporal.io/sdk/contrib/envconfig to v1.0.2
  • Added authority field to config tests

Checklist

Stability

  • ✅ No breaking changes
  • ✅ Works against OSS server
  • ✅ Flag named after API concept (client-authority)
  • ✅ No duplicate flags
  • ✅ No short aliases
  • ✅ Added test coverage in commands.config_test.go

Design

  • ✅ Works against OSS server
  • ✅ Flag named after API concept (client-authority)
  • ✅ No duplicate flags
  • ✅ No short aliases

Tests

  • Added functional test (SharedServerSuite) — config set/get test needed

Manual tests

Setup

temporal server start-dev --headless

Happy path

$ temporal config set --prop client-authority --value my-authority
$ temporal config get --prop client-authority
my-authority

Error case

$ temporal config set --prop client-authority
Error: required flag --value not set

NasitSony added 3 commits June 5, 2026 13:44
Convert SearchAttributes using CustomJSONMarshalOptions before
assigning to printableSchedule, ensuring typed fields serialize
correctly through standard json.Marshal.

Fixes temporalio#590
Wire ClientAuthority flag into the envconfig ClientConfigProfile
so it can be set via 'temporal config set --prop client-authority'.

Also updates DefaultConfigFilePath() call sites to handle the
updated signature in envconfig v1.0.2 which now returns a single
string instead of (string, error).

Fixes temporalio#1013
Wire ClientAuthority flag into envconfig ClientConfigProfile so
it can be set and retrieved via 'temporal config set/get':

  temporal config set --prop client-authority --value my-authority
  temporal config get --prop client-authority

Changes:
- Add 'authority' to envConfigPropsToFieldNames map in commands.config.go
- Wire cfg.ClientAuthority to profile.Authority in client.go
- Update DefaultConfigFilePath() call sites for envconfig v1.0.2
  signature change (string instead of string, error)
- Bump go.temporal.io/sdk/contrib/envconfig to v1.0.2
- Add authority field to config tests

Fixes temporalio#1013
@NasitSony NasitSony requested a review from a team as a code owner June 5, 2026 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Add client-authority to config settings

1 participant