Skip to content

Receptive Agents: Use strict base64 encoding to avoid newline at the end

Timo Furrer requested to merge remove-trailing-new-line into master

What does this MR do and why?

Receptive Agents: Use strict base64 encoding to avoid newline at the end

This change set makes sure to use strict base64 encoding which fully complies with RFC4648 - that is, it doesn't add a newline to the end of the encoded string like Base64.encode64() does.

For example:

$ curl projects/20/cluster_agents/17/url_configurations
[{"id":5,"agent_id":17,"url":"grpc://agentk.example.com","public_key":"T7U0Quu38esiSatS7jEQauiODsEYn2IdZVToveKs7h8=\n","client_cert":null,"ca_cert":null,"tls_host":null}]
~/work/gitlab/gitlab-development-kit/gitlab move-receptive-agents-to-ultimate*
$ curl projects/20/cluster_agents/17/url_configurations
[{"id":5,"agent_id":17,"url":"grpc://agentk.example.com","public_key":"T7U0Quu38esiSatS7jEQauiODsEYn2IdZVToveKs7h8=","client_cert":null,"ca_cert":null,"tls_host":null}]
Edited by Timo Furrer

Merge request reports

Loading