Skip to content

[drone] import should translate invalid characters in secret IDs #116

Open

Description

@jimsheldon

Similar to what we did in drone/go-convert#108, the import command for Drone should translate invalid characters to safe characters allowed in Harness secret IDs.

For example, MY-SECRET is valid in Drone, but it is an invalid Harness secret ID. In the Harness API call, MY-SECRET should convert to MY_SECRET (the name of the secret can remain MY-SECRET).

Activity

  1. added
    bugSomething isn't working
    droneDrone migration target
    on Jun 15, 2023
  2. jimsheldon commented on Jul 3, 2023

    @jimsheldon
    ContributorAuthor

    It seems this work is still required.

    The secret name and ID are created from just the secret name, which can have invalid characters since it comes directly from the export.

    https://github.com/harness/harness-migrate/blob/master/internal/migrate/import.go#L101C23-L101C23
    https://github.com/harness/harness-migrate/blob/master/internal/util/util.go#L32-L33

  3. added a commit that references this issue on Jun 16, 2025
  4. added a commit that references this issue on Jul 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdroneDrone migration target

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions