Skip to content

Allow show ztp to display non-sensitive information visible to non-root user#872

Merged
lguohan merged 1 commit intosonic-net:masterfrom
rajendra-dendukuri:ztp_readonly_user
Apr 29, 2020
Merged

Allow show ztp to display non-sensitive information visible to non-root user#872
lguohan merged 1 commit intosonic-net:masterfrom
rajendra-dendukuri:ztp_readonly_user

Conversation

@rajendra-dendukuri
Copy link
Copy Markdown
Contributor

Allow show ztp to display non-sensitive information visible to non-root user

Signed-off-by: Rajendra Dendukuri [email protected]

- What I did
Removed user privileges checks. These changes fix #800. The ZTP PR sonic-net/sonic-ztp#13 is also required for these changes to work as expected.

- How I did it
Removed root user check.

- How to verify it
show ztp status

- Previous command output (if the output of a command-line utility has changed)
admin@sonic:~$ show ztp status
Root privileges are required for this operation

- New command output (if the output of a command-line utility has changed)
admin@sonic:~$ show ztp status
ZTP Admin Mode : True
ZTP Service : Processing
ZTP Status : IN-PROGRESS
ZTP Source : local-fs (/host/ztp/ztp_data_local.json)
Runtime : 06m 26s
Timestamp : 2020-04-08 13:08:22 UTC

ZTP Service is active

01-test-plugin: IN-PROGRESS

@jleveque jleveque requested a review from lguohan April 9, 2020 01:20
@lguohan lguohan merged commit f6866b0 into sonic-net:master Apr 29, 2020
abdosi pushed a commit to abdosi/sonic-utilities that referenced this pull request Aug 4, 2020
…ot user (sonic-net#872)

Removed user privileges checks. These changes fix sonic-net#800. The ZTP PR sonic-net/sonic-ztp#13 is also required for these changes to work as expected.

```
admin@sonic:~$ show ztp status
ZTP Admin Mode : True
ZTP Service : Processing
ZTP Status : IN-PROGRESS
ZTP Source : local-fs (/host/ztp/ztp_data_local.json)
Runtime : 06m 26s
Timestamp : 2020-04-08 13:08:22 UTC

ZTP Service is active

01-test-plugin: IN-PROGRESS
```

Signed-off-by: Rajendra Dendukuri <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

make ztp to have non-sensitive information only visible to non-root user

2 participants