Skip to content

feat: Add username field to platform config for SSH auth enforcement - #92

Merged
lykinsbd merged 1 commit into
masterfrom
feat/89-username-support
Mar 1, 2026
Merged

feat: Add username field to platform config for SSH auth enforcement#92
lykinsbd merged 1 commit into
masterfrom
feat/89-username-support

Conversation

@lykinsbd

@lykinsbd lykinsbd commented Mar 1, 2026

Copy link
Copy Markdown
Collaborator

Closes #89

- Add Username field to transcript.Platform and fakedevices.FakeDevice
- InitGeneric populates Username from platform config
- PasswordHandler enforces username when set (any username accepted if empty)
- Update Junos platform entry with username: admin
- Add TestGenericListener_UsernameEnforcement
- Document username field in configuration.md and transcripts.md

Closes #89
@github-actions

github-actions Bot commented Mar 1, 2026

Copy link
Copy Markdown
Contributor

Merging this branch will increase overall coverage

Impacted Packages Coverage Δ 🤖
github.com/tbotnz/cisshgo/fakedevices 96.00% (ø)
github.com/tbotnz/cisshgo/ssh_server/sshlisteners 93.33% (+1.03%) 👍
github.com/tbotnz/cisshgo/transcript 100.00% (ø)

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/tbotnz/cisshgo/fakedevices/genericFakeDevice.go 95.35% (ø) 43 41 2
github.com/tbotnz/cisshgo/ssh_server/sshlisteners/sshlisteners.go 93.33% (+1.03%) 15 (+2) 14 (+2) 1 👍
github.com/tbotnz/cisshgo/transcript/transcript.go 100.00% (ø) 27 27 0

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/tbotnz/cisshgo/ssh_server/sshlisteners/sshlisteners_test.go

@lykinsbd
lykinsbd merged commit 5d68f9b into master Mar 1, 2026
4 checks passed
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.

feat: Add username field to platform config for SSH auth enforcement and prompt templating

1 participant