Skip to content

Fix custom client PivSlot overridden by server settings#34349

Merged
Joerger merged 1 commit intomasterfrom
joerger/fix-piv-client-custom-slot
Nov 14, 2023
Merged

Fix custom client PivSlot overridden by server settings#34349
Joerger merged 1 commit intomasterfrom
joerger/fix-piv-client-custom-slot

Conversation

@Joerger
Copy link
Copy Markdown
Contributor

@Joerger Joerger commented Nov 8, 2023

tsh --piv-slot was always ignored in favor of the cap.piv_slot, even when empty.

Changelog: Fix tsh --piv-slot custom PIV slot setting for Hardware Key Support

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 8, 2023

The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with changelog: followed by the changelog entries for the PR.

Comment thread lib/client/api_test.go
for _, test := range tests {
t.Run(test.desc, func(t *testing.T) {
tc := &TeleportClient{Config: test.tcConfigIn}
tc.applyAuthSettings(test.settingsIn)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any chance we could test this via a public API?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally this would be tested through the Ping method, but I don't have time to add a mock Web apiserver here at the moment.

@Joerger Joerger added this pull request to the merge queue Nov 14, 2023
Merged via the queue into master with commit 04d9f74 Nov 14, 2023
@Joerger Joerger deleted the joerger/fix-piv-client-custom-slot branch November 14, 2023 19:17
@public-teleport-github-review-bot
Copy link
Copy Markdown

@Joerger See the table below for backport results.

Branch Result
branch/v14 Failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants