-
Notifications
You must be signed in to change notification settings - Fork 853
TS-4320: Add ACME Plugin #560
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
Conversation
|
Looks ok, +1. |
|
|
||
| static const char PLUGIN_NAME[] = "acme"; | ||
| static const char ACME_WK_PATH[] = ".well-known/acme-challenge/"; | ||
| static const char ACME_OK_RESP[] = "HTTP/1.1 200 OK\r\nContent-Type: application/jose\r\nCache-Control: no-cache\r\n"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no-cache (https://tools.ietf.org/html/rfc7234#section-5.2.1.4) or no-store (https://tools.ietf.org/html/rfc7234#section-5.2.1.5)? Eg, cache it, but validate before serving from cache, or don't cache it at all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, lets make it CC: no-store,private. This likely is in several other plugins that this is stole^h^h^h borrowed from. Perhaps file a Jira on fixing those as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, we should make a separate JIRA and get all these at once. I'll leave this be for now.
|
Could you include a readme or better a doc page (https://docs.trafficserver.apache.org/en/latest/developer-guide/documentation/plugins.en.html) explaining what this is and does? |
plugins/experimental/acme/acme.c
Outdated
| typedef struct AcmeConfig_t { | ||
| char *proof; | ||
| } AcmeConfig; | ||
| AcmeConfig gConfig; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static
Address the AM_CFLAGS AM_CXXFLAGS in tsxs.in
…ail and print to stderr in case of an error. (apache#560)
…ail and print to stderr in case of an error. (apache#560)
…ail and print to stderr in case of an error. (apache#560)
…ail and print to stderr in case of an error. (apache#560)
…ail and print to stderr in case of an error. (apache#560)
…ail and print to stderr in case of an error. (apache#560)
This is a first pass at making an ACME plugin for ATS. This current version amounts to a simple static file server that leverages a CLI client, but there are plans to make this a fully standalone implementation down the road.