Skip to content

feat: Makes TPM device path configurable per Agent#25

Open
jsnctl wants to merge 1 commit intospiffe:masterfrom
cofide:jsnctl/configurable-tpm-path
Open

feat: Makes TPM device path configurable per Agent#25
jsnctl wants to merge 1 commit intospiffe:masterfrom
cofide:jsnctl/configurable-tpm-path

Conversation

@jsnctl
Copy link
Copy Markdown

@jsnctl jsnctl commented Jan 8, 2026

This change introduces TPMPath as a configurable parameter for the Agent plugin to set a non-standard device location for the TPM. If the path is not provided, it falls back to the default case

This is useful for using software TPMs (like swtpm) which often mount in alternative chardev locations to the standard /dev/tpmrm0, and can be used to avoid clashes between hardware and software TPMS in scenarios like testing and CI

* [WIP] Passing a user-defined TPM location

* feat: Adds support for configurable tpm_path on Agent

* Fall back to original OpenConfig when path is not provided

* [From review] Remove redundant methods, add error

Signed-off-by: Jason Costello <jason@cofide.io>

---------

Signed-off-by: Jason Costello <jason@cofide.io>
@jsnctl jsnctl changed the title feat: Makes TPM device path configurable per Agent (#1) feat: Makes TPM device path configurable per Agent Jan 8, 2026
@kfox1111
Copy link
Copy Markdown
Collaborator

Sorry for not seeing this sooner. I am not getting notifications for some reason. Will try and fix.

Seems like maybe the socket bits might not work on windows? I've recently tested the mainline plugin on windows and it seems to work. Would this work too, or would the socket code need to be split out to socket_unix/_windows verions?

@jsnctl
Copy link
Copy Markdown
Author

jsnctl commented Jan 27, 2026

Thanks @kfox1111, I'll have a look at fixing for Windows.

It's also struck me this won't work when a chardev is required (ie with a real TPM) - so I'll need to add some handling for this too

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.

2 participants