added support for rotating secrets