job secret ' being stripped on save/print (OD-1994)
Cody Robinson opened 2 years ago

When putting in a job secret that is in JSON

ex: '{"http-basic":{"code.company.com":{"username":"user","password":"1234"}}}'

It ends up becoming: '{http-basic:{code.company.com:{username:user,password:1234}}}'

Which breaks the build process.

  • Robin Shen commented 2 years ago

    It depends on how you are using it. For instance quote might be stripped by shell if you simply pass the value via command line arguments. In that case, you may need to put base64 encoded version of your json and then convert it back to json in your program.

  • Cody Robinson commented 2 years ago

    This is for: https://getcomposer.org/doc/articles/authentication-for-private-packages.md

    We can't decode it since it's an environmental variable.

    Weird thing is, the old job secrets work fine, so I believe there was an update that started stripping them out.

    It is being used in the Build Image in Docker Image/Build Image under more options

    --build-arg COMPOSER_AUTH=@secret:composer-auth@

  • OneDev changed state to 'Closed' 2 years ago
    Previous Value Current Value
    Open
    Closed
  • OneDev commented 2 years ago

    State changed as code fixing the issue is committed (a4c332c4)

  • OneDev changed state to 'Released' 2 years ago
    Previous Value Current Value
    Closed
    Released
  • OneDev commented 2 years ago

    State changed as build OD-5269 is successful

  • Robin Shen changed state to 'Open' 2 years ago
    Previous Value Current Value
    Released
    Open
  • OneDev changed state to 'Closed' 2 years ago
    Previous Value Current Value
    Open
    Closed
  • OneDev commented 2 years ago

    State changed as code fixing the issue is committed (11a3449c)

  • OneDev changed state to 'Released' 2 years ago
    Previous Value Current Value
    Closed
    Released
  • OneDev commented 2 years ago

    State changed as build OD-5280 is successful

issue 1/1
Type
Bug
Priority
Major
Assignee
Affected Versions
10.9.6
Labels
No labels
Issue Votes (0)
Watchers (1)
Reference
OD-1994
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover