Runway 1.0.1
This commit is contained in:
1 parent
dcf819146b
commit
ce217fc952
259 files changed
+22226
-206
No files matched your search
@@ -3,17 +3,15 @@
|
||||
# external/plugins/protection/. The id MUST be 'protection' (the kernel security-floor allowlist).
|
||||
id: protection
|
||||
name: Essential Protection
|
||||
# The essential plugin ships with the kernel, in the same release, on the kernel's version line (docs/SPI-STABILITY.md, "The essential-plugin exception"):
|
||||
# 1.0.0 from Runway 1.0.0-rc1 (plugin versions are plain MAJOR.MINOR.PATCH, so the rc suffix lives only on the kernel
|
||||
# tag). The number went from 1.5.0 (0.5.0-beta14) back to 1.0.0 once, at rc1; seeding compares SHA-256 hashes, not
|
||||
# versions, and no plugin may `requires:` an essential plugin, so nothing keys on it.
|
||||
version: 1.0.0
|
||||
# The essential plugin ships with the kernel, in the same release, on the kernel's version line (docs/SPI-STABILITY.md,
|
||||
# "The essential-plugin exception"): its version is the kernel's plain MAJOR.MINOR.PATCH. Seeding compares SHA-256
|
||||
# hashes, not versions, and no plugin may `requires:` an essential plugin, so nothing keys on it.
|
||||
version: 1.0.1
|
||||
essential: true
|
||||
# The mandatory floor (SPI 1.0.0): every plugin with a mainClass declares one; the kernel's own plugin declares the
|
||||
# kernel's SPI, so the floor rule can never block it and trip the fail-closed security floor. It also keeps an
|
||||
# older kernel from registering a plugin that links SPI types it lacks: without a floor, a rollback from
|
||||
# 0.5.0-beta14 to beta13 over a refreshed protection folder died on a NoClassDefFoundError naming neither the plugin
|
||||
# nor the cause; with it, every kernel since 0.5.0-beta10 refuses the plugin with a reason naming both SPI levels.
|
||||
# older kernel from registering a plugin that links SPI types it lacks: it refuses the plugin with a reason naming
|
||||
# both SPI levels, instead of failing on a NoClassDefFoundError that names neither the plugin nor the cause.
|
||||
requiresSpi: ">=1.0.0"
|
||||
mainClass: mx.quest.protection.ProtectionConfig
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<parent>
|
||||
<groupId>mx.quest</groupId>
|
||||
<artifactId>runway</artifactId>
|
||||
<version>1.0.0</version>
|
||||
<version>1.0.1</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>runway-plugin-protection</artifactId>
|
||||
|
||||
+5
-5
@@ -16,14 +16,14 @@ import org.junit.jupiter.api.Test;
|
||||
* The shipped descriptor declares the SPI floor the plugin's code actually needs.
|
||||
*
|
||||
* <h2>Why</h2>
|
||||
* The installer (on every upgrade since 1.0.0-rc1; before that with {@code --update-essential-plugins}) replaces the
|
||||
* The installer (on every upgrade) replaces the
|
||||
* protection jar in the version-independent
|
||||
* {@code external/plugins/protection/}, so after an upgrade the jar outlives the kernel it came with: a rollback
|
||||
* is a symlink flip that puts an older kernel in front of the newer jar. From 1.5.0 the plugin links
|
||||
* is a symlink flip that puts an older kernel in front of the newer jar. The plugin links
|
||||
* {@code spi.service.RequestContext} (SPI 0.5.0) and {@code spi.service.ConsoleScreen} (SPI 0.6.0). A kernel
|
||||
* without them registered the plugin and then failed to start with {@code NoClassDefFoundError: …RequestContext}
|
||||
* — the essential plugin, so nothing came up, and nothing named the plugin. The {@code requiresSpi} floor makes
|
||||
* every kernel since 0.5.0-beta10 refuse it with a reason instead.
|
||||
* without them would register the plugin and then fail to start with {@code NoClassDefFoundError: …RequestContext}
|
||||
* — the essential plugin, so nothing comes up, and nothing names the plugin. The {@code requiresSpi} floor makes
|
||||
* every kernel that reads it refuse the plugin with a reason instead.
|
||||
*/
|
||||
class DescriptorSpiFloorTest {
|
||||
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@ class ProtectionDescriptorK4Test {
|
||||
PluginDescriptor descriptor = shipped();
|
||||
assertEquals("protection", descriptor.id());
|
||||
assertTrue(descriptor.isEssential());
|
||||
assertEquals("1.0.0", descriptor.version(), "versioned on the kernel's line from rc1");
|
||||
assertEquals("1.0.1", descriptor.version(), "versioned on the kernel's line");
|
||||
assertEquals(PluginVersion.parse("1.0.0"), descriptor.spiFloor());
|
||||
assertEquals(PluginVersion.parse(RunwaySpi.VERSION).major(), descriptor.spiFloor().major(),
|
||||
"the floor names the kernel's own SPI major line");
|
||||
|
||||
+1
-1
@@ -41,7 +41,7 @@ class RateLimitEdgeGuardTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Loopback is NOT exempt from the rate limit (the descriptor said it was until rc1): behind a same-host proxy whose
|
||||
* Loopback is NOT exempt from the rate limit: behind a same-host proxy whose
|
||||
* forwarded address is not trusted, every client arrives as {@code 127.0.0.1}, and an implicit exemption would
|
||||
* switch the limit off for the whole internet. What loopback does get is never being BLOCKED, so its throttles
|
||||
* never escalate — the safety rail against auto-blocking the operator's own proxy or probe.
|
||||
|
||||
Reference in new issue
Block a user