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
cpe_remote auth headers #177
Comments
For what it's worth this can be accomplished right now by editing def auth_headers(url, method)
#CPE::Distro.auth_headers(url, method)
require 'base64'
{'AUTHORIZATION' => "Basic #{
Base64.strict_encode64('username:password')}",
'Content-Type' => 'application/data'
}
rescue StandardError
Chef::Log.warn('Building auth headers failed')
{}
end I tried a few variations of creating a As for Erik's comment I think this could solved in the README as a new "authorzation" section. It would be nice to document how to add the CPE::Distro.auth_headers format so we could keep this in a sepreate non-cpe_remote cookbook. Cheers |
@mikedodge04 @chilcote did you guys ever finish this? I thought you did. |
+1 - would be useful deal with us cloud folks. |
Don't think this is still needed. |
Why is this no longer needed? Has cpe_remote been updated to have this functionality? |
Definitely still needed if the support hasn't been added. |
the cpe_remote cookbook currently warns if auth headers are not passed, but there is no actual way for people using the cookbook to pass these as it's an internal feature to FB. Could this be generalized and added to the cookbook?
I would love to have auth header usage to protect the chef_remote repo urls
The text was updated successfully, but these errors were encountered: