Repository navigation
[MNGSITE-503] add .well-known/security.txt - #354
Conversation
8fd1fb4 to
350e7ab
Compare
|
@michael-o now we have this: I still suggest adding root or to explicitly set |
michael-o
left a comment
There was a problem hiding this comment.
Two issues:
- I think that using this plugin is redundant when we have this: https://maven.apache.org/guides/introduction/introduction-to-the-pom.html#special-variables
- Pushing the expires every time like not a having an expires at all. I'd rather make it a fixed date and 1 month before evaluate again. It is like push the appointment with the dentist every time.
Huh. It's manual work and highly likely it's forgotten. It's very likely that
-1 for a fixed date.
The special variable doesn't work with offsets. And I fail to see how this would help. The expiry format MUST BE an ISO 8601 timestamp. |
|
Removing the locale now leads to a warning that the build is system dependent. Is this really wanted? I feel having warnings intentionally seems odd. This might get "fixed" by someone else in the future who didn't read this thread. |
|
@bmarwell I have added a commit which does it right. No fuzz, no additonal plugins. WFM: |
|
So you are uploading an expired file. Expires MUST be in the future!
Will undo the commit tomorrow if you don't. |
Oh man, I am so stupid. You are right, of course. I left this out completely. I guess I should not code anymore today. But still, having the date being set automatically, I consider wrong because the provided information must be manually reviewed. Please drop the commit. |
|
I just have reported a bug in RFC 9116. Quite embarassing one. |
d80151d to
350e7ab
Compare
This does not work. Again, providing |
I did and I ran it and it worked as expected for me. Minus one hour (I live in Europe/Berlin). Code path: It splits "ROOT" wich returns length 1 and Will just pass it though. I still don't know how you think it's going to be lower case. As an alternative, we can pass in <locale>${user.lang}_${user.country}</locale>...which is the same, but just explicit. |
Read the specs of the |
|
I still don't believe it matters as the format string does not contain any locale-specific patterns. |
|
Plexus XML handling coerces both: |
I did not say that it does matter, all I am telling is that |
|
@kwin I know that you have been working on this Plexus non-sense with trimming and to null coercion. Do you remember by any chance why an empty string is coerced to |
|
@bmarwell This is what you were looking for: diff --git a/pom.xml b/pom.xml
index a7d46e96..8686e1e1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -251,6 +251,8 @@
<configuration>
<name>maven.security.expires</name>
<pattern>yyyy-MM-dd'T'HH:mm:ssXXX</pattern>
+ <!-- This ulgy Plexus magic will be coerced in the plugin to Locale#ROOT -->
+ <locale xml:space="preserve"> </locale>
<offset>+1</offset>
<unit>year</unit>
</configuration> |
slawekjaranowski
left a comment
There was a problem hiding this comment.
Simple file and such long discussion.
Expire should be updated automatically - no one will remember to update it.
I'm not sure how many researcher will use it,
simply we can try put it and will observe if it helps for security issues generated by boots
|
one idea: shouldn't we simplify with ie just round to month, and forget about all the details for locale? that would match the spirit of having an automatic date, but without having it changed too much: once per month, not every rebuild (then no noise at svnpubsub level on each build) WDYT? |
Then just drop to date only. Fully valid ISO date |
Spec explicitly asks for date and TIME. +1 for Hervés suggestion, will add later. |
https://www.rfc-editor.org/rfc/rfc9116#section-2.5.5 does not say that. It just says that the format has to comply with ISO 8601. Moreover, the example is invalid according to ISO 8601 and this I wrote Yakov yesterday. Unless it uses the word MUST a local date is more than enough. Everything else is a problem with the RFC itself. yyyy-MM-dd is just enough. |
|
So, a researcher in the US gets more time. Interesting! Tbh I think only an instant makes sense to avoid this. Probably all scanners try to parse a time and "Z". It doesn't even hurt. |
|
When I open the RFC it clearly says
and
I think it couldn't be more clear. They require date and time in the format defined in 8601. While 8601 also defines LocalDate, in this case they want a DateTimeInstant defined how 8601 would want to have it. |
This is not what I understand. The specification is not concrete enough for me. A telescoping approach should be fine otherwise an erratum is necessary. |
That's a legit statement. However, it could take some considerable amount of time until the issue you opened has been resolved (i.e. clarification and fix of the example). As @bdemers, @hboutemy and @slawekjaranowski are okay with the state as-is, let’s merge it and come back later if it needs attention. |
michael-o
left a comment
There was a problem hiding this comment.
To make it really explicit I would add <timeZone>Etc/UTC</timeZone> to show our intent. The rest is fine now.
Co-authored-by: Konrad Windszus <[email protected]>
2ca7b80 to
c6bb375
Compare
c6bb375 to
05bbfc0
Compare
|
Resolve #1095 |
https://issues.apache.org/jira/browse/MNGSITE-503
References: