[Bug]: obj signurl should reject times > the limit
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 442
- Forks
- 159
- Avg merge
- 7d 21h
- Merged PRs (30d)
- 8
Description
### CLI Version
linode-cli v5.67.0 Built from spec version 4.224.0
### Command
`linode-cli obj signurl +31536000` happily spits out a URL, but trying to access it will give Access Denied.
Reducing the expiration to 24h works.
Given that there's a limit, the command should reject expiration times above the limit and error out.
### Output
_No response_
### Expected Behavior
Error: Expiration above limit (86400s / 24h).
### Actual Behavior
### Steps to Reproduce
_No response_
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the `linode-cli obj signurl` command entry point and reproduce the behavior with an expiration of `+31536000`. Trace how expiration is validated, then add coverage for rejecting values above 86400 seconds and confirm that valid 24-hour expirations still work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 72/100