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) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 354B51F44D for ; Wed, 27 Mar 2024 16:55:56 +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=kvmZyEFn; 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=Z++Ec+fR; dkim-atps=neutral Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 487C1834E4; Wed, 27 Mar 2024 16:55:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1711558545; bh=hmVKG/wL5kukLztEKwFw4OmNrxZnxbTJdKS9Guc2Ank=; 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=kvmZyEFnRtSM+PLFQvO8K1TZW3lDPOX097Y7uVomFymiPT7sAOwUO3XEhzH8RW5vU eMFVYK8FmpH1eAnpO8B8gKuSkPvJm1KQgk1LeLrJ7rNHGtHYBKqXi2AQCJaQc6L/Yc 2qgvhw6d2090yIzodO68p8jhJJOEDqwD1Ru8gsXw= Received: from s.wrqvtvvn.outbound-mail.sendgrid.net (s.wrqvtvvn.outbound-mail.sendgrid.net [149.72.120.130]) by nue.mailmanlists.eu (Postfix) with ESMTPS id B48FF834B4 for ; Wed, 27 Mar 2024 16:55:41 +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=Z++Ec+fR; 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=7yC9ZsHm7NVMqAepXMqrk5eTxhaqGStAvpyjboUQP9M=; b=Z++Ec+fRT5aryVJbt1OIF+RMXf7xNswJ6udiysSUS3wmAJ4FhlW7QGatzpdRoXLX8DIc 3KfSZFpjPJxsCH7ZI9FrDE6TavLLk13wfYYLC0qjTmSMzWUd/v1z+qt6q7HjALtddkOvj3 8c6ARExH3hI5Y6lEsiunt688Pa1u/AY5lqf4dKK0ENeLKr1GR7J/NDEfdFnZ+Q69IEIagl ZKQKgW1qsjh+exSt8TkxBXXJmDGqWgYhcmBV+y8YpfJwB2kAc+YtLTvQAzIn7rF4nkAr3s zcIImeDig9IBY/KUkgCdD7CLcpCNu95HIVkwWp3IC9VMsGdVAUAo4IU34lhMF/Zw== Received: by filterdrecv-55f965f85f-6z4tp with SMTP id filterdrecv-55f965f85f-6z4tp-1-66044F8B-21 2024-03-27 16:55:39.990695899 +0000 UTC m=+764971.088655852 Received: from herokuapp.com (unknown) by geopod-ismtpd-3 (SG) with ESMTP id tHC2B4nOSmCD_zFc6AdvUw for ; Wed, 27 Mar 2024 16:55:39.842 +0000 (UTC) Date: Wed, 27 Mar 2024 16:55:40 +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: jhawthorn 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: 93943 X-SG-EID: =?us-ascii?Q?u001=2EPbok3+7FQfebysnQr5TCCxGBI4YRNbbNoeLobvdWjgSQ5tpG6ZHb7cfml?= =?us-ascii?Q?cLpQRmscQ7YbcwEtJUBy=2Fno4fwnO2ualh0JafGy?= =?us-ascii?Q?DtBs5BQCLak4HOWWBE011oNvvKaiA4eQcq7e6vM?= =?us-ascii?Q?GJy9wt09h8Wwa3trCZvsVMwN6IOjSTFiLvBr6sV?= =?us-ascii?Q?MfqskGxGgsEvt7wOs9OlK=2F08KbHfq+bSQxMYidH?= =?us-ascii?Q?2NwvFqIF1Vgd59a5Ol11J5zXOQiPYNkJW9MQb7+?= =?us-ascii?Q?YWfG5XBfDozdPSva9ii2fbRUNw=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: BWN2PCP6UF5MZARAKDKGP2DLAWEPGK6J X-Message-ID-Hash: BWN2PCP6UF5MZARAKDKGP2DLAWEPGK6J 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:117345] [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: "jhawthorn (John Hawthorn) via ruby-core" Cc: "jhawthorn (John Hawthorn)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20396 has been updated by jhawthorn (John Hawthorn). This is a great addition! I've often used a post-processing script to remove the string data, so having it built in would be very helpful. I think `false` would be a good default (but either way is fine by me). ---------------------------------------- Feature #20396: ObjectSpace.dump_all(string_value: false): skip dumping the String contents https://bugs.ruby-lang.org/issues/20396#change-107504 * 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/