Skip to content
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

Grpc service accounts #412

Merged
merged 3 commits into from
Dec 13, 2024
Merged

Conversation

sodomelle
Copy link
Contributor

It seems like gRPC sets the audience and scope options based on the gRPC service name, so they can't be set in the config.

Example usage:

destination {
    google-pubsub-grpc(
        project("test")
        topic("test")
        auth(service-account(key ("path_to_service_account_key.json")))
    );
};

@sodomelle sodomelle requested a review from alltilla December 7, 2024 10:33
Copy link
Contributor

github-actions bot commented Dec 7, 2024

This Pull Request introduces config grammar changes

axoflow/62228cd45e7744ded91a839c6893c8b2835c50f5 -> sodomelle/grpc-service-accounts

--- a/destination
+++ b/destination

 axosyslog-otlp(
     auth(
+        service-account(
+            <empty>
+            key(<path>)
+            token-validity-duration(<number>)
+        )
     )
 )

 bigquery(
     auth(
+        service-account(
+            <empty>
+            key(<path>)
+            token-validity-duration(<number>)
+        )
     )
 )

 clickhouse(
     auth(
+        service-account(
+            <empty>
+            key(<path>)
+            token-validity-duration(<number>)
+        )
     )
 )

 google-pubsub-grpc(
     auth(
+        service-account(
+            <empty>
+            key(<path>)
+            token-validity-duration(<number>)
+        )
     )
 )

 loki(
     auth(
+        service-account(
+            <empty>
+            key(<path>)
+            token-validity-duration(<number>)
+        )
     )
 )

 opentelemetry(
     auth(
+        service-account(
+            <empty>
+            key(<path>)
+            token-validity-duration(<number>)
+        )
     )
 )

 syslog-ng-otlp(
     auth(
+        service-account(
+            <empty>
+            key(<path>)
+            token-validity-duration(<number>)
+        )
     )
 )

sodomelle added a commit to sodomelle/axosyslog that referenced this pull request Dec 7, 2024
Signed-off-by: Tamás Kosztyu <tamas.kosztyu@axoflow.com>
@sodomelle sodomelle force-pushed the grpc-service-accounts branch from 0c88974 to b17f698 Compare December 7, 2024 10:40
sodomelle added a commit to sodomelle/axosyslog that referenced this pull request Dec 7, 2024
Signed-off-by: Tamás Kosztyu <tamas.kosztyu@axoflow.com>
@sodomelle sodomelle force-pushed the grpc-service-accounts branch from b17f698 to 0ef5c9e Compare December 7, 2024 10:46
sodomelle added a commit to sodomelle/axosyslog that referenced this pull request Dec 9, 2024
Signed-off-by: Tamás Kosztyu <tamas.kosztyu@axoflow.com>
@sodomelle sodomelle force-pushed the grpc-service-accounts branch from 0ef5c9e to 7c6842f Compare December 9, 2024 10:23
sodomelle added a commit to sodomelle/axosyslog that referenced this pull request Dec 10, 2024
Signed-off-by: Tamás Kosztyu <tamas.kosztyu@axoflow.com>
@sodomelle sodomelle force-pushed the grpc-service-accounts branch from 7c6842f to 07df96e Compare December 10, 2024 08:43
sodomelle added a commit to sodomelle/axosyslog that referenced this pull request Dec 10, 2024
Signed-off-by: Tamás Kosztyu <tamas.kosztyu@axoflow.com>
@sodomelle sodomelle force-pushed the grpc-service-accounts branch from 07df96e to 8cdcc06 Compare December 10, 2024 14:59
Signed-off-by: Tamás Kosztyu <tamas.kosztyu@axoflow.com>
Signed-off-by: Tamás Kosztyu <tamas.kosztyu@axoflow.com>
sodomelle added a commit to sodomelle/axosyslog that referenced this pull request Dec 10, 2024
Signed-off-by: Tamás Kosztyu <tamas.kosztyu@axoflow.com>
@sodomelle sodomelle force-pushed the grpc-service-accounts branch from 8cdcc06 to d808a0c Compare December 10, 2024 15:00
alltilla
alltilla previously approved these changes Dec 11, 2024
Copy link
Member

@alltilla alltilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 minor news entry related comments, otherwise approve!

news/feature-412.md Outdated Show resolved Hide resolved
news/feature-412.md Outdated Show resolved Hide resolved
Signed-off-by: Tamás Kosztyu <tamas.kosztyu@axoflow.com>
@alltilla
Copy link
Member

macOS is failing on main, too, it is not caused by this PR.

@alltilla alltilla merged commit 567b37a into axoflow:main Dec 13, 2024
20 of 22 checks passed
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