-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Accept 0.8 tokens #2713
Comments
@jimsheldon I am brainstorming a fix for this. I was thinking maybe we find / replace secrets in the database to update tokens automatically. This would ensure pipelines using drone tokens would continue to work in 1.0 without modification. This would not solve the broader compatibility issue, for example, people using their tokens with drone-cli would still need to update. Wondering if this would be an acceptable compromise or not? Do you know how many repositories this impacts? And do you know if projects using Drone tokens follow some sort of naming convention (e.g. |
I think drone tokens are used very little in drone pipelines, they are more used by external processes like kubernetes cron jobs (I think some teams even trigger jobs in drone from TravisCI and CircleCI). If the tokens can't come over from 0.8 as-is, I think we would be ok with that. We would just have to communicate this to our users ahead of time. |
thanks for the reply. I have some other approaches that I can consider |
as a workaround to simplify migration, it is possible to provide drone 1.0 with a file that maps legacy secrets to users. This allows the system to accept 0.8 tokens. The file format is the following:
The file path is passed to the drone server using the
I will update the migration utility to generate the mapping file automatically. |
this is merged in master and will be part of a 1.2.1 release that I plan to cut tomorrow, along with a few other fixes related to yaml migration. |
See if we can accept 0.8 tokens with 1.0 to simplify the transition for teams that are upgrading
The text was updated successfully, but these errors were encountered: