Skip to content

Commit

Permalink
templates: Add the new agent.conf option 'api_versions'
Browse files Browse the repository at this point in the history
The introduced configuraton option allows the user to select a subset of
the supported API versions to enable.

This is part of the implementation of the enhancement proposal 114:
keylime/enhancements#115

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
  • Loading branch information
ansasaki committed Dec 23, 2024
1 parent c366e82 commit 5756729
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions templates/2.4/agent.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@
# The configuration file version number
version = "{{ agent.version }}"

# The enabled API versions
# This sets which of the supported API versions to enable.
# Only supported versions can be set, which are defined by
# api::SUPPORTED_API_VERSIONS
# A list of versions to enable can be provided (e.g. "2.1, 2.2")
# The following keywords are also supported:
# - "default": Enables all supported API versions
# - "latest": Enables only the latest supported API version
api_versions = "{{ agent.api_versions }}"

# The agent's UUID.
# If you set this to "generate", Keylime will create a random UUID.
# If you set this to "hash_ek", Keylime will set the UUID to the result
Expand Down
5 changes: 5 additions & 0 deletions templates/2.4/mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
"version": "2.4",
"type": "update",
"components": {
"agent": {
"add": {
"api_versions": "default"
}
},
"registrar": {
"add" : {
"malformed_cert_action": "warn"
Expand Down

0 comments on commit 5756729

Please sign in to comment.