Hi,
Auth tokens were introduced in Gerrit-3.13 which is a nice feature for interactive users.
What is the solution for service users?
How will bots authenticate to the system?
So far I used the serviceuser plugin.
Hopefully, this will be supported, as bot users are not part of the interactive authentication scheme,
I just upgraded and found serviceuser plugin is failing and is not listed in the plugin management.
Without this plugin installed bots succeed authentication which is nice as it gives me some grace time.
I succeeded in building the serviceuser master with gerrit master.
Too many issues building the serviceusers with gerrit stable-3.12.
Cherry-pick into gerrit stable-3.13 of 527882: Allow to add additional receivers to auth token expiry notifications[1] makes it build.
I applied the following simple patch, hopefully it is ok until I understand what is happening.
Regards,
Alon
---
diff --git
a/src/main/java/com/googlesource/gerrit/plugins/serviceuser/email/ServiceUserAuthTokenExpiryNotifier.java
b/src/main/java/com/googlesource/gerrit/plugins/serviceuser/email/ServiceUserAuthTokenExpiryNotifier.java
index dc2732b..c741829 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/serviceuser/email/ServiceUserAuthTokenExpiryNotifier.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/serviceuser/email/ServiceUserAuthTokenExpiryNotifier.java
@@ -153,7 +153,7 @@ public class ServiceUserAuthTokenExpiryNotifier implements Runnable {
.createOutgoingEmail(
AUTH_TOKEN_WILL_EXPIRE,
emailFactories.createAuthTokenWillExpireEmail(
- account, token, owners, authTokenSettingsUrl))
+ account, token))
.send();
}
}