oracle / oracle/oci-cli

cert_bundle Not Used in refresh Subcommand for Session

Open
#835 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
669
Forks
236
Avg merge
1m
Merged PRs (30d)
4

Description

Description:

The cert_bundle option is a valid configuration for the session subcommand. However, the refresh subcommand within session does not utilize the cert_bundle option when making the request to refresh the token. This can cause issues in environments where a custom certificate bundle is required for HTTPS requests.

Steps to Reproduce:

  1. Run the oci session refresh with --cert-bundle subcommand.
  2. Observe that the cert_bundle is not passed to the requests.post call.

Expected Behavior:

The refresh subcommand should include the cert_bundle in the request parameters if it is set.

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.

Research direction

Start by locating the session refresh subcommand implementation and the requests.post call used to refresh the token. Check how cert_bundle is handled by the session command elsewhere, then verify that refresh includes it when configured and run the relevant session refresh tests or command checks.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.