Skip to content

Test imds oracle - #208

Closed
ader1990 wants to merge 2 commits into
cloudbase:masterfrom
ader1990:test_imds_oracle
Closed

Test imds oracle#208
ader1990 wants to merge 2 commits into
cloudbase:masterfrom
ader1990:test_imds_oracle

Conversation

@ader1990

Copy link
Copy Markdown
Member

No description provided.

chl117 and others added 2 commits July 28, 2026 10:54
OCI IMDSv2 exposes instance metadata under /opc/v2 and requires an
Authorization: Bearer Oracle header on every request [1].
Cloudbase-Init does not have an OCI-specific metadata provider, so it
cannot use the OCI IMDSv2 endpoints when legacy IMDSv1 access is
disabled.

Add OracleCloudService to retrieve the instance ID, hostname, and
base64-encoded user data. Add the required authorization header through
the service's HTTP request override, following the existing GCE and
MaaS patterns. Register the related oraclecloud configuration options
and add unit-test coverage for service loading, request headers, and
metadata retrieval.

[1] https://docs.oracle.com/en-us/iaas/Content/Compute/Tasks/gettingmetadata.htm

AI-assisted contribution: I reviewed the change and submit it under
the DCO terms at
https://github.com/cloudbase/cloudbase-init/blob/master/DCO#L16
(clause (a) — the contribution is mine).

Signed-off-by: Lucas Quinney <lucas.quinney@oracle.com>
Change-Id: I33f7f52009b59cf185f72f4fa63e1f7c4e6d469a
Signed-off-by: Adrian Vladu <avladu@cloudbasesolutions.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants