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

Add export/update FileCredentials support #220

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mvanini
Copy link

@mvanini mvanini commented Dec 30, 2022

Actually the script for credentials-migration doesn't fully support FileCredential type. That type of credential are exported as a SecretBytes (encrypted with master key of Jenkins source instance) and imported as SecretBytes generated by the already encrypted value...resulting in corrupted file.

I added a new Converter that handle the marshal/unmarshal operation of SecretBytes.
The file content is encoded in base64.

@Dohbedoh Dohbedoh requested a review from fbelzunc April 12, 2023 06:16
Copy link
Contributor

@fbelzunc fbelzunc left a comment

Choose a reason for hiding this comment

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

lgtm

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.

3 participants