-
Notifications
You must be signed in to change notification settings - Fork 68
feat: [Geneva Uploader] Implement Azure Workload Identity authentication for Geneva. #467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 15 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
381fa67
fix
lalitb c3bd075
fix
lalitb bf00a8e
fix
lalitb 0bbddb2
fix
lalitb 173b592
remove docs
lalitb 9ca7045
fix
lalitb ec4837b
fix
lalitb 22b1428
Merge branch 'main' into geneva-workloadidentity
lalitb 156241e
Merge branch 'main' into geneva-workloadidentity
lalitb 49f3a69
Merge branch 'main' into geneva-workloadidentity
lalitb 46e9e39
fix build error
lalitb 6cdb124
lint
lalitb 6f9cff8
fix
lalitb 684dd90
fix
lalitb a23b0ba
fix
lalitb bfd86f6
fix
lalitb a7f40b9
Add TODO for Azure Arc support in client.rs
lalitb 0ddb29b
Add TODO comment for get_token API usage
lalitb 84668b2
Refactor scope candidates logic in client.rs
lalitb 76c9227
Merge branch 'main' into geneva-workloadidentity
lalitb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
opentelemetry-exporter-geneva/opentelemetry-exporter-geneva/examples/Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Dockerfile for Geneva Uploader Workload Identity Test | ||
# | ||
# This Dockerfile must be built from the repository root to access the workspace: | ||
# cd /path/to/opentelemetry-rust-contrib | ||
# docker build -f opentelemetry-exporter-geneva/opentelemetry-exporter-geneva/examples/Dockerfile -t geneva-uploader-test:latest . | ||
# | ||
# Or using ACR: | ||
# az acr build --registry <registry-name> --image geneva-uploader-test:latest \ | ||
# --file opentelemetry-exporter-geneva/opentelemetry-exporter-geneva/examples/Dockerfile . | ||
|
||
FROM rust:1.85-slim AS builder | ||
|
||
# Install build dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
pkg-config \ | ||
libssl-dev \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /app | ||
|
||
# Copy the entire workspace from repository root | ||
COPY . . | ||
|
||
# Build the example | ||
WORKDIR /app/opentelemetry-exporter-geneva/opentelemetry-exporter-geneva | ||
RUN cargo build --release --example basic_workload_identity_test | ||
|
||
# Runtime stage | ||
FROM debian:bookworm-slim | ||
|
||
# Install runtime dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
ca-certificates \ | ||
libssl3 \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Copy the binary | ||
COPY --from=builder /app/target/release/examples/basic_workload_identity_test /usr/local/bin/geneva-uploader-test | ||
|
||
# Run as non-root user | ||
RUN useradd -m -u 1000 appuser | ||
USER appuser | ||
|
||
ENTRYPOINT ["/usr/local/bin/geneva-uploader-test"] | ||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.