<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/data/templates/snmp/etc.snmpd.conf.tmpl, branch feature/T9082-codeql-cpp</title>
<subtitle>VyOS command definitions, scripts, and utilities (mirror of https://github.com/vyos/vyos-1x.git)
</subtitle>
<id>https://git.amelek.net/vyos/vyos-1x.git/atom?h=feature%2FT9082-codeql-cpp</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-1x.git/atom?h=feature%2FT9082-codeql-cpp'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/'/>
<updated>2022-05-01T16:59:29+00:00</updated>
<entry>
<title>snmp: T4353: fix Jinja2 linting errors</title>
<updated>2022-05-01T16:59:29+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2022-05-01T16:59:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=5ffbd74baee4c3e987fe1875c2c73a1fe7afdbe1'/>
<id>urn:sha1:5ffbd74baee4c3e987fe1875c2c73a1fe7afdbe1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>snmp: T4333: migrate to new vyos_defined Jinja2 test</title>
<updated>2022-04-11T18:57:16+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2022-04-11T18:57:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=7e946dc26f628ac716a1d6a75664781e5685cb66'/>
<id>urn:sha1:7e946dc26f628ac716a1d6a75664781e5685cb66</id>
<content type='text'>
</content>
</entry>
<entry>
<title>snmp: T4124: migrate to get_config_dict()</title>
<updated>2021-12-30T20:38:16+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2021-12-30T20:37:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=566f7f2401b79a79abe5ed9597fed325540983fa'/>
<id>urn:sha1:566f7f2401b79a79abe5ed9597fed325540983fa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>snmp: T2763: Add protocol TCP for service snmp</title>
<updated>2021-10-25T18:34:35+00:00</updated>
<author>
<name>Viacheslav</name>
<email>v.gletenko@vyos.io</email>
</author>
<published>2021-10-25T18:07:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=45f815928976519ffba2ecadf197f725e7640852'/>
<id>urn:sha1:45f815928976519ffba2ecadf197f725e7640852</id>
<content type='text'>
</content>
</entry>
<entry>
<title>snmp: T652: enable interface_replace_old option and restart command</title>
<updated>2021-01-15T20:35:06+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2021-01-15T20:35:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=79a02470c4f9f2184913a959545b54a2dfd76d1e'/>
<id>urn:sha1:79a02470c4f9f2184913a959545b54a2dfd76d1e</id>
<content type='text'>
- Remove all old ifTable entries with the same ifName as newly appeared
  interface (with different ifIndex) - this is the case on e.g. ppp interfaces
- Add new op-mode command "restart snmp" to restart the daemon
</content>
</entry>
<entry>
<title>snmp: T2687: precalculate snmpv3 encrypted keys</title>
<updated>2020-07-11T15:55:21+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2020-07-11T15:55:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=d9c7dfb1e7a8ad4a44b571e3d4b8d87ff3898678'/>
<id>urn:sha1:d9c7dfb1e7a8ad4a44b571e3d4b8d87ff3898678</id>
<content type='text'>
As of now when adding new credentials for any SNMPv3 user we submit the
credential either plaintext or encrypted. A plaintext credential will be hashed
by SNMPd in the background and then passed back into the CLI so it's not stored
in cleartext. This feels like the wrong way in changing the CLI content with
data produced by a 3rd party daemon which implements the service.

It feels like the tail wiggles the entire dog.

This should be changed in the following way:
- After retrieving the plaintext password from CLI, use Python to hash the key
  in advance
- Re-populate the encrypted key into the CLI and drop the plaintext one
- Generate service configuration and continue startup of SNMPd

This also fixes a race condition when SNMPd started up but not properly
provided the hasehd keys in the configuration resulting in a ConfigurationError.
Now as we also support binding SNMPd to a VRF this fixes a deadlock situation
on bootup as we can only bind late to the VRF and require up to 5 restarts of
the service - but the service will never start.
</content>
</entry>
<entry>
<title>snmp: T2230: move inlined templates to dedicated files</title>
<updated>2020-04-05T17:12:57+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2020-04-05T17:12:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=870676f17138677c3504386c35db2a966291895c'/>
<id>urn:sha1:870676f17138677c3504386c35db2a966291895c</id>
<content type='text'>
</content>
</entry>
</feed>
