acassis commented on code in PR #18396:
URL: https://github.com/apache/nuttx/pull/18396#discussion_r2975797336
##########
cmake/savedefconfig.cmake:
##########
@@ -72,9 +72,18 @@ list(SORT LINES)
foreach(LINE IN LISTS LINES)
decode_brackets(LINE)
decode_semicolon(LINE)
- file(APPEND ${OUTPUT_FILE} "${LINE}\n")
+ if(NOT "${LINE}" MATCHES "^CONFIG_FSUTILS_PASSWD_KEY[0-9]"
+ AND NOT "${LINE}" MATCHES "^CONFIG_BOARD_ETC_ROMFS_PASSWD_PASSWORD=")
+ file(APPEND ${OUTPUT_FILE} "${LINE}\n")
+ endif()
endforeach()
+message(
+ WARNING "CONFIG_BOARD_ETC_ROMFS_PASSWD_PASSWORD and"
+ " CONFIG_FSUTILS_PASSWD_KEY1-4 were intentionally excluded from"
+ " defconfig by savedefconfig to avoid leaking credentials."
+ " Add them manually in local defconfig if needed.")
Review Comment:
@Abhishekmishra2808 @xiaoxiang781216 this warning should be printed when to
user enabled the ETC PASSWD and run "make savedefconfig", it is printed to warn
the user that the password and keys cannot be stored automatically in the
generated defconfig
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]