This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
sonic-buildimage/files/image_config
Renuka Manavalan b346a3a699 Take a copy of existing TACACS credentials and restore it during upgrade ()
In scenario where upgrade gets config from minigraph, it could miss tacacs credentials as they are not in minigraph. Hence restore explicitly upon load-minigraph, if present.

- Why I did it
Upon boot, when config migration is required, the switch could load config from minigraph. The config-load from minigraph would wipe off TACACS key and disable login via TACACS, which would disable all remote user access. This change, would re-configure the TACACS if there is a saved copy available.

- How I did it
When config is loaded from minigraph, look for a TACACS credentials back up (tacacs.json) under /etc/sonic/old_config. If present, load the credentials into running config, before config-save is called.

- How to verify it
Remove /etc/sonic/config_db.json and do an image update. Upon reboot, w/o this change, you would not be able ssh in as remote user. You may login as admin and check out, "show tacacs" & "show aaa" to verify that tacacs-key is missing and login is not enabled for tacacs.
With this change applied, remove /etc/sonic/config_db.json, but save tacacs & aaa credentials as tacacs.json in /etc/sonic/. Upon reboot, you should see remote user access possible.
2021-01-09 08:13:52 -08:00
..
apt [build]: SONiC buildimage ARM arch support () 2019-07-25 22:06:41 -07:00
bash [baseimage]: Increase TMOUT for serial port connections to 15 minutes () 2019-06-19 00:16:01 -07:00
caclmgrd [201911][caclmgrd] Accomadating case insensitive rule props for Control plane ACLs () 2020-11-13 11:41:05 -08:00
config-setup Take a copy of existing TACACS credentials and restore it during upgrade () 2021-01-09 08:13:52 -08:00
constants [bgpcfgd]: Fixes for BBR () 2020-11-19 10:42:42 -08:00
corefile_uploader corefile uploader: Updates per review comments offline () 2019-12-31 14:42:01 -08:00
cron.d [core_cleanup] Fix issue where core_cleanup job runs too frequently () 2019-10-23 15:55:47 -07:00
ebtables [ebtables]add the filter rule for ARP packets with vlan tag: () 2020-05-09 18:36:36 -07:00
environment [image]: Update login message () 2017-06-14 15:18:02 -07:00
fstrim [baseimage]: Add fstrim service and fstrim timer by default () 2019-04-21 14:21:16 -07:00
hostcfgd [201911][hostcfgd]:wait updating the feature table till system init is done () 2020-12-18 12:31:35 -08:00
hostname [hostname-config] improve hostname-config process () 2019-10-29 08:30:27 -07:00
interfaces [interfaces] Reduce Calls to SONiC Cfggen () 2020-12-22 09:51:54 -08:00
kubernetes [baseimage]: Install Kubernetes packages if enabled in image () () 2020-04-16 21:54:45 -07:00
logrotate Move frr logs from syslog to /var/log/frr/*.log () 2020-12-22 10:53:16 -08:00
misc Fix to remove the import of APIClient () 2020-10-27 08:32:37 -07:00
monit [multi-asic] Enhancing monit process checker for multi-asic. () 2020-12-04 13:17:35 -08:00
ntp [ntp] disable ntp long jump () 2020-06-16 08:15:00 -07:00
platform [rc.local] separate configuration migration and grub installation logic () 2020-10-04 19:41:50 +00:00
procdockerstatsd Fix exception when attempting to write a datetime to db () 2020-09-28 16:18:24 +00:00
process-reboot-cause [process-reboot-cause] Use Logger class from sonic-py-common package () 2020-09-19 13:59:59 -07:00
rsyslog Move frr logs from syslog to /var/log/frr/*.log () 2020-12-22 10:53:16 -08:00
snmp mvrf_avoid_snmp_yml_config: made changes to pass SNMP config from con… () 2020-02-03 15:38:38 -08:00
sudoers Add the vtysh command with newly added "-n" option for multi asic to the read_only_cmds () 2020-11-10 12:30:32 -08:00
sysctl Set sock rx Buf size to 3MB. () 2020-11-24 11:21:56 -08:00
syslog [baseimage]: /host unmount timeout issue during reboot. () 2020-08-09 10:38:33 -07:00
systemd [services] Restart SwSS service upon unexpected critical process exit () 2019-05-01 08:02:38 -07:00
topology [platform] Add Support For Environment Variable File () 2020-09-28 21:14:39 +00:00
updategraph [platform] Add Support For Environment Variable File () 2020-09-28 21:14:39 +00:00
warmboot-finalizer [MultiDB] use sonic-db-cli PING and fix wrong multiDB API in NAT () 2020-05-09 18:16:48 -07:00
watchdog-control Add disabling HW watchdog during boot for fast-reboot and warm-reboot () 2020-08-09 11:25:31 -07:00