Nitpick: iPhone 7 never got iOS 16 or 17, which means it won’t be fully patched (https://arstechnica.com/gadgets/2022/10/apple-clarifies-secu...).
Soon you can also expect Apple to stop providing both service and parts for it (https://support.apple.com/en-us/HT201624).