CONDOR_TOKEN_REQUEST(1) | HTCondor Manual | CONDOR_TOKEN_REQUEST(1) |
condor_token_request - HTCondor Manual
interactively request a token from a remote daemon for the IDTOKENS authentication method
condor_token_request [-identity user@domain] [-authz authz ...] [-lifetime value] [-pool pool_name] [-name hostname] [-type type] [-token filename]
condor_token_request [-help ]
condor_token_request will request an authentication token from a remote daemon. Token requests must be approved by the daemon's administrator using condor_token_request_approve. Unlike condor_token_fetch, the user doesn't need an existing identity with the remote daemon when using condor_token_request (an anonymous method, such as SSL without a client certificate will suffice).
If the request is successfully enqueued, the request ID will be printed to stderr; the administrator will need to know the ID to approve the request. condor_token_request will wait until the request is approved, timing out after an hour.
The token request mechanism provides a powerful way to bootstrap authentication in a HTCondor pool - a remote user can request an identity, verify the authenticity of the request out-of-band with the remote daemon's administrator, and then securely recieve their authentication token.
By default, condor_token_request will query the local condor_collector; by specifying a combination of -pool, -name, or -type, the tool can request tokens in other pools, on other hosts, or different daemon types.
If successful, the resulting token will be sent to stdout; by specifying the -token option, it will instead be written to the user's token directory.
To obtain a token with a lifetime of 10 minutes from the default condor_collector (the token is not returned until the daemon's administrator takes action):
$ condor_token_request -lifetime 600 Token request enqueued. Ask an administrator to please approve request 6108900. eyJhbGciOiJIUzI1NiIsImtpZCI6IlBPT0wifQ.eyJpYX...ii7lAfCA
To request a token from bird.cs.wisc.edu which is limited to READ and WRITE:
$ condor_token_request -name bird.cs.wisc.edu \ -identity bucky@cs.wisc.edu -authz READ -authz WRITE Token request enqueued. Ask an administrator to please approve request 2578154 eyJhbGciOiJIUzI1NiIsImtpZCI6IlBPT0wifQ.eyJpYX...lJTj54
To create a token from the collector in the htcondor.cs.wisc.edu pool and then to save it to ~/.condor/tokens.d/friend:
$ condor_token_request -pool htcondor.cs.wisc.edu \ -identity friend@cs.wisc.edu \ -lifetime 600 -token friend Token request enqueued. Ask an administrator to please approve request 2720841.
condor_token_request will exit with a non-zero status value if it fails to request or recieve the token. Otherwise, it will exit 0.
condor_token_create(1), condor_token_fetch(1), condor_token_request_approve(1), condor_token_request_auto_approve(1), condor_token_list(1)
Center for High Throughput Computing, University of Wisconsin-Madison
HTCondor Team
1990-2024, Center for High Throughput Computing, Computer Sciences Department, University of Wisconsin-Madison, Madison, WI, US. Licensed under the Apache License, Version 2.0.
January 10, 2025 |