<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/src/migration-scripts/snmp, branch mergify/bp/circinus/pr-4091</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=mergify%2Fbp%2Fcircinus%2Fpr-4091</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-1x.git/atom?h=mergify%2Fbp%2Fcircinus%2Fpr-4091'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/'/>
<updated>2024-09-11T16:53:48+00:00</updated>
<entry>
<title>migration: T6007: convert all migration scripts to load as module</title>
<updated>2024-09-11T16:53:48+00:00</updated>
<author>
<name>John Estabrook</name>
<email>jestabro@vyos.io</email>
</author>
<published>2024-06-20T01:16:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=b5db9395ed576ef97b1692ca66c00900c532d6a1'/>
<id>urn:sha1:b5db9395ed576ef97b1692ca66c00900c532d6a1</id>
<content type='text'>
(cherry picked from commit 26740a8d583f64dc0a27b59dd4ae303056972c0b)
</content>
</entry>
<entry>
<title>T6199: remove unused Python imports from migration scripts</title>
<updated>2024-04-06T08:46:30+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2024-04-06T08:46:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=489e6fababa60d9c0fbfdb421305cbe563432499'/>
<id>urn:sha1:489e6fababa60d9c0fbfdb421305cbe563432499</id>
<content type='text'>
</content>
</entry>
<entry>
<title>T5427: Fix migration script arguments len expects 2 args</title>
<updated>2023-08-02T09:12:23+00:00</updated>
<author>
<name>Viacheslav Hletenko</name>
<email>v.gletenko@vyos.io</email>
</author>
<published>2023-08-02T09:12:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=d1923b7b58795f0d9635ae0e8df110f591881bdf'/>
<id>urn:sha1:d1923b7b58795f0d9635ae0e8df110f591881bdf</id>
<content type='text'>
The script's name is always provided as the first argument sys.argv[0]
Expected length for argv is 2 (script itself + config file)

Change: 'if (len(argv) &lt; 1)' to 'if len(argv) &lt; 2'
</content>
</entry>
<entry>
<title>T5001: Replace links to the phabricator site</title>
<updated>2023-02-12T19:55:16+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-02-12T19:55:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=bd9416a6aa9d5d0a746dc2cebc8d0330fd27d1a2'/>
<id>urn:sha1:bd9416a6aa9d5d0a746dc2cebc8d0330fd27d1a2</id>
<content type='text'>
Replace links to the phabricator site from https://phabricator.vyos.net to
https://vyos.dev
</content>
</entry>
<entry>
<title>T4857: Cleaning pr</title>
<updated>2023-01-18T15:16:05+00:00</updated>
<author>
<name>Nicolas Fort</name>
<email>nicolasfort1988@gmail.com</email>
</author>
<published>2023-01-18T15:09:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=1ce8e672b57e03e144998cb0a56ad1622c667a1d'/>
<id>urn:sha1:1ce8e672b57e03e144998cb0a56ad1622c667a1d</id>
<content type='text'>
</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: T1769: remove TSM (Transport Security Mode) support</title>
<updated>2019-10-27T03:29:31+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2019-10-27T03:23:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=556b528ef9cc1eca9d142ebe1f8f88cd02d536da'/>
<id>urn:sha1:556b528ef9cc1eca9d142ebe1f8f88cd02d536da</id>
<content type='text'>
The SNMPv3 TSM is very complex and I know 0 users of it. Also this is untested
and I know no way how it could be tested. Instead of carrying on dead and
unused code we should favour a drop of it using a proper config migration
script.
</content>
</entry>
<entry>
<title>snmp: T818: T1738: remove per user/trap engine id</title>
<updated>2019-10-27T03:07:11+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2019-10-26T22:47:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=d523111279b3a9a5266b442db5f04049a31685f7'/>
<id>urn:sha1:d523111279b3a9a5266b442db5f04049a31685f7</id>
<content type='text'>
As of the SNMP specification an SNMP engine ID should be unique per device.
To not make it more complicated for users - only use the global SNMP engine ID.
</content>
</entry>
</feed>
