{"record":{"id":"ede719ff90b4f24c","repo":"flippercloud/flipper","slug":"no-signatures-found-with-expected-version-versi","errorCode":null,"errorMessage":"No signatures found with expected version #{@version}","messagePattern":"No signatures found with expected version #(.+?)","errorType":"exception","errorClass":"Flipper::Cloud::MessageVerifier::InvalidSignature","httpStatus":null,"severity":"error","filePath":"lib/flipper/cloud/message_verifier.rb","lineNumber":55,"sourceCode":"      # Public: Verifies the signature header for a given payload.\n      #\n      # Raises a InvalidSignature in the following cases:\n      # - the header does not match the expected format\n      # - no signatures found with the expected scheme\n      # - no signatures matching the expected signature\n      # - a tolerance is provided and the timestamp is not within the\n      #   tolerance\n      #\n      # Returns true otherwise.\n      def verify(payload, header, tolerance: nil)\n        begin\n          timestamp, signatures = get_timestamp_and_signatures(header)\n        rescue StandardError\n          raise InvalidSignature, \"Unable to extract timestamp and signatures from header\"\n        end\n\n        if signatures.empty?\n          raise InvalidSignature, \"No signatures found with expected version #{@version}\"\n        end\n\n        expected_sig = generate(payload, timestamp)\n        unless signatures.any? { |s| secure_compare(expected_sig, s) }\n          raise InvalidSignature, \"No signatures found matching the expected signature for payload\"\n        end\n\n        if tolerance && timestamp < Time.now - tolerance\n          raise InvalidSignature, \"Timestamp outside the tolerance zone (#{Time.at(timestamp)})\"\n        end\n\n        true\n      end\n\n      private\n\n      # Extracts the timestamp and the signature(s) with the desired version\n      # from the header","sourceCodeStart":37,"sourceCodeEnd":73,"githubUrl":"https://github.com/flippercloud/flipper/blob/1f86de3ec91521585b156445e156642938b19cb0/lib/flipper/cloud/message_verifier.rb#L37-L73","documentation":"Error \"No signatures found with expected version #{@version}\" thrown in flippercloud/flipper.","triggerScenarios":"Thrown at lib/flipper/cloud/message_verifier.rb:55 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Configure the verifier with the same version used when the endpoint was created (usually 'v1')","Upgrade flipper if the Cloud service sends a newer signature version than your gem supports","Check the version option passed to MessageVerifier; it must match the version prefix present in the header"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"1f86de3ec91521585b156445e156642938b19cb0","analyzedAt":"2026-08-23T04:36:09.896Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}