-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
checkcred json output issues #501
Comments
Hi there @erzhan46 , thank you for reaching out!
What do you mean here? The token validity, effectively is the grant validity; once the grant is expired, the token is not valid anymore as well, thus you need to get a new access token. Not sure if I'm missing something. Could you elaborate more if you think my answer doesn't apply?
This timestamp was by designed for most currently scripting scenarios that our customers use, thus this behavior is expected (not a bug). I'll be removing the "bug" tag as these issues seems more to be "question" and "enhacenment" types. |
My understanding is there are two expiration timestamps:
So in checkcred json output - in expires_ISO8601 field it shows refresh/grant token expiration (one year). The problem with timestamps I have is that getcred in json format outputs them in Unix timestamp whereas checkcred in json format outputs them in ISO8601 format. What I'm asking here again is some consistency. From scripting/automation point of view I think unix timestamp will be more convenient, but any format will work as long as it's the same. |
Indeed there are, but unfortunately, the access_token timestamps itself is not returned in the API response, only the validity: Which is what we return in JSON format (
Yeah, adding this consistency would be an enhancement. As well as adding (calculating) the value for JSON version of the command. |
Thank you for explanation. Between timestamps in checkcrd output returned in ISO8601 format and the fact that access token expiration is not calculated in json output - it makes it somewhat hard to calculate token expiration e.g. if I use it in shell scripts. Thanks again! |
PROBLEM SUMMARY
There are couple issues with checkcred json format output:
E.g.:
STEPS TO REPRODUCE
Run vcert getcred and vcert checkcred with --format json option.
EXPECTED RESULTS
ACTUAL RESULTS
ENVIRONMENT DETAILS
Venafi vcert v.5.6.4
COMMENTS/WORKAROUNDS
The text was updated successfully, but these errors were encountered: