From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=0.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [IPv6:2a01:4f8:1c0c:6b10::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 5996A1F44D for ; Wed, 27 Mar 2024 08:48:33 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; secure) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=ElXLzN+h; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=CAUs4laX; dkim-atps=neutral Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 2D74B838AF; Wed, 27 Mar 2024 08:48:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1711529306; bh=pdZUQjFUqPX4SHQNvft503mTOrW5N69wotYkMgAh1VM=; h=Date:References:To:Reply-To:Subject:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From:Cc:From; b=ElXLzN+hGIab3JfpGFzjZ0xKNmhaWkU8iXzoMGaJwWqK3m3GLh0CnqcftXPAXRPA1 ug3Y0qdKKmqYPQSgSIMXdyPLfiXtx6O05p5ZKttJR0eJLAEHtITZGRXYHt0yfS2Eie mUxsKN2CsHKOH1qUjJfatZBla8L9kREM+z2DYp+0= Received: from s.wrqvtzvf.outbound-mail.sendgrid.net (s.wrqvtzvf.outbound-mail.sendgrid.net [149.72.126.143]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 80CE18332A for ; Wed, 27 Mar 2024 08:48:21 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=pass (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=CAUs4laX; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc:content-type:from:subject:to; s=s1; bh=O2jomYb/0R1Evtj1npDsqdMGb0X9huWJ/OOaK5hb2gQ=; b=CAUs4laXJjuXQjnZJFrdUSnWkc4HE2xmPS3It0o0v+n/36skszM6OorbwEBR6dN8cFAr DCJxlFu+h0/G4nsZTWfx8w2uaSgCzFx1BS2ggzUeJiftRGM4DZEw89yvQnryp3GKjYZMJ/ Slt5DCIzZkXzCBmcI9RY8wzcoCxbqF/cg42UODs8MkmO1TVAOSHC2fISF4oC6+Q3OeIKrb mAcrLsmhd48BfQShcTCflYb3UlvaE9CX16B3F0LPMRCGi9TMeAIKCBsvQg0If10yKl6HqL BCEHWdo2dQxcz27N8NWnM+Q287J3SKSA9ay579NZcewDqUZ4RYoEplKXuxqGWiMA== Received: by recvd-57769bb547-fmj6r with SMTP id recvd-57769bb547-fmj6r-1-6603DD53-C 2024-03-27 08:48:19.768774781 +0000 UTC m=+733572.842042477 Received: from herokuapp.com (unknown) by geopod-ismtpd-0 (SG) with ESMTP id D4-LOwYBRZOzLdnkFuIg5Q for ; Wed, 27 Mar 2024 08:48:19.698 +0000 (UTC) Date: Wed, 27 Mar 2024 08:48:19 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Feature X-Redmine-Issue-Id: 20396 X-Redmine-Issue-Author: byroot X-Redmine-Issue-Priority: Normal X-Redmine-Sender: ko1 X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 93940 X-SG-EID: =?us-ascii?Q?u001=2EbATEdfk2zDVGkqEmBpIo5H4n7Ev5v4PGlIEIJ8FEzfCkvwlGMFn=2FTmv+l?= =?us-ascii?Q?pwPr17bEITdo5x64lhfcVhbF8MZb2ZO22+JLgiF?= =?us-ascii?Q?CkDUX1ilZf+Zd3awsc83TX0q8cB3EXUmZYGSPlo?= =?us-ascii?Q?VfemoD8O2wUMkufIsbgD1CDcSlMREkiO8NipWr8?= =?us-ascii?Q?dzBRmBvGxROL7XGS0CPNEIKYbcCCjLeNZahLn6L?= =?us-ascii?Q?VImLPCVJTYIzDe+oO01YMbGMz9Ml8rVtceGQh91?= =?us-ascii?Q?y4df?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: JP2E5TZ3L6KNRU5J5GR4JQNRON3HHQFF X-Message-ID-Hash: JP2E5TZ3L6KNRU5J5GR4JQNRON3HHQFF X-MailFrom: bounces+313651-b711-ruby-core=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:117342] [Ruby master Feature#20396] ObjectSpace.dump_all(string_value: false): skip dumping the String contents List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "ko1 (Koichi Sasada) via ruby-core" Cc: "ko1 (Koichi Sasada)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20396 has been updated by ko1 (Koichi Sasada). false on default is safer? ---------------------------------------- Feature #20396: ObjectSpace.dump_all(string_value: false): skip dumping the String contents https://bugs.ruby-lang.org/issues/20396#change-107500 * Author: byroot (Jean Boussier) * Status: Open ---------------------------------------- `ObjectSpace.dump_all` is a very useful method to debug memory leaks and such, hence is frequently needed in production. But since all the 7bit strings content is included in the dump, it incur the risk of leaking personal data, or secrets. Also, in many case the strings content isn't that helpful and is just making the dump much bigger for no good reason. And only pure-ASCII strings are dumped this way, which means all the tools that process these dumps should already be compatible with a dump without any string content. ### Feature I propose to add another optional parameter to `dump_all`: `string_value: false`. When passed, no String content is ever dumped regardless of its coderange. Implementation: https://github.com/ruby/ruby/pull/10382 cc @zzak -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/