[Bug]: obj signurl should reject times > the limit

Open Beginner friendly
#894 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
python
Domain
cli

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.

Description

bug
CLI Version

linode-cli v5.67.0 Built from spec version 4.224.0

Command

linode-cli obj signurl <BUCKET> <OBJECT> +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

Dominant language
Python
Stars
442
Forks
159
Avg merge
7d 21h
Merged PRs (30d)
8

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from linode/linode-cli

All issues in linode/linode-cli

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.