Hi,
When using the cli as below:
Pulp rpm remote list
Several fields are (rightly) hidden, proxy password for example.
Using the CLI is there any way to see the value of these? Use case is to confirm they are set right.
Thanks
Steven
Hi,
When using the cli as below:
Pulp rpm remote list
Several fields are (rightly) hidden, proxy password for example.
Using the CLI is there any way to see the value of these? Use case is to confirm they are set right.
Thanks
Steven
@Zen42 No, the CLI is just calling the REST API behind the hood and the REST API can not return the hidden fields. Two ways to see if they are set right:
# pulpcore-manager shell
from pulpcore.app.models import Remote
rem = Remote.objects.get(name="remote_name")
print(rem.proxy_password)
You can just see whether they have been set but for checking the field’s content you need to go to the DB
"ca_cert": null,
"client_cert": null,
"connect_timeout": null,
"download_concurrency": null,
"exclude_tags": null,
"headers": null,
"hidden_fields": [
{
"is_set": false,
"name": "client_key"
},
{
"is_set": false, <------------------------ here
"name": "proxy_username"
},
{
"is_set": false,
"name": "proxy_password"
},
{
"is_set": false,
"name": "username"
},
{
"is_set": false,
"name": "password"
}
],
"include_tags": null,
"max_retries": null,
"name": "tada",
"policy": "immediate",
"proxy_url": null,
"pulp_created": "2023-11-16T22:02:51.014269Z",
"pulp_href": "/pulp/api/v3/remotes/container/container/018bda28-8705-71c3-a6b4-c4d7c9a25123/",
"pulp_labels": {},
"pulp_last_updated": "2023-11-16T22:02:51.014285Z",
"rate_limit": null,
"sigstore": null,
"sock_connect_timeout": null,
"sock_read_timeout": null,
"tls_validation": true,
"total_timeout": null,
"upstream_name": "busybox",
"url": "https://quay.io"
}
]
}