{"record":{"id":"c5f2039d9a1593e4","repo":"puppetlabs/puppet","slug":"unable-to-mark-name-as-sensitive-the-propert","errorCode":null,"errorMessage":"Unable to mark '%{name}' as sensitive: the property itself is not defined on %{type}.","messagePattern":"Unable to mark '%(.+?)' as sensitive: the property itself is not defined on %(.+?)\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/puppet/type.rb","lineNumber":2400,"sourceCode":"  #   marked as public as subclasses may need to override this method.\n  #\n  # @api public\n  #\n  # @param sensitive_parameters [Array<Symbol>] A list of parameters to mark as sensitive.\n  #\n  # @return [void]\n  def set_sensitive_parameters(sensitive_parameters)\n    sensitive_parameters.each do |name|\n      p = parameter(name)\n      if p.is_a?(Puppet::Property)\n        p.sensitive = true\n      elsif p.is_a?(Puppet::Parameter)\n        warning(_(\"Unable to mark '%{name}' as sensitive: %{name} is a parameter and not a property, and cannot be automatically redacted.\") %\n                    { name: name })\n      elsif self.class.attrclass(name)\n        warning(_(\"Unable to mark '%{name}' as sensitive: the property itself was not assigned a value.\") % { name: name })\n      else\n        err(_(\"Unable to mark '%{name}' as sensitive: the property itself is not defined on %{type}.\") % { name: name, type: type })\n      end\n    end\n\n    parameters.each do |_name, param|\n      next if param.sensitive\n\n      if param.is_a?(Puppet::Parameter)\n        param.sensitive = param.is_sensitive if param.respond_to?(:is_sensitive)\n      end\n    end\n  end\n\n  private\n\n  # Sets the name of the resource from a hash containing a mapping of `name_var` to value.\n  # Sets the value of the property/parameter appointed by the `name_var` (if it is defined). The value set is\n  # given by the corresponding entry in the given hash - e.g. if name_var appoints the name `:path` the value\n  # of `:path` is set to the value at the key `:path` in the given hash. As a side effect this key/value is then","sourceCodeStart":2382,"sourceCodeEnd":2418,"githubUrl":"https://github.com/puppetlabs/puppet/blob/e227c27540975c25aa22d533a52424a9d2fc886a/lib/puppet/type.rb#L2382-L2418","documentation":"Error \"Unable to mark '%{name}' as sensitive: the property itself is not defined on %{type}.\" thrown in puppetlabs/puppet.","triggerScenarios":"Thrown at lib/puppet/type.rb:2400 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e227c27540975c25aa22d533a52424a9d2fc886a","analyzedAt":"2026-08-21T20:49:46.650Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}