Skip to content

Commit

Permalink
Amendments from reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
jonxstill committed Jul 26, 2024
1 parent 5a62f35 commit 44abba2
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 18 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion python-avd/pyavd/_eos_designs/schema/eos_designs.jsonschema.json
Original file line number Diff line number Diff line change
Expand Up @@ -60764,6 +60764,8 @@
},
"message_digest_keys": {
"type": "array",
"minItems": 1,
"maxItems": 2,
"items": {
"type": "object",
"properties": {
Expand All @@ -60785,10 +60787,14 @@
},
"key": {
"type": "string",
"description": "Key password.\nOnly plaintext passwords are supported here as the password will need to be encrypted for every underlay interface.\nTo protect the password at rest it is recommended to make use of Ansible Vault or similar.\n",
"description": "Key password.\nOnly plaintext passwords are supported here as `eos_designs` will encrypt the password for each individual underlay interface.\nTo protect the password at rest it is strongly recommended to make use of Ansible Vault or similar.\n",
"title": "Key"
}
},
"required": [
"key",
"id"
],
"additionalProperties": false,
"patternProperties": {
"^_.+$": {}
Expand All @@ -60797,6 +60803,10 @@
"title": "Message Digest Keys"
}
},
"required": [
"enabled",
"message_digest_keys"
],
"additionalProperties": false,
"patternProperties": {
"^_.+$": {}
Expand Down
16 changes: 12 additions & 4 deletions python-avd/pyavd/_eos_designs/schema/eos_designs.schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4063,9 +4063,14 @@ keys:
keys:
enabled:
type: bool
required: true
default: false
message_digest_keys:
type: list
required: true
primary_key: id
min_length: 1
max_length: 2
items:
type: dict
keys:
Expand All @@ -4084,13 +4089,16 @@ keys:
default: sha512
key:
type: str
required: true
convert_types:
- int
description: 'Key password.
Only plaintext passwords are supported here as the password will need
to be encrypted for every underlay interface.
Only plaintext passwords are supported here as `eos_designs` will
encrypt the password for each individual underlay interface.
To protect the password at rest it is recommended to make use of Ansible
Vault or similar.
To protect the password at rest it is strongly recommended to make
use of Ansible Vault or similar.
'
underlay_ospf_bfd_enable:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,14 @@ keys:
keys:
enabled:
type: bool
required: true
default: false
message_digest_keys:
type: list
required: true
primary_key: id
min_length: 1
max_length: 2
items:
type: dict
keys:
Expand All @@ -34,7 +39,10 @@ keys:
default: sha512
key:
type: str
required: true
convert_types:
- int
description: |
Key password.
Only plaintext passwords are supported here as the password will need to be encrypted for every underlay interface.
To protect the password at rest it is recommended to make use of Ansible Vault or similar.
Only plaintext passwords are supported here as `eos_designs` will encrypt the password for each individual underlay interface.
To protect the password at rest it is strongly recommended to make use of Ansible Vault or similar.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def ethernet_interfaces(self: AvdStructuredConfigUnderlay) -> list | None:
"hash_algorithm": ospf_key.get("hash_algorithm", "sha512"),
"key": encrypt(
ospf_key["key"],
passwd_type="ospf_message_digest",
passwd_type="ospf_message_digest", # NOSONAR
key=ethernet_interface["name"],
hash_algorithm=ospf_key.get("hash_algorithm", "sha512"),
key_id=ospf_key["id"],
Expand Down

0 comments on commit 44abba2

Please sign in to comment.