Iterates all secrets stored in this setting.
It is safe to add, remove, and modify secrets inside func, though any additions or removals made during iteration will not
be part of the iteration.
| this | |
| func |
an user provided function |
| user_data |
data to be passed to |