Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1371794 - Hidden flag has no impact on smart variables when using Hammer CLI
Summary: Hidden flag has no impact on smart variables when using Hammer CLI
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Smart Variables
Version: 6.2.0
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: Unspecified
Assignee: orabin
QA Contact: Shimon Shtein
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-31 06:55 UTC by Oleksandr Shtaier
Modified: 2019-09-26 17:31 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 16:51:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 17652 0 None None None 2016-12-13 09:37:00 UTC
Foreman Issue Tracker 17653 0 None None None 2016-12-13 10:04:36 UTC

Description Oleksandr Shtaier 2016-08-31 06:55:49 UTC
Description of problem:
When we apply hidden flag on smart variables in UI we can clearly see that default value is substituted by '*****' marks, but when we do the same action in CLI we cannot see any change to default value or to any other values:

hammer -v -u admin -p changeme smart-variable info --name="lItINDxCih"
Id:              74
Name:            lItINDxCih
Default Value:   holFhLlcDy
Type:            string
Puppet class:    ntp
Description:     
Hidden Value?:   true
Validator:       
    Type: 
    Rule:
Override values: 
    Merge overrides:     no
    Merge default value: no
    Avoid duplicates:    no
    Order:               fqdn, hostgroup, os, domain
    Values:
Created at:      2016/08/31 06:48:49
Updated at:      2016/08/31 06:48:49

Version-Release number of selected component (if applicable):
6.2.1

How reproducible:
Always

Steps to Reproduce:
1. Create new smart variable with default value
2. Change 'hidden-value' flag state to true

Actual results:
Nothing is hidden

Expected results:
default value should be hidden

Additional info:

Comment 2 orabin 2016-12-13 09:36:59 UTC
Created redmine issue http://projects.theforeman.org/issues/17652 from this bug

Comment 4 Satellite Program 2017-01-26 09:07:22 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/17652 has been resolved.

Comment 5 Shimon Shtein 2017-08-16 09:21:14 UTC
Verified:

[root tomcat]# hammer -v smart-variable info --name="hidden_var"
Warning: Option --name is deprecated. Use --variable instead
Id:              14
Variable:        hidden_var
Default Value:   *****
Type:            string
Puppet class:    access_insights_client
Description:     
Hidden Value?:   true
Validator:       
    Type: 
    Rule:
Override values: 
    Merge overrides:     no
    Merge default value: no
    Avoid duplicates:    no
    Order:               
      fqdn
      hostgroup
      os
      domain
    Values:
Created at:      2017/08/16 09:17:43
Updated at:      2017/08/16 09:17:43

Sat version: 6.3.0-16.0.beta.el7sat

Comment 6 Satellite Program 2018-02-21 16:51:07 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.
> 
> For information on the advisory, and where to find the updated files, follow the link below.
> 
> If the solution does not work for you, open a new bug report.
> 
> https://access.redhat.com/errata/RHSA-2018:0336


Note You need to log in before you can comment on or make changes to this bug.