| Add .github/copilot-instructions.md for AI-assisted development (#183) | 8 months ago |
| Remove MSEE directory (#29) | 6 years ago |
| prevent downcasting of 64-bit integer (#142) Why I did it prevent downcasting of 64-bit integer How I did it replace Atoi with ParseInt with appropriate int type | 3 years ago |
| Remove MSEE directory (#29) | 6 years ago |
| Remove MSEE directory (#29) | 6 years ago |
| Update debian files (#31) * Update debian files * Add Readme Address review comments * Enable building along with buildimage * Update restapi deb pkg version number * Update README * Update location of go-server-server * Update Go version to 1.11.5 | 6 years ago |
| Remove MSEE directory (#29) | 6 years ago |
| Remove MSEE directory (#29) | 6 years ago |
| Generate code coverage for Unit Tests (#94) | 5 years ago |
| [restapi] Fix nil pointer dereference in monitor_certs when cert file is missing (#184) When os.Lstat() fails (e.g. cert file path does not exist), it returns a nil FileInfo. The original code discarded the error with _ and then called .ModTime() on the nil pointer, causing a SIGSEGV (panic: nil pointer dereference) that crashes the restapi process. Fix: add explicit nil checks after every os.Lstat() call in monitor_certs: - Startup section (3 calls): log.Fatalf so the process fails fast with a descriptive error instead of panicking silently. - Monitor loop (3 calls): log.Printf + sleep + continue so transient missing files are retried next cycle without crashing the server. Signed-off-by: xuliping <xuliping@microsoft.com> Signed-off-by: Liping Xu <xuliping@microsoft.com> | 6 months ago |
| Remove MSEE directory (#29) | 6 years ago |
| prevent downcasting of 64-bit integer (#142) Why I did it prevent downcasting of 64-bit integer How I did it replace Atoi with ParseInt with appropriate int type | 3 years ago |
| Fix race build option not supported issue in armhf (#150) | 2 years ago |
| Changing the wildcard matching logic for client cert common names (#175) Microsoft ADO ID: 36341347 PR #168 added support for wildcard matching between client cert CNs and trusted CNs. This PR changes the wildcard matching logic based on a discussion with @qiluo-msft and @prsunny. Changes: Wildcard patterns starting with * but not *. (e.g., *example.sonic) are no longer valid. These patterns are skipped during the matching. *. is not a valid trusted CN and will be skipped if present. * must match one or more characters. For example, *.example.sonic will not match .example.sonic. Note 1: Comparison is always case sensitive, but * can match both upper and lower case characters. For example, *.example.sonic matches TEST.example.sonic, but it does not match TEST.EXAMPLE.SONIC. Note 2: Multi-level subdomain matching is allowed for wildcard patterns. For example, *.example.sonic matches test.example.sonic, sub.test.example.sonic, one.sub.test.example.sonic, and so on. | 9 months ago |
| [go] Update Go to version 1.15 (#140) Update to 1.15 to avoid CVE-2021-33195 Signed-off-by: Lawrence Lee <lawlee@microsoft.com> | 3 years ago |
| Remove MSEE directory (#29) | 6 years ago |
| Extend prefix length for routes and advertisement (#180) IPv6 Prefix length to /48 (route) and /40 (advertised network) IPv4 Prefix length fixed to /18 and above for both route prefixes and advertised prefixes. However, for IPv6, its currently advertised prefix minimum length is /60. This has some limitations and extending it to accept /40 as the minimum for adv prefix and /48 as minimum for route prefixes. | 9 months ago |
| Remove MSEE directory (#29) | 6 years ago |
| Fix buster-backports debian mirror issue. (#152) Fix debian mirror buster-backports issue. | 2 years ago |
| Upgrade the containers to be based on Debian Buster (#103) * Upgrade the containers to be based on Debian Buster Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com> * Fix the clean target to clean up libswsscommon as well Running make clean from this directory doesn't clean up object files in libcswsscommon, which means stale compiled objects could be used for new builds. When switching between the 202012 branch and master branch in a full SONiC build, this will result in a crash due to ABI differences in swss-common. Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com> | 4 years ago |
| upgrade libboost to 1.83 to fix libswsscommon download (#170) upgrade the libboost version to 1.83 to fix the following error: make -C libcswsscommon make[2]: Entering directory '/src/rest/libcswsscommon' g++ -g -std=c++11 -Iinclude -I/common -I/usr/include/swss -c src/dbconnector.cpp -o src/dbconnector.o src/dbconnector.cpp:2:10: fatal error: dbconnector.h: No such file or directory 2 | #include <dbconnector.h> | ^~~~~~~~~~~~~~~ This file can not be found because libswsscommon-dev_1.0.0_amd64.deb is not correctly set up, which is caused by dpkg: dependency problems prevent configuration of libswsscommon: #9 0.480 libswsscommon depends on libboost-serialization1.83.0 (>= 1.83.0); however: #9 0.480 Package libboost-serialization1.83.0 is not installed. This issue occurred after Dec 15 2025 due to the package | 9 months ago |
| Install libyang to azure pipeline (#128) #### Why I did it sonic-swss-common lib will add dependency to libyang soon, so need install libyang lib to prevent build and UT break. #### How I did it Modify azure pipeline to install libyang in azure pipeline steps. #### How to verify it Pass all UT. #### Which release branch to backport (provide reason below if selected) #### Description for the changelog Modify azure pipeline to install libyang in azure pipeline steps. #### Link to config_db schema for YANG module changes #### A picture of a cute animal (not mandatory but encouraged) | 4 years ago |
| Upgrade the containers to be based on Debian Buster (#103) * Upgrade the containers to be based on Debian Buster Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com> * Fix the clean target to clean up libswsscommon as well Running make clean from this directory doesn't clean up object files in libcswsscommon, which means stale compiled objects could be used for new builds. When switching between the 202012 branch and master branch in a full SONiC build, this will result in a crash due to ABI differences in swss-common. Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com> | 4 years ago |
| upgrade libboost to 1.83 to fix libswsscommon download (#170) upgrade the libboost version to 1.83 to fix the following error: make -C libcswsscommon make[2]: Entering directory '/src/rest/libcswsscommon' g++ -g -std=c++11 -Iinclude -I/common -I/usr/include/swss -c src/dbconnector.cpp -o src/dbconnector.o src/dbconnector.cpp:2:10: fatal error: dbconnector.h: No such file or directory 2 | #include <dbconnector.h> | ^~~~~~~~~~~~~~~ This file can not be found because libswsscommon-dev_1.0.0_amd64.deb is not correctly set up, which is caused by dpkg: dependency problems prevent configuration of libswsscommon: #9 0.480 libswsscommon depends on libboost-serialization1.83.0 (>= 1.83.0); however: #9 0.480 Package libboost-serialization1.83.0 is not installed. This issue occurred after Dec 15 2025 due to the package | 9 months ago |
| | 5 years ago |
| [build] Fix Makefile didn't set go build target file. #151 When upgrading golang from v1.15 to 1.19, the default build target is root of source folder. Fix Makefile to support go1.19. | 2 years ago |
| Convert Unit Tests from unittest framework to pytest framework (#93) | 5 years ago |
| Adding support for wildcard CN matching during client cert authentication (#168) * Adding support for wildcard CN matching during client cert authentication. Microsoft ADO ID: 36341347 This PR enables the restapi container (acting as a REST API server) to match Common Names (CNs) provided in the client certificate against trusted wildcard CNs during authentication. Note 1: Exact matching is still supported. Note 2: * can only appear at the beginning of a trusted CN. | 9 months ago |
| Remove MSEE directory (#29) | 6 years ago |
| Fix missing dependencies and improve dependency management (#123) Add missing dependencies: 1. libboost-serialization1.71-dev 2. libzmq5-dev | 4 years ago |
| Fix missing dependencies and improve dependency management (#123) Add missing dependencies: 1. libboost-serialization1.71-dev 2. libzmq5-dev | 4 years ago |
| [Ci] Upgrade python 2 to python 3 (#145) [Ci] Upgrade python 2 to python 3 Fix unit test failure | 3 years ago |
| upgrade debian to bookworm (#167) * upgrade debain to bookworm Signed-off-by: yijingyan2 <yijingyan@microsoft.com> | 10 months ago |
| upgrade debian to bookworm (#167) * upgrade debain to bookworm Signed-off-by: yijingyan2 <yijingyan@microsoft.com> | 10 months ago |
| [Static Route Expiry] Feature support (#124) - Support for GET and POST APIs for custom expiration time - check if static route is persistent or not and add it to the right DB | 4 years ago |
| Remove MSEE directory (#29) | 6 years ago |
| Remove MSEE directory (#29) | 6 years ago |