Closed tripodsan closed 5 years ago
https://cq-dev.slack.com/archives/C9KD0TT6G/p1557392651377800
iven that the action and package name for src/html.htl
is trieloff/2c5fbf40237634b75ba3ed821172dfc53b27a091/html
, what should be action and package name for cgi-bin/html.js
?
I'm seeing following options:
trieloff/2c5fbf40237634b75ba3ed821172dfc53b27a091/html
(i.e. allow conflicts)trieloff/2c5fbf40237634b75ba3ed821172dfc53b27a091/cgi-bin-html
(inject prefix and hope to avoid conflicts)trieloff/2c5fbf40237634b75ba3ed821172dfc53b27a091-cgi-bin/html
(create a new package to really avoid conflicts)2
Too late, 2 is already implemented.
Use case: https://team.project-helix.io has a form that is currently an embedded google sheets iframe. With cgi-bin actions we can replace it with a proper contact form.
things to consider:
cgi-bin
needs special treatment in fastly, to allow POSTs (also see https://github.com/adobe/helix-pipeline/issues/251)Too late, 2 is already implemented.
where?
The build/deploy part of the implementation is in #851
cgi-bin
needs special treatment in fastly, to allow POSTs (also see adobe/helix-pipeline#251)
Yes, there should be a new X-Request-Type = "CGI"
to handle this.
if normal pipeline handles it, there will be a problem with POSTs as well.
No. The normal pipeline should remain GET only.
since the cgi-bin is not bound to a resource, it is quetionable if it should be handled by helix-pipeline... maybe for starters, we just treat them as raw openwhisk actions instead?
Yes, that was my plan. The helix-pipeline as it stands would only get in the way, so these are raw OW actions.
:tada: This issue has been resolved in version 2.2.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
@trieloff can you add documentation and/or a quick code sample?
Yes, as this becomes more practical to use. Right now, you can build and deploy the cgi-bin
, but you cannot invoke it anywhere.
as discussed during the 4/2018 hackathon, we should produce an ability to create cgi-like actions.
htdocs/cgi-bin
for example:
htdocs/cgi-bin/login.js
would be invoked with:
https://demo.project-helix.io/cgi-bin/login.js
/cc @davidnuescheler