Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 30 14:30
    krishna-devolo opened #1208
  • Nov 30 04:41
    KOTTIRAMSAI edited #1201
  • Nov 23 14:49
    bogdan-bondar opened #1207
  • Nov 22 12:35
    KOTTIRAMSAI edited #1201
  • Nov 21 12:35
    mamtasingh2304 opened #1206
  • Nov 18 08:07

    bogdan-bondar on master

    Artifact Encryption plug point … (compare)

  • Nov 18 08:07
    bogdan-bondar closed #1202
  • Nov 17 15:16

    dependabot[bot] on maven

    (compare)

  • Nov 17 15:16
    dependabot[bot] commented #1205
  • Nov 17 15:16
    bogdan-bondar closed #1205
  • Nov 17 15:16
    bogdan-bondar commented #1205
  • Nov 17 14:54
    bogdan-bondar synchronize #1202
  • Nov 16 17:47
    bogdan-bondar synchronize #1202
  • Nov 15 23:37
    hawkbit-bot commented #1205
  • Nov 15 23:27
    dependabot[bot] labeled #1205
  • Nov 15 23:27
    dependabot[bot] opened #1205
  • Nov 15 23:27

    dependabot[bot] on maven

    Bump cron-utils from 9.1.3 to 9… (compare)

  • Nov 15 11:55
    floruschbaschan synchronize #1202
  • Nov 12 15:38
    floruschbaschan synchronize #1202
  • Nov 12 14:57
    floruschbaschan synchronize #1202
Sahaya cyril
@sahaya_cyril:matrix.org
[m]

Hello Everyone,
I'm trying to set up a reverse proxy to allow certificate authentication.
For testing purpose I'm using self signed certificate. Client and Server are kept at same local network.

I'm using swupdate from client side, when trying to connect the hawkbit server, I get the following error.

Client logs:

ERROR: Channel operation returned HTTP error code 401.
- Connected to 192.168.1.121 (192.168.1.121) port 8443 (#2)
- found 1 certificates in /root/caroot.cer
- found 592 certificates in /etc/ssl/certs
- ALPN, offering http/1.1
- SSL re-using session ID
- SSL connection using TLS1.2 / ECDHE_RSA_AES_128_GCM_SHA256
- server certificate verification OK
- server certificate status verification SKIPPED
- common name: 192.168.1.121 (matched)
- server certificate expiration date OK
- server certificate activation date OK
- certificate public key: RSA
- certificate version: #1
- subject: C=IN,ST=MH,L=MU,O=Test,OU=Development,CN=192.168.1.121,EMAIL=test@gmail.com
- start date: Mon, 27 Sep 2021 09:51:04 GMT
- expire date: Tue, 27 Sep 2022 09:51:04 GMT
- issuer: C=IN,ST=MH,L=MU,O=Test,OU=Development,CN=192.168.1.121,EMAIL=test@gmail.com
- compression: NULL
- ALPN, server did not agree to a protocol
> GET /DEFAULT/controller/v1/scv HTTP/1.1

Hawkbit server logs:

2021-09-27 18:47:00.907  INFO 52737 --- [           main] o.e.jetty.server.AbstractConnector       : Started SslValidatingServerConnector@2e34384c{SSL, (ssl, alpn, h2, http/1.1)}{0.0.0.0:8443}
2021-09-27 18:47:00.909  INFO 52737 --- [           main] o.s.b.web.embedded.jetty.JettyWebServer  : Jetty started on port(s) 8443 (ssl, alpn, h2, http/1.1) with context path '/'

Can anyone please confirm this is failing just because of ALPN offering http/1.1, If yes please guide me.

Is there any documentation available for allowing targets to authenticate via a certificate authenticated by a reverse proxy?

Gunnar
@gunnarpn:matrix.org
[m]

Hello guys, I have a question regarding hawkbit and SWupdate.

Our embedded systems do not have an IP address, we thus need the systems to create any connections.

Is this something that HawkBit and SWupdate allows?

Thank you :)

Mamta singh
@mamtasingh2304_gitlab
Hi, I am new to this hawkbit swupdate. I am using hawkbit server as docker image. I want to change the login username and password of management UI. Can anyone please help me with correct steps. Thanks....
Sahaya cyril
@sahaya_cyril:matrix.org
[m]

Hi @mamtasingh2304_gitlab ,
Sorry for late response.

You have to add below given code to your hawkbit application.properties

Define own users instead of default "admin" user:

hawkbit.server.im.users[0].username=hawkbit
hawkbit.server.im.users[0].password={noop}isAwesome!
hawkbit.server.im.users[0].firstname=Eclipse
hawkbit.server.im.users[0].lastname=HawkBit
hawkbit.server.im.users[0].permissions=ALL

You can also add multiple users by incrementing the array count.
eg. hawkbit.server.im.users[1].username=2nduser

Reference: https://github.com/eclipse/hawkbit/blob/master/hawkbit-runtime/hawkbit-update-server/src/main/resources/application.properties

Hope this helps!

Regards,
Sahaya Cyril

mangexl
@mangexl
Hi, I am running oidc login and want to set tenant on login. But it looks like its hard-coded to DEFAULT in org.eclipse.hawkbit.autoconfigure.securit.OidcAuthenticationSuccessHandler. Do you know if there is another way to supply tentat in oidc flow? I can not override the OidcAuthenticationSuccessHandler bean.
rmk544
@rmk544
Hi All,
Need help using Hawkbit with SWUpdate integration purpose.
I know we can use DDI on the client side to download software release from Hawkbit.
Since SWUpdate has pre-install scripting support, Need to write a script here and just download the image without updating the Device.
Please note : I am not interested to update the device, since I have my own update service..
Kindly help.
Regards,
Mohan
13 replies
Akaarir Mohamed
@Akanichi
Hi everyone,
I'm using hawkbit/hawkbit-update-server container 6 months now, and i came to the problem that my server is full, how can i migrate just the data to another one?
3 replies
Akaarir Mohamed
@Akanichi
any link that help would be apreciable.
Thank you,
Mohamed
Gunnar
@gunnarpn:matrix.org
[m]
Cant you use docker volumes?
Akaarir Mohamed
@Akanichi
thank you @gunnarpn:matrix.org , I never used docker volumes so i will look how it works.
Abu
@AbuTahir_11_twitter
How do i set up hawkbit in intelij ?
Akaarir Mohamed
@Akanichi
Hi, i find the solution of migrating my data of docker from a partition to another using the method on this website and it works! https://www.digitalocean.com/community/questions/how-to-move-the-default-var-lib-docker-to-another-directory-for-docker-on-linux
@gunnarpn:matrix.org thank you for the help!
Abu
@AbuTahir_11_twitter
@floruschbaschan Can you give an idea on how can we customize the s3 artifact plugin. Basically I would like add some side effects upon successful upload. is it possible to do so?
1 reply
Thomas Karl Pietrowski
@thopiekar
Hey! I'm running Hawkbit in AKS and every time I restart my pod with hawkbit in there, I get an HTTP 500 internal error on every rollout. However, as long as hawkbit is running and I create a new distribution and roll that one out, everything is fine. Looks like restarting the service kills something.
I tweaked the log level, but I see no error message relating to the 500 internal error. Is there a way I can get more info out?
Thomas Karl Pietrowski
@thopiekar
To be more precise, I did the log level tweaking by setting the environment variable LOGGING_LEVEL_ROOT="DEBUG" . Do I need to set other levels of other modules, too? I remember something like this from openHAB, but I don't have the orientation to know whether we have the same where.
KOTTIRAMSAI
@KOTTIRAMSAI
I have integrated the keycloak with hawkbit after successful validation it redirect to hawkbit but it is not showing distrubution in deployment page I have created the distrubution in distrubution page.And I have assigned all client level roles to the user
Thomas Karl Pietrowski
@thopiekar
I found the error when setting the debug level to trace. At least I could find it better then.
The problem is basically that the Dockerfile is misleading. It defines a volume that doesn't seem to be used (anymore?).
So in /opt/hawkbit there shall be a data directory for persistent data, however, the relevant directory is artifactory instead. That's basically the reason why I lost the artifacts when recreating the container in k8s.
I only found a Dockerfile in the .dev-container directory in the projects repo. Is there a different place where the one from docker hub is maintained?
Thanks!
Krishna Subramanian
@krishna-devolo

Hello hawkBit community,

We are using hawkBit over reverse proxy TLS. We recently merged changes from 0.3.0M7 into our fork, and found that we get HTTP response instead of HTTPS. Setting hawkbit.server.security.require-ssl to true (a previous recommendation on Gitter) did not help. The migration guide does not include anything relevant for this - could this be caused by the Spring Boot 2.3.7 upgrade? Or any other upgraded dependencies?

Thanks!

Thomas Karl Pietrowski
@thopiekar
@krishna-devolo Moin! When does it happen? When your devices connect to hawkbit?
Krishna Subramanian
@krishna-devolo
@thopiekar Moin! Yes, when devices connect to hawkBit.
Thomas Karl Pietrowski
@thopiekar
Screenshot_20211109_075854.png
Last time I went into this, I found these properties.
It will influence the generated urls sent by Hawkbit to your device.
Krishna Subramanian
@krishna-devolo
Thanks! Those lines are in our application.properties file. When I switch to 0.3.0M6, I am able to receive HTTPS response with an unchanged application.properties file, but as soon as I switch to 0.3.0M7 it switches back to HTTP.
Thomas Karl Pietrowski
@thopiekar
Pew, might have happened to our instance, too, but we didn't notice. Maybe make a diff between both tags in GitHub and hunt the commit that changes the behaviour?
Don't have time at the moment, but would start there to find the change :)
Krishna Subramanian
@krishna-devolo
Thanks @thopiekar, shall do that! :)
KOTTIRAMSAI
@KOTTIRAMSAI

Hi all! I have integrated the keycloak with hawkbit after successful validation it redirect to hawkbit I am not able to assign distrubution to target.But through target filter it is assigning to ds.And I have assigned all client level roles to the user
I have given all client roles to the user like

APPROVE_ROLLOUT
CREATE_ROLLOUT
DELETE_ROLLOUT
UPDATE_ROLLOUT
READ_ROLLOUT
HANDLE_ROLLOUT
ROLLOUT_MANAGEMENT

CREATE_TARGET
DELETE_TARGET
READ_TARGET
UPDATE_TARGET

CREATE_REPOSITORY
DELETE_REPOSITORY
READ_REPOSITORY
UPDATE_REPOSITORY

TENANT_CONFIGURATION

DOWNLOAD_REPOSITORY_ARTIFACT

READ_TARGET_SECURITY_TOKEN

I am getting error like this in terminal
image
image
image

I have decoded Access token it is getting client roles also Whatever I have assigned
image

image

Thomas Karl Pietrowski
@thopiekar
At this moment I'm working an API connector to remote control some processes. I want to list all targettags and I would expect READ_TARGET to be the needed permission for this job. However, I need to give my user ALL to make it working.
Looks like a bug to me..
@KOTTIRAMSAI Sounds like an interesting project! Don't know how good the permissions are handled generally.
@krishna-devolo How is it going? :)
1 reply
Thomas Karl Pietrowski
@thopiekar
Does someone know a place in the sources where the permissions are listed? I expect ALL to be a union of all permissions and I can imagine that the current documentation misses a few. Any hints?
KOTTIRAMSAI
@KOTTIRAMSAI
Hi @thopiekar Thanks for giving reply ! I have created permission "ALL" in keycloak and I have assigned to the user but it is not taking(when i login it showing emply screen) and I have find the roles list from this link https://www.eclipse.org/hawkbit/concepts/authorization/#:~:text=Authorization%20is%20handled%20separately%20for,is%20based%20on%20Spring%20security%20.
L'hôpital Kévin
@kevlhop
Hello hawkBit community,
we are using rollout to deploy updates on multiple targets.
We want to have the possibility to cancel all running updates launched by a rollout without clicking on each target.
Is there a way to stop the rollout that will cancel all concerned running updates ?
Thanks!
Florian Ruschbaschan
@floruschbaschan

Hey @kevlhop

yes this is possible with the new invalidation of distribution sets feature. Extract from the documentation:

Invalidating a distribution set removes all auto-assignments that reference this distribution set. Optionally, all rollouts that reference the distribution set can be stopped and existing update actions are removed, either by a soft-cancel or a forced-cancel.
Invalidated distribution sets cannot be valid again, but remain invalid. They cannot be assigned to targets, neither through a rollout, auto-assignment nor a single assignment.

InvalidationOfDistributionSets.png
L'hôpital Kévin
@kevlhop
Thank you very much, @floruschbaschan, for your answer. This is an interesting new option, that I didn't know. The only negative point is that we couldn't relaunch an update with this distribution. But it will certainly be useful. Thanks for your time
Mamta singh
@mamtasingh2304
Hi.. I want to know that is there any other option instead of -c to update the pending status on server. actually I am running sw update via enabling suricatta daemon. I am able to succesfully update and install. but I found the status on server is still pending and after that I reboot the device and sent -c 2 confirmation on server then server status become finished so , I want to check is there any other or better way to do that. Please help me find out.
2 replies
Mamta singh
@mamtasingh2304

Hi,

I am facing issue in swupdate after enable SSL/TLS security option in hawkbit server.
To enable SSL, these steps I have done inside hawkbit server source
Generate the self-signed x509 certificate suitable to use on web server.

openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
Generate pem file from generated server.key and server.crt

cat server.key > server.pem
cat server.crt >> server.pem
Generate .pkcs12 file

openssl pkcs12 -export -in server.pem -out keystore.pkcs12
Following command imports a .p12 into pkcs12 Java keystore

keytool -importkeystore -srckeystore keystore.pkcs12 -srcstoretype pkcs12 \
-destkeystore hb-pass.jks -deststoretype pkcs12 \
-alias 1 -deststorepass <password_of_p12>
Edit the hawkbit application.properties file

vi application.properties
Change authentication security from false to true.

hawkbit.server.ddi.security.authentication.anonymous.enabled=true
Enter the https details at last

server.hostname=localhost
server.port=8443
hawkbit.artifact.url.protocols.download-http.protocol=https
hawkbit.artifact.url.protocols.download-http.port=8443

security.require-ssl=true
server.use-forward-headers=true

server.ssl.key-store= <hb-pass.jks file location>
server.ssl.key-store-type=JKS
server.ssl.key-password= <password_of_key>
server.ssl.key-store-password= <password_of_key_store>

server.ssl.protocol=TLS
server.ssl.enabled-protocols=TLSv1.2
server.ssl.ciphers=TLS_RSA_WITH_AES_256_CBC_SHA256,
TLS_RSA_WITH_AES_256_CBC_SHA

after that I copied server.pem on target
and add the path in swupdate.cfg
suricatta :
{

    tenant          = "default";
    id              = "orion";
    confirm         = 0;
    url             = "https://swupdateurl:8443";
    polldelay       = 360;
    nocheckcert     = false;
    retry           = 4;
    retrywait       = 200;
    loglevel        = 10;
    userid          = 0;
    groupid         = 0;
    max_artifacts   = 1;
    cafile          = "/home/root/server.pem";

/
cafile = "/etc/ssl/cafile";
sslkey = "/etc/ssl/sslkey";
sslcert = "/etc/ssl/sslcert";
/
};
and the error logs :
Connected to 192.168.0.10 (192.168.0.10) port 8443 (#1)

  • found 1 certificates in /home/root/server.pem
  • ALPN, offering http/1.1
  • SSL connection using TLS1.2 / RSA_AES_256_CBC_SHA1
  • server certificate verification failed. CAfile: /home/root/server.pem CRLfile: none
  • Closing connection 1
    [ERROR] : SWUPDATE failed [0] ERROR /home/hmecd001520/orion-yocto-bsp/build/tmp/work/orion-poky-linux/swupdate/2021.04-r0/git/corelib/channel_curl.c : channel_get : '
    [DEBUG] : SWUPDATE running : [start_suricatta] : No pending action to process.
    [DEBUG] : SWUPDATE running : [suricatta_wait] : Sleeping for 360 seconds.
Mamta singh
@mamtasingh2304
@sahaya_cyril:matrix.org Hi.. I have seen your post regarding that ssl enable I am facing issue in same. can you please help me. this is my query ...

I am facing issue in swupdate after enable SSL/TLS security option in hawkbit server.
To enable SSL, these steps I have done inside hawkbit server source
Generate the self-signed x509 certificate suitable to use on web server.

openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
Generate pem file from generated server.key and server.crt

cat server.key > server.pem
cat server.crt >> server.pem
Generate .pkcs12 file

openssl pkcs12 -export -in server.pem -out keystore.pkcs12
Following command imports a .p12 into pkcs12 Java keystore

keytool -importkeystore -srckeystore keystore.pkcs12 -srcstoretype pkcs12 \
-destkeystore hb-pass.jks -deststoretype pkcs12 \
-alias 1 -deststorepass <password_of_p12>
Edit the hawkbit application.properties file

vi application.properties
Change authentication security from false to true.

hawkbit.server.ddi.security.authentication.anonymous.enabled=true
Enter the https details at last

server.hostname=localhost
server.port=8443
hawkbit.artifact.url.protocols.download-http.protocol=https
hawkbit.artifact.url.protocols.download-http.port=8443

security.require-ssl=true
server.use-forward-headers=true

server.ssl.key-store= <hb-pass.jks file location>
server.ssl.key-store-type=JKS
server.ssl.key-password= <password_of_key>
server.ssl.key-store-password= <password_of_key_store>

server.ssl.protocol=TLS
server.ssl.enabled-protocols=TLSv1.2
server.ssl.ciphers=TLS_RSA_WITH_AES_256_CBC_SHA256,
TLS_RSA_WITH_AES_256_CBC_SHA

after that I copied server.pem on target
and add the path in swupdate.cfg
suricatta :
{

tenant          = "default";
id              = "orion";
confirm         = 0;
url             = "https://swupdateurl:8443";
polldelay       = 360;
nocheckcert     = false;
retry           = 4;
retrywait       = 200;
loglevel        = 10;
userid          = 0;
groupid         = 0;
max_artifacts   = 1;
cafile          = "/home/root/server.pem";

/
cafile = "/etc/ssl/cafile";
sslkey = "/etc/ssl/sslkey";
sslcert = "/etc/ssl/sslcert"; /
};
and the error logs :
Connected to 192.168.0.10 (192.168.0.10) port 8443 (#1)

found 1 certificates in /home/root/server.pem
ALPN, offering http/1.1
SSL connection using TLS1.2 / RSA_AES_256_CBC_SHA1
server certificate verification failed. CAfile: /home/root/server.pem CRLfile: none
Closing connection 1
[ERROR] : SWUPDATE failed [0] ERROR /home/hmecd001520/orion-yocto-bsp/build/tmp/work/orion-poky-linux/swupdate/2021.04-r0/git/corelib/channel_curl.c : channel_get : '
[DEBUG] : SWUPDATE running : [start_suricatta] : No pending action to process.
[DEBUG] : SWUPDATE running : [suricattawait] : Sleeping for 360 seconds.

L'hôpital Kévin
@kevlhop
Hello again, hawkbit community,
I am wondering if hawkbit have the possibility to easily relaunch all failed updates launched by a rollout ?
Thanks!
Kévin
2 replies
XING Yun
@BigFatDog
hello, when starting a rollout via management api(using the rest api), is there a way to start group executions in parallel?
Bondar Bogdan
@bogdan-bondar
@BigFatDog no, because it defeats the purpose of cascading Rollouts based on Trigger/Error threshold (see https://www.eclipse.org/hawkbit/concepts/rollout-management/)
XING Yun
@BigFatDog
Got it, thank you