Support for nested profiles
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 669
- Forks
- 236
- Avg merge
- 1m
- Merged PRs (30d)
- 4
Description
Sort of continuation to #47.
My understanding is that right now optional default values go into .oci/oci_cli_rc while high-level profile settings (user, tenancy, fingerprint, key_file, region) go into .oci/config.
While it would be easier if all settings lived under one roof, with the current layout of two separate config files, would there be an easy way to support nested profiles?
For example, let's say that I have a tenancy T with 2 compartments A and B. Right now, I need to create 2 identical profiles in .oci/config for the auth settings, and then 2 profiles in .oci/oci_cli_rc with the corresponding compartment-id.
Ideally, I would want to have the auth settings defined within [T] in .oci/config, which also defines two child profiles [A] and [B] (let's say with a new import keyword referencing the T profile). Alternatively, instead of nested profiles it would be nice if multiple profiles could be created with the same settings in .oci/config (e.g. [A] [B])
Would any of these approaches be possible to implement?
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
The issue points to .oci/config and .oci/oci_cli_rc; start by tracing how profiles and optional defaults are loaded. Compare nested/import profiles with sharing settings across multiple profiles. Done means a decided approach lets child profiles reuse authentication settings while selecting distinct compartment IDs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli, cloud
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100