[{"data":1,"prerenderedAt":2635,"buildId":2636},["ShallowReactive",2],{"\u002Fdocs\u002Fruntime\u002Fcustom-configuration":3,"\u002Fdocs\u002Fruntime\u002Fcustom-configuration-surround":2282,"banner":2294,"navigation":2308},{"id":4,"title":5,"body":6,"description":2270,"extension":2271,"meta":2272,"navigation":2273,"ogImage":2275,"pageType":2276,"path":2277,"seo":2278,"sitemap":2279,"stem":2280,"__hash__":2281},"docs\u002F1.docs\u002F5.runtime\u002F9.custom-configuration.md","Your own configuration",{"type":7,"value":8,"toc":2255},"minimark",[9,26,111,116,122,242,245,789,930,939,943,946,1007,1039,1060,1065,1151,1158,1267,1335,1339,1357,1392,1420,1424,1440,1566,1589,1636,1639,1696,1700,1703,1711,1737,1744,1853,1857,1932,1935,1939,1942,2034,2053,2057,2068,2226,2229,2233,2251],[10,11,12,13,17,18,21,22,25],"p",{},"An application rarely needs StoatFlow's settings alone: a database pool, an HTTP client, an LLM provider each want a URL,\na timeout, a credential. StoatFlow's configuration layer, ",[14,15,16],"code",{},"io.stoatflow:stoatflow-config",", binds those sections too —\nfrom the same ",[14,19,20],{},"application.yaml",", the same overlays, ",[14,23,24],{},"-D"," system properties and environment variables — so the runtime\nneeds no Spring, Micronaut or Quarkus beside it.",[27,28,29],"tldr-panel",{},[30,31,32,48,71,88,105],"ul",{},[33,34,35,39,40,43,44,47],"li",{},[36,37,38],"strong",{},"Bind a section",": ",[14,41,42],{},"configuration.bind\u003CPaymentsDb>(\"payments-db\")"," (Java: ",[14,45,46],{},"configuration.bind(\"payments-db\", PaymentsDb.class)",") returns a Kotlin data class or a Java record.",[33,49,50,53,54,57,58,60,61,57,64,67,68,70],{},[36,51,52],{},"Same sources as StoatFlow",": variables (",[14,55,56],{},"PAYMENTS_DB_MAX_POOL_SIZE=20","), then ",[14,59,24],{}," properties (",[14,62,63],{},"-Dpayments-db.max-pool-size=20",[14,65,66],{},"STOATFLOW_CONFIG_FILES"," overlays, then the bundled ",[14,69,20],{},", then the class's defaults.",[33,72,73,39,76,79,80,83,84,87],{},[36,74,75],{},"Hand the configuration to the runtime",[14,77,78],{},"StoatFlowRuntime.fromConfig(configuration, …)","; plugins read it through ",[14,81,82],{},"PluginContext.configuration()","; ",[14,85,86],{},"\u002Fconfig"," shows your sections, masked.",[33,89,90,39,93,96,97,100,101,104],{},[36,91,92],{},"Secrets from files",[14,94,95],{},"${secret:name}"," reads a file from ",[14,98,99],{},"\u002Frun\u002Fsecrets"," (a Kubernetes Secret volume); declare the field ",[14,102,103],{},"Secret"," and its value never prints.",[33,106,107,110],{},[36,108,109],{},"Every problem at once",", each with its key and where the value came from.",[112,113,115],"h2",{"id":114},"a-section-of-your-own","A section of your own",[10,117,118,119,121],{},"Write the section beside StoatFlow's in ",[14,120,20],{},":",[123,124,129],"pre",{"className":125,"code":126,"language":127,"meta":128,"style":128},"language-yaml shiki shiki-themes vitesse-light","stoatflow:\n  application-id: payments-enricher\n  bootstrap-servers: ${KAFKA_BOOTSTRAP_SERVERS:-localhost:9092}\n\npayments-db:\n  url: jdbc:postgresql:\u002F\u002Fdb:5432\u002Fpayments\n  user: payments\n  password: ${secret:payments-db-password}   # a file in the mounted secrets directory\n  max-pool-size: 10\n  connect-timeout: 5s\n","yaml","",[14,130,131,144,156,167,174,182,193,204,219,231],{"__ignoreMap":128},[132,133,136,140],"span",{"class":134,"line":135},"line",1,[132,137,139],{"class":138},"su6XF","stoatflow",[132,141,143],{"class":142},"sYZai",":\n",[132,145,147,150,152],{"class":134,"line":146},2,[132,148,149],{"class":138},"  application-id",[132,151,121],{"class":142},[132,153,155],{"class":154},"spphp"," payments-enricher\n",[132,157,159,162,164],{"class":134,"line":158},3,[132,160,161],{"class":138},"  bootstrap-servers",[132,163,121],{"class":142},[132,165,166],{"class":154}," ${KAFKA_BOOTSTRAP_SERVERS:-localhost:9092}\n",[132,168,170],{"class":134,"line":169},4,[132,171,173],{"emptyLinePlaceholder":172},true,"\n",[132,175,177,180],{"class":134,"line":176},5,[132,178,179],{"class":138},"payments-db",[132,181,143],{"class":142},[132,183,185,188,190],{"class":134,"line":184},6,[132,186,187],{"class":138},"  url",[132,189,121],{"class":142},[132,191,192],{"class":154}," jdbc:postgresql:\u002F\u002Fdb:5432\u002Fpayments\n",[132,194,196,199,201],{"class":134,"line":195},7,[132,197,198],{"class":138},"  user",[132,200,121],{"class":142},[132,202,203],{"class":154}," payments\n",[132,205,207,210,212,215],{"class":134,"line":206},8,[132,208,209],{"class":138},"  password",[132,211,121],{"class":142},[132,213,214],{"class":154}," ${secret:payments-db-password}",[132,216,218],{"class":217},"s8zF2","   # a file in the mounted secrets directory\n",[132,220,222,225,227],{"class":134,"line":221},9,[132,223,224],{"class":138},"  max-pool-size",[132,226,121],{"class":142},[132,228,230],{"class":229},"s-TwI"," 10\n",[132,232,234,237,239],{"class":134,"line":233},10,[132,235,236],{"class":138},"  connect-timeout",[132,238,121],{"class":142},[132,240,241],{"class":154}," 5s\n",[10,243,244],{},"Declare a class for it, bind it, and pass the same configuration to the runtime:",[246,247,249,513],"code-tabs",{"group":248},"lang",[123,250,255],{"className":251,"code":252,"filename":253,"language":254,"meta":128,"style":128},"language-kotlin shiki shiki-themes vitesse-light","import io.stoatflow.config.Configuration\nimport io.stoatflow.config.Secret\nimport java.time.Duration\n\ndata class PaymentsDb(\n    val url: String,\n    val user: String,\n    val password: Secret,\n    val maxPoolSize: Int = 10,\n    val connectTimeout: Duration = Duration.ofSeconds(5),\n)\n\nfun main() {\n    val configuration = Configuration.load()          \u002F\u002F StoatFlow's standard sources\n    val db = configuration.bind\u003CPaymentsDb>(\"payments-db\")\n\n    StoatFlowRuntime\n        .fromConfig(configuration, topologyBuilder = { builder -> buildTopology(builder, db) })\n        .start()\n}\n","Kotlin","kotlin",[14,256,257,267,274,281,285,302,316,327,338,356,383,389,394,406,429,459,464,470,496,507],{"__ignoreMap":128},[132,258,259,263],{"class":134,"line":135},[132,260,262],{"class":261},"sbBg2","import",[132,264,266],{"class":265},"sySUi"," io.stoatflow.config.Configuration\n",[132,268,269,271],{"class":134,"line":146},[132,270,262],{"class":261},[132,272,273],{"class":265}," io.stoatflow.config.Secret\n",[132,275,276,278],{"class":134,"line":158},[132,277,262],{"class":261},[132,279,280],{"class":265}," java.time.Duration\n",[132,282,283],{"class":134,"line":169},[132,284,173],{"emptyLinePlaceholder":172},[132,286,287,291,294,298],{"class":134,"line":176},[132,288,290],{"class":289},"si04Y","data",[132,292,293],{"class":261}," class",[132,295,297],{"class":296},"sUxyF"," PaymentsDb",[132,299,301],{"class":300},"suHK_","(\n",[132,303,304,307,310,313],{"class":134,"line":184},[132,305,306],{"class":261},"    val",[132,308,309],{"class":300}," url: ",[132,311,312],{"class":296},"String",[132,314,315],{"class":300},",\n",[132,317,318,320,323,325],{"class":134,"line":195},[132,319,306],{"class":261},[132,321,322],{"class":300}," user: ",[132,324,312],{"class":296},[132,326,315],{"class":300},[132,328,329,331,334,336],{"class":134,"line":206},[132,330,306],{"class":261},[132,332,333],{"class":300}," password: ",[132,335,103],{"class":296},[132,337,315],{"class":300},[132,339,340,342,345,348,351,354],{"class":134,"line":221},[132,341,306],{"class":261},[132,343,344],{"class":300}," maxPoolSize: ",[132,346,347],{"class":296},"Int",[132,349,350],{"class":142}," =",[132,352,353],{"class":229}," 10",[132,355,315],{"class":300},[132,357,358,360,363,366,368,371,374,377,380],{"class":134,"line":233},[132,359,306],{"class":261},[132,361,362],{"class":300}," connectTimeout: ",[132,364,365],{"class":296},"Duration",[132,367,350],{"class":142},[132,369,370],{"class":300}," Duration.",[132,372,373],{"class":265},"ofSeconds",[132,375,376],{"class":300},"(",[132,378,379],{"class":229},"5",[132,381,382],{"class":300},"),\n",[132,384,386],{"class":134,"line":385},11,[132,387,388],{"class":300},")\n",[132,390,392],{"class":134,"line":391},12,[132,393,173],{"emptyLinePlaceholder":172},[132,395,397,400,403],{"class":134,"line":396},13,[132,398,399],{"class":261},"fun",[132,401,402],{"class":265}," main",[132,404,405],{"class":300},"() {\n",[132,407,409,411,414,417,420,423,426],{"class":134,"line":408},14,[132,410,306],{"class":261},[132,412,413],{"class":300}," configuration ",[132,415,416],{"class":142},"=",[132,418,419],{"class":300}," Configuration.",[132,421,422],{"class":265},"load",[132,424,425],{"class":300},"()          ",[132,427,428],{"class":217},"\u002F\u002F StoatFlow's standard sources\n",[132,430,432,434,437,439,442,445,448,451,454,457],{"class":134,"line":431},15,[132,433,306],{"class":261},[132,435,436],{"class":300}," db ",[132,438,416],{"class":142},[132,440,441],{"class":300}," configuration.",[132,443,444],{"class":265},"bind",[132,446,447],{"class":300},"\u003C",[132,449,450],{"class":296},"PaymentsDb",[132,452,453],{"class":300},">(",[132,455,456],{"class":154},"\"payments-db\"",[132,458,388],{"class":300},[132,460,462],{"class":134,"line":461},16,[132,463,173],{"emptyLinePlaceholder":172},[132,465,467],{"class":134,"line":466},17,[132,468,469],{"class":300},"    StoatFlowRuntime\n",[132,471,473,476,479,482,484,487,490,493],{"class":134,"line":472},18,[132,474,475],{"class":300},"        .",[132,477,478],{"class":265},"fromConfig",[132,480,481],{"class":300},"(configuration, topologyBuilder ",[132,483,416],{"class":142},[132,485,486],{"class":300}," { builder ",[132,488,489],{"class":142},"->",[132,491,492],{"class":265}," buildTopology",[132,494,495],{"class":300},"(builder, db) })\n",[132,497,499,501,504],{"class":134,"line":498},19,[132,500,475],{"class":300},[132,502,503],{"class":265},"start",[132,505,506],{"class":300},"()\n",[132,508,510],{"class":134,"line":509},20,[132,511,512],{"class":300},"}\n",[123,514,519],{"className":515,"code":516,"filename":517,"language":518,"meta":128,"style":128},"language-java shiki shiki-themes vitesse-light","import io.stoatflow.config.ConfigDefault;\nimport io.stoatflow.config.Configuration;\nimport io.stoatflow.config.Secret;\nimport java.time.Duration;\n\npublic record PaymentsDb(String url, String user, Secret password,\n                         @ConfigDefault(\"10\") int maxPoolSize,\n                         @ConfigDefault(\"5s\") Duration connectTimeout) {}\n\nConfiguration configuration = Configuration.load();\nPaymentsDb db = configuration.bind(\"payments-db\", PaymentsDb.class);\nStoatFlowRuntime.fromConfig(configuration, builder -> buildTopology(builder, db)).start();\n","Java","java",[14,520,521,546,567,587,605,609,637,666,691,695,715,750],{"__ignoreMap":128},[132,522,523,525,528,531,533,535,538,540,543],{"class":134,"line":135},[132,524,262],{"class":261},[132,526,527],{"class":300}," io",[132,529,530],{"class":142},".",[132,532,139],{"class":300},[132,534,530],{"class":142},[132,536,537],{"class":300},"config",[132,539,530],{"class":142},[132,541,542],{"class":300},"ConfigDefault",[132,544,545],{"class":142},";\n",[132,547,548,550,552,554,556,558,560,562,565],{"class":134,"line":146},[132,549,262],{"class":261},[132,551,527],{"class":300},[132,553,530],{"class":142},[132,555,139],{"class":300},[132,557,530],{"class":142},[132,559,537],{"class":300},[132,561,530],{"class":142},[132,563,564],{"class":300},"Configuration",[132,566,545],{"class":142},[132,568,569,571,573,575,577,579,581,583,585],{"class":134,"line":158},[132,570,262],{"class":261},[132,572,527],{"class":300},[132,574,530],{"class":142},[132,576,139],{"class":300},[132,578,530],{"class":142},[132,580,537],{"class":300},[132,582,530],{"class":142},[132,584,103],{"class":300},[132,586,545],{"class":142},[132,588,589,591,594,596,599,601,603],{"class":134,"line":169},[132,590,262],{"class":261},[132,592,593],{"class":300}," java",[132,595,530],{"class":142},[132,597,598],{"class":300},"time",[132,600,530],{"class":142},[132,602,365],{"class":300},[132,604,545],{"class":142},[132,606,607],{"class":134,"line":176},[132,608,173],{"emptyLinePlaceholder":172},[132,610,611,614,617,619,621,624,627,630,632,635],{"class":134,"line":184},[132,612,613],{"class":289},"public",[132,615,616],{"class":289}," record",[132,618,297],{"class":296},[132,620,376],{"class":142},[132,622,623],{"class":300},"String url",[132,625,626],{"class":142},",",[132,628,629],{"class":300}," String user",[132,631,626],{"class":142},[132,633,634],{"class":300}," Secret password",[132,636,315],{"class":142},[132,638,639,642,644,646,650,653,655,658,661,664],{"class":134,"line":195},[132,640,641],{"class":142},"                         @",[132,643,542],{"class":289},[132,645,376],{"class":142},[132,647,649],{"class":648},"sSP4y","\"",[132,651,652],{"class":154},"10",[132,654,649],{"class":648},[132,656,657],{"class":142},")",[132,659,660],{"class":289}," int",[132,662,663],{"class":300}," maxPoolSize",[132,665,315],{"class":142},[132,667,668,670,672,674,676,679,681,683,686,688],{"class":134,"line":206},[132,669,641],{"class":142},[132,671,542],{"class":289},[132,673,376],{"class":142},[132,675,649],{"class":648},[132,677,678],{"class":154},"5s",[132,680,649],{"class":648},[132,682,657],{"class":142},[132,684,685],{"class":300}," Duration connectTimeout",[132,687,657],{"class":142},[132,689,690],{"class":142}," {}\n",[132,692,693],{"class":134,"line":221},[132,694,173],{"emptyLinePlaceholder":172},[132,696,697,699,703,705,708,710,712],{"class":134,"line":233},[132,698,564],{"class":300},[132,700,702],{"class":701},"svycV"," configuration",[132,704,350],{"class":142},[132,706,707],{"class":701}," Configuration",[132,709,530],{"class":142},[132,711,422],{"class":265},[132,713,714],{"class":142},"();\n",[132,716,717,719,722,724,726,728,730,732,734,736,738,740,742,744,747],{"class":134,"line":385},[132,718,450],{"class":300},[132,720,721],{"class":701}," db",[132,723,350],{"class":142},[132,725,702],{"class":701},[132,727,530],{"class":142},[132,729,444],{"class":265},[132,731,376],{"class":142},[132,733,649],{"class":648},[132,735,179],{"class":154},[132,737,649],{"class":648},[132,739,626],{"class":142},[132,741,297],{"class":701},[132,743,530],{"class":142},[132,745,746],{"class":701},"class",[132,748,749],{"class":142},");\n",[132,751,752,755,757,759,761,764,766,769,771,773,775,778,780,782,785,787],{"class":134,"line":391},[132,753,754],{"class":701},"StoatFlowRuntime",[132,756,530],{"class":142},[132,758,478],{"class":265},[132,760,376],{"class":142},[132,762,763],{"class":300},"configuration",[132,765,626],{"class":142},[132,767,768],{"class":300}," builder ",[132,770,489],{"class":142},[132,772,492],{"class":265},[132,774,376],{"class":142},[132,776,777],{"class":300},"builder",[132,779,626],{"class":142},[132,781,721],{"class":300},[132,783,784],{"class":142},")).",[132,786,503],{"class":265},[132,788,714],{"class":142},[30,790,791,809,827,837],{},[33,792,793,796,797,800,801,804,805,808],{},[36,794,795],{},"Keys"," are kebab-case (",[14,798,799],{},"max-pool-size"," for ",[14,802,803],{},"maxPoolSize","); camelCase and snake_case spellings match as well.\n",[14,806,807],{},"@ConfigName(\"…\")"," names a key that does not derive from the field.",[33,810,811,814,815,818,819,822,823,826],{},[36,812,813],{},"Defaults",": a Kotlin constructor default, or for a Java record ",[14,816,817],{},"@ConfigDefault(\"…\")"," (written as it would be in\nYAML), ",[14,820,821],{},"Optional\u003CT>",", or a ",[14,824,825],{},"@Nullable"," type. A field with neither is required.",[33,828,829,832,833,836],{},[36,830,831],{},"Validation",": a data class's ",[14,834,835],{},"init { require(…) }"," or a record's compact constructor runs as part of the bind; its\nmessage becomes the error.",[33,838,839,39,842,844,845,844,848,844,851,853,854,853,857,853,860,863,864,853,867,844,870,315,873,876,877,880,881,884,885,887,888,844,891,844,894,844,897,844,900,903,904,907,908,844,911,844,914,844,917,844,919,853,922,925,926,929],{},[36,840,841],{},"Types",[14,843,312],{},", ",[14,846,847],{},"Char",[14,849,850],{},"Boolean",[14,852,347],{},"\u002F",[14,855,856],{},"Long",[14,858,859],{},"Short",[14,861,862],{},"Byte"," (range-checked), ",[14,865,866],{},"Double",[14,868,869],{},"Float",[14,871,872],{},"BigDecimal",[14,874,875],{},"BigInteger",", enums (by name; case, ",[14,878,879],{},"-"," and ",[14,882,883],{},"_"," ignored), ",[14,886,365],{}," (",[14,889,890],{},"500ms",[14,892,893],{},"10s",[14,895,896],{},"5m",[14,898,899],{},"1h",[14,901,902],{},"2d"," or ISO-8601\n",[14,905,906],{},"PT30S","), ",[14,909,910],{},"URI",[14,912,913],{},"Path",[14,915,916],{},"UUID",[14,918,103],{},[14,920,921],{},"List",[14,923,924],{},"Set"," (a YAML list or a comma-separated value), ",[14,927,928],{},"Map\u003CString, T>",",\nnested classes and nullable types. Anything else through a converter (below).",[10,931,932,935,936,938],{},[14,933,934],{},"StoatFlowRuntime.fromConfig(topologyBuilder)"," without a configuration still works: it loads the standard sources\nitself. Load the configuration yourself when you bind sections of your own, so StoatFlow and your code read one set of\nsources and ",[14,937,86],{}," shows both.",[112,940,942],{"id":941},"where-a-value-comes-from","Where a value comes from",[10,944,945],{},"Highest precedence first:",[947,948,949,971,981,988,1001],"ol",{},[33,950,951,954,955,880,957,959,960,962,963,966,967,970],{},[36,952,953],{},"Environment variables",": the key's YAML path with every ",[14,956,530],{},[14,958,879],{}," as ",[14,961,883],{},", upper-cased —\n",[14,964,965],{},"payments-db.max-pool-size"," is ",[14,968,969],{},"PAYMENTS_DB_MAX_POOL_SIZE",". StoatFlow resolves the name against your class, so\nnothing needs escaping.",[33,972,973,978,979,530],{},[36,974,975,977],{},[14,976,24],{}," system properties",": the YAML path as written — ",[14,980,63],{},[33,982,983,987],{},[36,984,985],{},[14,986,66],{}," overlays (YAML only, later files win).",[33,989,990,991,996,997,530],{},"The bundled ",[36,992,993],{},[14,994,995],{},"application.yml",", then ",[36,998,999],{},[14,1000,20],{},[33,1002,1003,1004,530],{},"The class's ",[36,1005,1006],{},"defaults",[10,1008,1009,1010,1012,1013,1015,1016,880,1019,1022,1023,1026,1027,1030,1031,1034,1035,1038],{},"The files merge per bind, against your class: an overlay's ",[14,1011,803],{}," replaces a base file's ",[14,1014,799],{},", while a\nmap's keys match only as written (",[14,1017,1018],{},"io.acme.foo",[14,1020,1021],{},"io.acme.Foo"," stay two entries). A later file's empty value\n(",[14,1024,1025],{},"url:"," with nothing after it) changes nothing; an explicit ",[14,1028,1029],{},"~"," or ",[14,1032,1033],{},"null"," clears an earlier value only where the field\ncan be null — a nullable or ",[14,1036,1037],{},"Optional"," field, a nullable map value — and elsewhere is as if it were absent. A key\nwritten twice in one YAML mapping fails the load, naming both lines.",[10,1040,1041,1042,1045,1046,1049,1050,880,1053,1056,1057,1059],{},"In values, ",[14,1043,1044],{},"${VAR}"," reads a system property, then an environment variable; ",[14,1047,1048],{},"${VAR:-default}"," falls back to the default;\n",[14,1051,1052],{},"${env:NAME}",[14,1054,1055],{},"${sys:name}"," read one source each; ",[14,1058,95],{}," reads a secret file. A placeholder that cannot be\nresolved fails only where a bound value holds it.",[1061,1062,1064],"h3",{"id":1063},"lists-and-maps-from-variables","Lists and maps from variables",[1066,1067,1068,1084],"table",{},[1069,1070,1071],"thead",{},[1072,1073,1074,1078,1081],"tr",{},[1075,1076,1077],"th",{},"Field",[1075,1079,1080],{},"Variable",[1075,1082,1083],{},"Effect",[1085,1086,1087,1107,1121,1136],"tbody",{},[1072,1088,1089,1095,1100],{},[1090,1091,1092],"td",{},[14,1093,1094],{},"hosts: List\u003CString>",[1090,1096,1097],{},[14,1098,1099],{},"PAYMENTS_DB_HOSTS=db-1,db-2",[1090,1101,1102,1103,1106],{},"the whole list (",[14,1104,1105],{},"\\,"," is a literal comma)",[1072,1108,1109,1113,1118],{},[1090,1110,1111],{},[14,1112,1094],{},[1090,1114,1115],{},[14,1116,1117],{},"PAYMENTS_DB_HOSTS_1=db-2",[1090,1119,1120],{},"element 1 of the YAML's list; the next free index appends",[1072,1122,1123,1128,1133],{},[1090,1124,1125],{},[14,1126,1127],{},"endpoints: List\u003CEndpoint>",[1090,1129,1130],{},[14,1131,1132],{},"APP_ENDPOINTS_0_TIMEOUT=10s",[1090,1134,1135],{},"one field of element 0",[1072,1137,1138,1143,1148],{},[1090,1139,1140],{},[14,1141,1142],{},"tags: Set\u003CString>",[1090,1144,1145],{},[14,1146,1147],{},"APP_TAGS=a,b",[1090,1149,1150],{},"the whole set (a set has no index)",[10,1152,1153,1154,1157],{},"A ",[14,1155,1156],{},"Map"," field takes entries from variables only when it says how the rest of the name becomes the key:",[123,1159,1161],{"className":251,"code":1160,"language":254,"meta":128,"style":128},"data class LlmProvider(val baseUrl: URI, val apiKey: Secret, val timeout: Duration = Duration.ofSeconds(30))\ndata class LlmConfig(\n    val defaultProvider: String,\n    @ConfigMapKeys(MapKeyStyle.KEBAB) val providers: Map\u003CString, LlmProvider>,\n)\n",[14,1162,1163,1214,1225,1236,1263],{"__ignoreMap":128},[132,1164,1165,1167,1169,1172,1174,1177,1180,1182,1184,1186,1189,1191,1193,1195,1198,1200,1202,1204,1206,1208,1211],{"class":134,"line":135},[132,1166,290],{"class":289},[132,1168,293],{"class":261},[132,1170,1171],{"class":296}," LlmProvider",[132,1173,376],{"class":300},[132,1175,1176],{"class":261},"val",[132,1178,1179],{"class":300}," baseUrl: ",[132,1181,910],{"class":296},[132,1183,844],{"class":300},[132,1185,1176],{"class":261},[132,1187,1188],{"class":300}," apiKey: ",[132,1190,103],{"class":296},[132,1192,844],{"class":300},[132,1194,1176],{"class":261},[132,1196,1197],{"class":300}," timeout: ",[132,1199,365],{"class":296},[132,1201,350],{"class":142},[132,1203,370],{"class":300},[132,1205,373],{"class":265},[132,1207,376],{"class":300},[132,1209,1210],{"class":229},"30",[132,1212,1213],{"class":300},"))\n",[132,1215,1216,1218,1220,1223],{"class":134,"line":146},[132,1217,290],{"class":289},[132,1219,293],{"class":261},[132,1221,1222],{"class":296}," LlmConfig",[132,1224,301],{"class":300},[132,1226,1227,1229,1232,1234],{"class":134,"line":158},[132,1228,306],{"class":261},[132,1230,1231],{"class":300}," defaultProvider: ",[132,1233,312],{"class":296},[132,1235,315],{"class":300},[132,1237,1238,1241,1244,1246,1249,1251,1253,1255,1257,1260],{"class":134,"line":169},[132,1239,1240],{"class":296},"    @ConfigMapKeys",[132,1242,1243],{"class":300},"(MapKeyStyle.KEBAB) ",[132,1245,1176],{"class":261},[132,1247,1248],{"class":300}," providers: ",[132,1250,1156],{"class":296},[132,1252,447],{"class":300},[132,1254,312],{"class":296},[132,1256,844],{"class":300},[132,1258,1259],{"class":296},"LlmProvider",[132,1261,1262],{"class":300},">,\n",[132,1264,1265],{"class":134,"line":176},[132,1266,388],{"class":300},[10,1268,1269,1272,1273,1276,1277,1280,1281,1284,1285,1287,1288,1291,1292,959,1294,315,1296,959,1299,844,1301,959,1304,1306,1307,1310,1311,880,1313,1316,1317,1319,1320,1323,1324,1326,1327,1330,1331,1334],{},[14,1270,1271],{},"LLM_PROVIDERS_PRIMARY_TIMEOUT=60s"," sets ",[14,1274,1275],{},"llm.providers.primary.timeout",", and ",[14,1278,1279],{},"LLM_PROVIDERS_PRIMARY_EU_TIMEOUT"," the key\n",[14,1282,1283],{},"primary-eu"," — the rest of the name is matched against ",[14,1286,1259],{},"'s fields. ",[14,1289,1290],{},"MapKeyStyle.DOTTED"," reads one ",[14,1293,883],{},[14,1295,530],{},[14,1297,1298],{},"KEBAB",[14,1300,879],{},[14,1302,1303],{},"SNAKE",[14,1305,883],{},"; in every style ",[14,1308,1309],{},"__"," is a literal ",[14,1312,883],{},[14,1314,1315],{},"___"," a literal ",[14,1318,879],{},". A map without\n",[14,1321,1322],{},"@ConfigMapKeys"," takes entries from YAML, placeholders and ",[14,1325,24],{}," properties only, so a section named ",[14,1328,1329],{},"kafka"," never turns\n",[14,1332,1333],{},"KAFKA_HOME"," into an entry.",[1061,1336,1338],{"id":1337},"which-section-owns-a-variable","Which section owns a variable",[10,1340,1341,1342,1345,1346,1349,1350,1353,1354,1356],{},"StoatFlow decides once, at start, which section a variable belongs to: the longest section name that prefixes it, among\nStoatFlow's sections and the top-level sections of your YAML — ",[14,1343,1344],{},"LLM_CACHE_TTL"," belongs to ",[14,1347,1348],{},"llm-cache",", not ",[14,1351,1352],{},"llm",". A\nsection that only variables or ",[14,1355,24],{}," properties supply has no YAML to be found in: declare it, and it owns its\nvariables from the start:",[123,1358,1360],{"className":251,"code":1359,"language":254,"meta":128,"style":128},"val configuration = Configuration.builder().section(\"llm-cache\").load()\n",[14,1361,1362],{"__ignoreMap":128},[132,1363,1364,1366,1368,1370,1372,1374,1377,1380,1382,1385,1388,1390],{"class":134,"line":135},[132,1365,1176],{"class":261},[132,1367,413],{"class":300},[132,1369,416],{"class":142},[132,1371,419],{"class":300},[132,1373,777],{"class":265},[132,1375,1376],{"class":300},"().",[132,1378,1379],{"class":265},"section",[132,1381,376],{"class":300},[132,1383,1384],{"class":154},"\"llm-cache\"",[132,1386,1387],{"class":300},").",[132,1389,422],{"class":265},[132,1391,506],{"class":300},[10,1393,1394,1395,844,1398,844,1401,1404,1405,844,1408,844,1411,844,1414,844,1416,1419],{},"A section named so that StoatFlow's own sections cover its variables (",[14,1396,1397],{},"runtime-extras",[14,1399,1400],{},"stoatflow-orders",[14,1402,1403],{},"logging","),\nor after a JVM system-property namespace (",[14,1406,1407],{},"user",[14,1409,1410],{},"file",[14,1412,1413],{},"http",[14,1415,518],{},[14,1417,1418],{},"os","), is refused when you bind it.",[112,1421,1423],{"id":1422},"secrets","Secrets",[10,1425,1426,1428,1429,1432,1433,1436,1437,1439],{},[14,1427,95],{}," reads the file ",[14,1430,1431],{},"name"," from the secrets directory — ",[14,1434,1435],{},"STOATFLOW_SECRETS_DIR",", default ",[14,1438,99],{},",\nwhere Docker puts its secrets and where a Kubernetes Secret volume lands with one file per key:",[123,1441,1443],{"className":125,"code":1442,"language":127,"meta":128,"style":128},"# Pod spec\nautomountServiceAccountToken: false     # see below: its mount would land inside \u002Frun\u002Fsecrets\nvolumes:\n  - name: secrets\n    secret:\n      secretName: payments-secrets      # keys: payments-db-password, licence\ncontainers:\n  - name: app\n    volumeMounts:\n      - { name: secrets, mountPath: \u002Frun\u002Fsecrets, readOnly: true }\n",[14,1444,1445,1450,1463,1470,1483,1490,1503,1510,1521,1528],{"__ignoreMap":128},[132,1446,1447],{"class":134,"line":135},[132,1448,1449],{"class":217},"# Pod spec\n",[132,1451,1452,1455,1457,1460],{"class":134,"line":146},[132,1453,1454],{"class":138},"automountServiceAccountToken",[132,1456,121],{"class":142},[132,1458,1459],{"class":261}," false",[132,1461,1462],{"class":217},"     # see below: its mount would land inside \u002Frun\u002Fsecrets\n",[132,1464,1465,1468],{"class":134,"line":158},[132,1466,1467],{"class":138},"volumes",[132,1469,143],{"class":142},[132,1471,1472,1475,1478,1480],{"class":134,"line":169},[132,1473,1474],{"class":142},"  -",[132,1476,1477],{"class":138}," name",[132,1479,121],{"class":142},[132,1481,1482],{"class":154}," secrets\n",[132,1484,1485,1488],{"class":134,"line":176},[132,1486,1487],{"class":138},"    secret",[132,1489,143],{"class":142},[132,1491,1492,1495,1497,1500],{"class":134,"line":184},[132,1493,1494],{"class":138},"      secretName",[132,1496,121],{"class":142},[132,1498,1499],{"class":154}," payments-secrets",[132,1501,1502],{"class":217},"      # keys: payments-db-password, licence\n",[132,1504,1505,1508],{"class":134,"line":195},[132,1506,1507],{"class":138},"containers",[132,1509,143],{"class":142},[132,1511,1512,1514,1516,1518],{"class":134,"line":206},[132,1513,1474],{"class":142},[132,1515,1477],{"class":138},[132,1517,121],{"class":142},[132,1519,1520],{"class":154}," app\n",[132,1522,1523,1526],{"class":134,"line":221},[132,1524,1525],{"class":138},"    volumeMounts",[132,1527,143],{"class":142},[132,1529,1530,1533,1536,1538,1540,1543,1545,1548,1550,1553,1555,1558,1560,1563],{"class":134,"line":233},[132,1531,1532],{"class":142},"      -",[132,1534,1535],{"class":142}," {",[132,1537,1477],{"class":138},[132,1539,121],{"class":142},[132,1541,1542],{"class":154}," secrets",[132,1544,626],{"class":142},[132,1546,1547],{"class":138}," mountPath",[132,1549,121],{"class":142},[132,1551,1552],{"class":154}," \u002Frun\u002Fsecrets",[132,1554,626],{"class":142},[132,1556,1557],{"class":138}," readOnly",[132,1559,121],{"class":142},[132,1561,1562],{"class":261}," true",[132,1564,1565],{"class":142}," }\n",[10,1567,1568,1569,1572,1573,1576,1577,1580,1581,1583,1584,1387],{},"On Debian- and Ubuntu-based images ",[14,1570,1571],{},"\u002Fvar\u002Frun"," is a link to ",[14,1574,1575],{},"\u002Frun",", so Kubernetes' service-account token, mounted at\n",[14,1578,1579],{},"\u002Fvar\u002Frun\u002Fsecrets\u002Fkubernetes.io\u002Fserviceaccount",", would land inside the read-only Secret volume and the container would\nnot start. StoatFlow does not call the Kubernetes API: switch the token off, as above, or mount the Secret elsewhere and\npoint ",[14,1582,1435],{}," at it (",[1585,1586,1588],"a",{"href":1587},"\u002Fdocs\u002Foperating\u002Fkubernetes","Kubernetes",[30,1590,1591,1607,1610],{},[33,1592,1593,1594,1597,1598,844,1600,880,1603,1606],{},"The file is read as UTF-8 with one trailing newline removed (what ",[14,1595,1596],{},"kubectl create secret --from-file"," and most\neditors leave), and nothing else trimmed. A name is a file name only: ",[14,1599,853],{},[14,1601,1602],{},"\\",[14,1604,1605],{},".."," are refused.",[33,1608,1609],{},"A missing file is an error at start naming its path, never its value — only when a bound value uses it. Secrets are\nread once; a rotated secret takes effect at the next restart.",[33,1611,1612,1613,887,1615,1618,1619,1622,1623,1626,1627,1629,1630,1632,1633,1635],{},"Declare the field ",[14,1614,103],{},[14,1616,1617],{},"reveal()",", Java ",[14,1620,1621],{},"getValue()","): its value never appears in the class's ",[14,1624,1625],{},"toString()",", in\n",[14,1628,86],{},", in logs or in error messages. A secret bound into a plain ",[14,1631,312],{}," field logs a warning, because a\n",[14,1634,1625],{}," of the class would print it.",[10,1637,1638],{},"Your own secret store plugs in the same way: register a resolver for a prefix, and its values are treated as secrets.",[123,1640,1642],{"className":251,"code":1641,"language":254,"meta":128,"style":128},"val configuration = Configuration.builder()\n    .addPlaceholderResolver(\"vault\") { key -> vault.read(key) }   \u002F\u002F ${vault:kv\u002Fllm#primary}\n    .load()\n",[14,1643,1644,1658,1688],{"__ignoreMap":128},[132,1645,1646,1648,1650,1652,1654,1656],{"class":134,"line":135},[132,1647,1176],{"class":261},[132,1649,413],{"class":300},[132,1651,416],{"class":142},[132,1653,419],{"class":300},[132,1655,777],{"class":265},[132,1657,506],{"class":300},[132,1659,1660,1663,1666,1668,1671,1674,1676,1679,1682,1685],{"class":134,"line":146},[132,1661,1662],{"class":300},"    .",[132,1664,1665],{"class":265},"addPlaceholderResolver",[132,1667,376],{"class":300},[132,1669,1670],{"class":154},"\"vault\"",[132,1672,1673],{"class":300},") { key ",[132,1675,489],{"class":142},[132,1677,1678],{"class":300}," vault.",[132,1680,1681],{"class":265},"read",[132,1683,1684],{"class":300},"(key) }   ",[132,1686,1687],{"class":217},"\u002F\u002F ${vault:kv\u002Fllm#primary}\n",[132,1689,1690,1692,1694],{"class":134,"line":158},[132,1691,1662],{"class":300},[132,1693,422],{"class":265},[132,1695,506],{"class":300},[112,1697,1699],{"id":1698},"when-something-is-wrong","When something is wrong",[10,1701,1702],{},"A bind reports every problem of the section at once, each with its key and where the value came from:",[123,1704,1709],{"className":1705,"code":1707,"language":1708},[1706],"language-text","Invalid configuration (2 problems):\n  - payments-db.max-pool-size: 'ten' is not an Int (env PAYMENTS_DB_MAX_POOL_SIZE)\n  - payments-db.url: missing (application.yaml:6)\n","text",[14,1710,1707],{"__ignoreMap":128},[10,1712,1713,1714,1717,1718,1721,1722,1030,1725,1728,1729,1732,1733,1736],{},"A key nothing reads logs a warning with the closest field (",[14,1715,1716],{},"payments-db.max-pool-sise … did you mean payments-db.max-pool-size?","), and so does a variable under your section's prefix that names nothing.\n",[14,1719,1720],{},"configuration.bind(\"payments-db\", PaymentsDb::class.java, BindOptions(strict = true))"," makes an unread key an error;\n",[14,1723,1724],{},"BindOptions(environment = false)",[14,1726,1727],{},"(systemProperties = false)"," turns a section's variables or properties off;\n",[14,1730,1731],{},"BindOptions(defaults = mapOf(\"payments-db\" to mapOf(\"url\" to \"jdbc:…\")))"," gives the bind values to use where no source\nsets a key — its lowest source, which ",[14,1734,1735],{},"has()"," never sees.",[112,1738,1740,1741,1743],{"id":1739},"plugins-config-and-the-read-api","Plugins, ",[14,1742,86],{}," and the read API",[30,1745,1746,1759,1826],{},[33,1747,1748,1749,887,1752,1756,1757,530],{},"A plugin binds its own section from the runtime's configuration:\n",[14,1750,1751],{},"context.configuration().bind\u003CPaymentsDb>(\"payments-db\")",[1585,1753,1755],{"href":1754},"\u002Fdocs\u002Fruntime\u002Fplugins","Plugins","). A resolver or converter\nthe plugin needs is registered by the application on the builder it passes to ",[14,1758,478],{},[33,1760,1761,1763,1764,1766,1767,844,1770,844,1773,844,1776,844,1779,315,1782,844,1785,844,1788,1030,1791,1794,1795,880,1798,1801,1802,1805,1806,1809,1810,1814,1815,1818,1819,1822,1823,1825],{},[14,1762,86],{}," shows every section bound through the runtime's configuration beside StoatFlow's, with ",[14,1765,103],{}," fields,\nresolver-produced secrets and every key whose name contains ",[14,1768,1769],{},"password",[14,1771,1772],{},"pwd",[14,1774,1775],{},"secret",[14,1777,1778],{},"credential",[14,1780,1781],{},"token",[14,1783,1784],{},"auth",[14,1786,1787],{},"api-key",[14,1789,1790],{},"private-key",[14,1792,1793],{},"access-key"," (in any spelling — ",[14,1796,1797],{},"privateKeyPem",[14,1799,1800],{},"private-key-pem"," alike,\n",[14,1803,1804],{},"oauth-issuer"," too) masked, and a URL's ",[14,1807,1808],{},"user:password@"," stripped (",[1585,1811,1813],{"href":1812},"\u002Fdocs\u002Fruntime\u002Frest-api","REST API","). Under\nsuch a name the whole value is masked, a list or a map included, and so is a section named that way (",[14,1816,1817],{},"credentials:","):\nname a section ",[14,1820,1821],{},"identity-provider"," rather than ",[14,1824,1784],{}," if its settings should stay visible.",[33,1827,1828,1831,1832,1835,1836,1838,1839,1841,1842,83,1844,1847,1848,880,1850,1852],{},[14,1829,1830],{},"configuration.has(\"payments-db.url\")"," asks the merged files; ",[14,1833,1834],{},"boundSections()"," returns each bound section's tree with\n",[14,1837,103],{}," fields and resolver-produced secrets masked — not by key name, and URLs keep their credentials, which only\n",[14,1840,86],{}," masks and strips, so do not log it as you would ",[14,1843,86],{},[14,1845,1846],{},"topLevelSections()"," lists the YAML's sections.\n",[14,1849,1735],{},[14,1851,1846],{}," see neither variables nor system properties.",[112,1854,1856],{"id":1855},"extending-it","Extending it",[1066,1858,1859,1869],{},[1069,1860,1861],{},[1072,1862,1863,1866],{},[1075,1864,1865],{},"Need",[1075,1867,1868],{},"Use",[1085,1870,1871,1881,1899,1909,1922],{},[1072,1872,1873,1876],{},[1090,1874,1875],{},"A value type the binder does not know",[1090,1877,1878],{},[14,1879,1880],{},"addConverter(HostAndPort::class) { text -> HostAndPort.parse(text) }",[1072,1882,1883,1886],{},[1090,1884,1885],{},"Values from Vault, SSM or a table",[1090,1887,1888,1891,1892,1895,1896,1898],{},[14,1889,1890],{},"addSource(source, SourcePrecedence.ABOVE_FILES)"," with a ",[14,1893,1894],{},"ConfigSource"," (variables and ",[14,1897,24],{}," still win)",[1072,1900,1901,1904],{},[1090,1902,1903],{},"A secret store",[1090,1905,1906],{},[14,1907,1908],{},"addPlaceholderResolver(\"vault\") { key -> … }",[1072,1910,1911,1914],{},[1090,1912,1913],{},"Another YAML file",[1090,1915,1916,1030,1919],{},[14,1917,1918],{},"addFile(path)",[14,1920,1921],{},"addResource(\"\u002Fapplication-local.yaml\")",[1072,1923,1924,1927],{},[1090,1925,1926],{},"A tool whose file is its whole configuration",[1090,1928,1929],{},[14,1930,1931],{},"Configuration.builder().withoutStandardSources().addFile(path)",[10,1933,1934],{},"There is no classpath scanning and no dependency injection: binding a section and registering an extension are calls\nyou make.",[112,1936,1938],{"id":1937},"tests","Tests",[10,1940,1941],{},"Inject the environment and system properties instead of forking a JVM:",[123,1943,1945],{"className":251,"code":1944,"language":254,"meta":128,"style":128},"val configuration = Configuration.builder()                        \u002F\u002F the test classpath's application.yaml\n    .withEnvironment(mapOf(\"PAYMENTS_DB_MAX_POOL_SIZE\" to \"20\"))\n    .withSystemProperties(emptyMap())\n    .load()\nconfiguration.bind\u003CPaymentsDb>(\"payments-db\").maxPoolSize shouldBe 20\n",[14,1946,1947,1965,1990,2005,2013],{"__ignoreMap":128},[132,1948,1949,1951,1953,1955,1957,1959,1962],{"class":134,"line":135},[132,1950,1176],{"class":261},[132,1952,413],{"class":300},[132,1954,416],{"class":142},[132,1956,419],{"class":300},[132,1958,777],{"class":265},[132,1960,1961],{"class":300},"()                        ",[132,1963,1964],{"class":217},"\u002F\u002F the test classpath's application.yaml\n",[132,1966,1967,1969,1972,1974,1977,1979,1982,1985,1988],{"class":134,"line":146},[132,1968,1662],{"class":300},[132,1970,1971],{"class":265},"withEnvironment",[132,1973,376],{"class":300},[132,1975,1976],{"class":265},"mapOf",[132,1978,376],{"class":300},[132,1980,1981],{"class":154},"\"PAYMENTS_DB_MAX_POOL_SIZE\"",[132,1983,1984],{"class":300}," to ",[132,1986,1987],{"class":154},"\"20\"",[132,1989,1213],{"class":300},[132,1991,1992,1994,1997,1999,2002],{"class":134,"line":158},[132,1993,1662],{"class":300},[132,1995,1996],{"class":265},"withSystemProperties",[132,1998,376],{"class":300},[132,2000,2001],{"class":265},"emptyMap",[132,2003,2004],{"class":300},"())\n",[132,2006,2007,2009,2011],{"class":134,"line":169},[132,2008,1662],{"class":300},[132,2010,422],{"class":265},[132,2012,506],{"class":300},[132,2014,2015,2018,2020,2022,2024,2026,2028,2031],{"class":134,"line":176},[132,2016,2017],{"class":300},"configuration.",[132,2019,444],{"class":265},[132,2021,447],{"class":300},[132,2023,450],{"class":296},[132,2025,453],{"class":300},[132,2027,456],{"class":154},[132,2029,2030],{"class":300},").maxPoolSize shouldBe ",[132,2032,2033],{"class":229},"20\n",[10,2035,2036,2039,2040,2044,2045,2048,2049,2052],{},[14,2037,2038],{},"StoatFlowTestDriver.fromConfig(configuration, topologyBuilder = { builder, config -> … })"," runs a topology test on the same configuration\n(",[1585,2041,2043],{"href":2042},"\u002Fdocs\u002Fbuilding\u002Ftesting","Testing","); ",[14,2046,2047],{},"stoatflow.application-id"," defaults to ",[14,2050,2051],{},"stoatflow-test"," there when the configuration\nsets none.",[112,2054,2056],{"id":2055},"native-image","Native image",[10,2058,2059,2060,2063,2064,2067],{},"StoatFlow's own configuration classes are registered for a native image. Your own classes — data classes and records —\nneed a reflection entry in ",[14,2061,2062],{},"src\u002Fmain\u002Fresources\u002FMETA-INF\u002Fnative-image\u002F\u003Cgroup>\u002F\u003Cartifact>\u002Freachability-metadata.json","\n(",[1585,2065,2056],{"href":2066},"\u002Fdocs\u002Fruntime\u002Fnative-image","):",[123,2069,2073],{"className":2070,"code":2071,"language":2072,"meta":128,"style":128},"language-json shiki shiki-themes vitesse-light","{\n  \"reflection\": [\n    {\n      \"type\": \"com.example.PaymentsDb\",\n      \"allDeclaredConstructors\": true,\n      \"allDeclaredMethods\": true,\n      \"allDeclaredFields\": true,\n      \"allPublicConstructors\": true,\n      \"allPublicMethods\": true,\n      \"allPublicFields\": true\n    }\n  ]\n}\n","json",[14,2074,2075,2080,2096,2101,2123,2138,2153,2168,2183,2198,2212,2217,2222],{"__ignoreMap":128},[132,2076,2077],{"class":134,"line":135},[132,2078,2079],{"class":142},"{\n",[132,2081,2082,2086,2089,2091,2093],{"class":134,"line":146},[132,2083,2085],{"class":2084},"s61at","  \"",[132,2087,2088],{"class":138},"reflection",[132,2090,649],{"class":2084},[132,2092,121],{"class":142},[132,2094,2095],{"class":142}," [\n",[132,2097,2098],{"class":134,"line":158},[132,2099,2100],{"class":142},"    {\n",[132,2102,2103,2106,2109,2111,2113,2116,2119,2121],{"class":134,"line":169},[132,2104,2105],{"class":2084},"      \"",[132,2107,2108],{"class":138},"type",[132,2110,649],{"class":2084},[132,2112,121],{"class":142},[132,2114,2115],{"class":648}," \"",[132,2117,2118],{"class":154},"com.example.PaymentsDb",[132,2120,649],{"class":648},[132,2122,315],{"class":142},[132,2124,2125,2127,2130,2132,2134,2136],{"class":134,"line":176},[132,2126,2105],{"class":2084},[132,2128,2129],{"class":138},"allDeclaredConstructors",[132,2131,649],{"class":2084},[132,2133,121],{"class":142},[132,2135,1562],{"class":261},[132,2137,315],{"class":142},[132,2139,2140,2142,2145,2147,2149,2151],{"class":134,"line":184},[132,2141,2105],{"class":2084},[132,2143,2144],{"class":138},"allDeclaredMethods",[132,2146,649],{"class":2084},[132,2148,121],{"class":142},[132,2150,1562],{"class":261},[132,2152,315],{"class":142},[132,2154,2155,2157,2160,2162,2164,2166],{"class":134,"line":195},[132,2156,2105],{"class":2084},[132,2158,2159],{"class":138},"allDeclaredFields",[132,2161,649],{"class":2084},[132,2163,121],{"class":142},[132,2165,1562],{"class":261},[132,2167,315],{"class":142},[132,2169,2170,2172,2175,2177,2179,2181],{"class":134,"line":206},[132,2171,2105],{"class":2084},[132,2173,2174],{"class":138},"allPublicConstructors",[132,2176,649],{"class":2084},[132,2178,121],{"class":142},[132,2180,1562],{"class":261},[132,2182,315],{"class":142},[132,2184,2185,2187,2190,2192,2194,2196],{"class":134,"line":221},[132,2186,2105],{"class":2084},[132,2188,2189],{"class":138},"allPublicMethods",[132,2191,649],{"class":2084},[132,2193,121],{"class":142},[132,2195,1562],{"class":261},[132,2197,315],{"class":142},[132,2199,2200,2202,2205,2207,2209],{"class":134,"line":233},[132,2201,2105],{"class":2084},[132,2203,2204],{"class":138},"allPublicFields",[132,2206,649],{"class":2084},[132,2208,121],{"class":142},[132,2210,2211],{"class":261}," true\n",[132,2213,2214],{"class":134,"line":385},[132,2215,2216],{"class":142},"    }\n",[132,2218,2219],{"class":134,"line":391},[132,2220,2221],{"class":142},"  ]\n",[132,2223,2224],{"class":134,"line":396},[132,2225,512],{"class":142},[10,2227,2228],{},"Without it the bind fails at start, naming the class.",[112,2230,2232],{"id":2231},"limits","Limits",[30,2234,2235,2238,2241,2244],{},[33,2236,2237],{},"Kotlin data classes and Java records only — no JavaBeans, no sealed hierarchies.",[33,2239,2240],{},"Values are read once, at start; there is no reloading.",[33,2242,2243],{},"Resolution is per bound class: two classes can read one path differently.",[33,2245,2246,2247,2250],{},"A processor gets its configuration from the topology code that constructs it; there is no ",[14,2248,2249],{},"appConfigs()"," lookup.",[2252,2253,2254],"style",{},"html pre.shiki code .su6XF, html code.shiki .su6XF{--shiki-default:#998418}html pre.shiki code .sYZai, html code.shiki .sYZai{--shiki-default:#999999}html pre.shiki code .spphp, html code.shiki .spphp{--shiki-default:#B56959}html pre.shiki code .s8zF2, html code.shiki .s8zF2{--shiki-default:#A0ADA0}html pre.shiki code .s-TwI, html code.shiki .s-TwI{--shiki-default:#2F798A}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .sbBg2, html code.shiki .sbBg2{--shiki-default:#1E754F}html pre.shiki code .sySUi, html code.shiki .sySUi{--shiki-default:#59873A}html pre.shiki code .si04Y, html code.shiki .si04Y{--shiki-default:#AB5959}html pre.shiki code .sUxyF, html code.shiki .sUxyF{--shiki-default:#2E8F82}html pre.shiki code .suHK_, html code.shiki .suHK_{--shiki-default:#393A34}html pre.shiki code .sSP4y, html code.shiki .sSP4y{--shiki-default:#B5695977}html pre.shiki code .svycV, html code.shiki .svycV{--shiki-default:#B07D48}html pre.shiki code .s61at, html code.shiki .s61at{--shiki-default:#99841877}",{"title":128,"searchDepth":146,"depth":146,"links":2256},[2257,2258,2262,2263,2264,2266,2267,2268,2269],{"id":114,"depth":146,"text":115},{"id":941,"depth":146,"text":942,"children":2259},[2260,2261],{"id":1063,"depth":158,"text":1064},{"id":1337,"depth":158,"text":1338},{"id":1422,"depth":146,"text":1423},{"id":1698,"depth":146,"text":1699},{"id":1739,"depth":146,"text":2265},"Plugins, \u002Fconfig and the read API",{"id":1855,"depth":146,"text":1856},{"id":1937,"depth":146,"text":1938},{"id":2055,"depth":146,"text":2056},{"id":2231,"depth":146,"text":2232},"Bind your application's own YAML sections to Kotlin data classes or Java records — from the same application.yaml, overlays, system properties and environment variables StoatFlow reads — with secrets from files, every problem reported at once, and no extra framework.","md",{},{"icon":2274},"i-lucide-sliders-horizontal",null,"how-to","\u002Fdocs\u002Fruntime\u002Fcustom-configuration",{"title":5,"description":2270},{"loc":2277},"1.docs\u002F5.runtime\u002F9.custom-configuration","wxTBWtZ_Zylp6s5FWCzkbApN88zDCMfiLqU-Ss4KQPs",[2283,2288],{"title":2284,"path":2066,"stem":2285,"description":2286,"icon":2287,"children":-1},"GraalVM native image","1.docs\u002F5.runtime\u002F8.native-image","Compile your StoatFlow app to a GraalVM native binary — a one-line opt-in. The framework ships its own reflection\u002FJNI\u002FFFM metadata; you choose the GC, optionally PGO, and add metadata only for your own serde value classes and config classes.","i-lucide-zap",{"title":2289,"path":2290,"stem":2291,"description":2292,"icon":2293,"children":-1},"Deploying and operating","\u002Fdocs\u002Foperating","1.docs\u002F6.operating\u002F1.index","The deployment model for operators — one active instance and why two corrupt state, the two HA tiers (fast restart and opt-in hot standby), and a map of the operating pages.","i-lucide-life-buoy",{"id":2295,"cta":2296,"enabled":172,"event":2297,"extension":2298,"invite":2299,"key":2300,"lead":2301,"meta":2302,"slot":2303,"stem":2304,"talk":2305,"to":2306,"__hash__":2307},"banner\u002F8.banner.yml","Get the StoatFlow 1.0 launch email →","Current San Francisco?","yml","Catch my talk","current-sf-2026","At",{},"Wed 4 Nov · 4:15 PM · Room 2012","8.banner","Kafka Streams Needs Real Timers","\u002Flaunch-list?src=banner","8xQWDSTSRv0J-LCPpHS5tuTxGF0xsQ8wMt5x2ajR2W0",[2309,2348,2395,2457,2483,2521,2563,2594],{"title":2310,"path":2311,"stem":2312,"children":2313,"icon":2347},"Getting Started","\u002Fdocs\u002Fgetting-started","1.docs\u002F1.getting-started\u002F1.index",[2314,2317,2322,2327,2332,2337,2342],{"title":2315,"path":2311,"stem":2312,"icon":2316},"Getting started","i-lucide-flag",{"title":2318,"path":2319,"stem":2320,"icon":2321},"Modules overview","\u002Fdocs\u002Fgetting-started\u002Fmodules-overview","1.docs\u002F1.getting-started\u002F2.modules-overview","i-lucide-boxes",{"title":2323,"path":2324,"stem":2325,"icon":2326},"Installation","\u002Fdocs\u002Fgetting-started\u002Finstallation","1.docs\u002F1.getting-started\u002F3.installation","i-lucide-download",{"title":2328,"path":2329,"stem":2330,"icon":2331},"Licence configuration","\u002Fdocs\u002Fgetting-started\u002Flicence-configuration","1.docs\u002F1.getting-started\u002F4.licence-configuration","i-lucide-key-round",{"title":2333,"path":2334,"stem":2335,"icon":2336},"Your first app","\u002Fdocs\u002Fgetting-started\u002Ffirst-app","1.docs\u002F1.getting-started\u002F5.first-app","i-lucide-square-play",{"title":2338,"path":2339,"stem":2340,"icon":2341},"Project setup","\u002Fdocs\u002Fgetting-started\u002Fproject-setup","1.docs\u002F1.getting-started\u002F6.project-setup","i-lucide-package",{"title":2343,"path":2344,"stem":2345,"icon":2346},"AI assistants","\u002Fdocs\u002Fgetting-started\u002Fai-assistants","1.docs\u002F1.getting-started\u002F7.ai-assistants","i-lucide-bot",false,{"title":2349,"path":2350,"stem":2351,"children":2352,"icon":2355},"Core Concepts","\u002Fdocs\u002Fconcepts","1.docs\u002F2.concepts\u002F1.index",[2353,2356,2361,2366,2371,2376,2381,2385,2390],{"title":2354,"path":2350,"stem":2351,"icon":2355},"Core concepts","i-lucide-book-open",{"title":2357,"path":2358,"stem":2359,"icon":2360},"Architecture","\u002Fdocs\u002Fconcepts\u002Farchitecture","1.docs\u002F2.concepts\u002F2.architecture","i-lucide-layers",{"title":2362,"path":2363,"stem":2364,"icon":2365},"Exactly-once semantics","\u002Fdocs\u002Fconcepts\u002Fexactly-once","1.docs\u002F2.concepts\u002F3.exactly-once","i-lucide-shield-check",{"title":2367,"path":2368,"stem":2369,"icon":2370},"Lanes and parallelism","\u002Fdocs\u002Fconcepts\u002Flanes-and-parallelism","1.docs\u002F2.concepts\u002F4.lanes-and-parallelism","i-lucide-split",{"title":2372,"path":2373,"stem":2374,"icon":2375},"State and thread-safety","\u002Fdocs\u002Fconcepts\u002Fstate-and-thread-safety","1.docs\u002F2.concepts\u002F5.state-and-thread-safety","i-lucide-lock",{"title":2377,"path":2378,"stem":2379,"icon":2380},"Event time and watermarks","\u002Fdocs\u002Fconcepts\u002Fevent-time-and-watermarks","1.docs\u002F2.concepts\u002F6.event-time-and-watermarks","i-lucide-clock",{"title":2382,"path":2383,"stem":2384,"icon":2274},"The configuration model","\u002Fdocs\u002Fconcepts\u002Fconfiguration-model","1.docs\u002F2.concepts\u002F7.configuration-model",{"title":2386,"path":2387,"stem":2388,"icon":2389},"The error-handling model","\u002Fdocs\u002Fconcepts\u002Ferror-handling-model","1.docs\u002F2.concepts\u002F8.error-handling-model","i-lucide-triangle-alert",{"title":2391,"path":2392,"stem":2393,"icon":2394},"How StoatFlow differs from Kafka Streams","\u002Fdocs\u002Fconcepts\u002Fhow-stoatflow-differs-from-ks","1.docs\u002F2.concepts\u002F9.how-stoatflow-differs-from-ks","i-lucide-arrow-left-right",{"title":2396,"path":2397,"stem":2398,"children":2399,"icon":2402},"Building Topologies","\u002Fdocs\u002Fbuilding","1.docs\u002F3.building\u002F1.index",[2400,2403,2408,2413,2417,2422,2427,2432,2437,2442,2447,2452],{"title":2401,"path":2397,"stem":2398,"icon":2402},"Building topologies","i-lucide-blocks",{"title":2404,"path":2405,"stem":2406,"icon":2407},"Error handling and DLQ","\u002Fdocs\u002Fbuilding\u002Ferror-handling-dlq","1.docs\u002F3.building\u002F10.error-handling-dlq","i-lucide-circle-x",{"title":2409,"path":2410,"stem":2411,"icon":2412},"State stores","\u002Fdocs\u002Fbuilding\u002Fstate-stores","1.docs\u002F3.building\u002F11.state-stores","i-lucide-database",{"title":2414,"path":2042,"stem":2415,"icon":2416},"Testing topologies","1.docs\u002F3.building\u002F12.testing","i-lucide-flask-conical",{"title":2418,"path":2419,"stem":2420,"icon":2421},"Sources and sinks","\u002Fdocs\u002Fbuilding\u002Fstreams-builder","1.docs\u002F3.building\u002F2.streams-builder","i-lucide-import",{"title":2423,"path":2424,"stem":2425,"icon":2426},"KStream and KTable operations","\u002Fdocs\u002Fbuilding\u002Fkstream-ktable","1.docs\u002F3.building\u002F3.kstream-ktable","i-lucide-waypoints",{"title":2428,"path":2429,"stem":2430,"icon":2431},"Aggregations","\u002Fdocs\u002Fbuilding\u002Faggregations","1.docs\u002F3.building\u002F4.aggregations","i-lucide-sigma",{"title":2433,"path":2434,"stem":2435,"icon":2436},"Windowing","\u002Fdocs\u002Fbuilding\u002Fwindowing","1.docs\u002F3.building\u002F5.windowing","i-lucide-calendar-clock",{"title":2438,"path":2439,"stem":2440,"icon":2441},"Joins","\u002Fdocs\u002Fbuilding\u002Fjoins","1.docs\u002F3.building\u002F6.joins","i-lucide-git-merge",{"title":2443,"path":2444,"stem":2445,"icon":2446},"The Processor API","\u002Fdocs\u002Fbuilding\u002Fprocessor-api","1.docs\u002F3.building\u002F7.processor-api","i-lucide-cpu",{"title":2448,"path":2449,"stem":2450,"icon":2451},"Scheduled sources","\u002Fdocs\u002Fbuilding\u002Fscheduled-sources","1.docs\u002F3.building\u002F8.scheduled-sources","i-lucide-timer",{"title":2453,"path":2454,"stem":2455,"icon":2456},"Serdes and Avro","\u002Fdocs\u002Fbuilding\u002Fserdes","1.docs\u002F3.building\u002F9.serdes","i-lucide-binary",{"title":564,"path":2458,"stem":2459,"children":2460,"icon":2274},"\u002Fdocs\u002Fconfiguration","1.docs\u002F4.configuration\u002F1.index",[2461,2463,2468,2473,2478],{"title":2462,"path":2458,"stem":2459,"icon":2274},"How configuration works",{"title":2464,"path":2465,"stem":2466,"icon":2467},"Engine configuration (:core)","\u002Fdocs\u002Fconfiguration\u002Fcore-config","1.docs\u002F4.configuration\u002F2.core-config","i-lucide-settings-2",{"title":2469,"path":2470,"stem":2471,"icon":2472},"Runtime configuration (:runtime)","\u002Fdocs\u002Fconfiguration\u002Fruntime-config","1.docs\u002F4.configuration\u002F3.runtime-config","i-lucide-server-cog",{"title":2474,"path":2475,"stem":2476,"icon":2477},"Defaults, adaptivity, and the memory plan","\u002Fdocs\u002Fconfiguration\u002Fdefaults-and-presets","1.docs\u002F4.configuration\u002F4.defaults-and-presets","i-lucide-gauge",{"title":2479,"path":2480,"stem":2481,"icon":2482},"Kafka client configuration","\u002Fdocs\u002Fconfiguration\u002Fkafka-client-config","1.docs\u002F4.configuration\u002F5.kafka-client-config","i-lucide-plug",{"title":2484,"path":2485,"stem":2486,"children":2487,"icon":2490},"Running in Production","\u002Fdocs\u002Fruntime","1.docs\u002F5.runtime\u002F1.index",[2488,2491,2495,2500,2505,2510,2514,2519,2520],{"title":2489,"path":2485,"stem":2486,"icon":2490},"The runtime","i-lucide-server",{"title":2492,"path":1812,"stem":2493,"icon":2494},"The REST API","1.docs\u002F5.runtime\u002F2.rest-api","i-lucide-globe",{"title":2496,"path":2497,"stem":2498,"icon":2499},"Health checks","\u002Fdocs\u002Fruntime\u002Fhealth-checks","1.docs\u002F5.runtime\u002F3.health-checks","i-lucide-heart-pulse",{"title":2501,"path":2502,"stem":2503,"icon":2504},"Metrics","\u002Fdocs\u002Fruntime\u002Fmetrics","1.docs\u002F5.runtime\u002F4.metrics","i-lucide-activity",{"title":2506,"path":2507,"stem":2508,"icon":2509},"Pause and resume","\u002Fdocs\u002Fruntime\u002Fpause-unpause","1.docs\u002F5.runtime\u002F5.pause-unpause","i-lucide-pause",{"title":2511,"path":1754,"stem":2512,"icon":2513},"Plugins and lifecycle hooks","1.docs\u002F5.runtime\u002F6.plugins","i-lucide-puzzle",{"title":2515,"path":2516,"stem":2517,"icon":2518},"Docker images","\u002Fdocs\u002Fruntime\u002Fdocker","1.docs\u002F5.runtime\u002F7.docker","i-lucide-container",{"title":2284,"path":2066,"stem":2285,"icon":2287},{"title":5,"path":2277,"stem":2280,"icon":2274},{"title":2522,"path":2290,"stem":2291,"children":2523,"icon":2293},"Deploying & Operating",[2524,2525,2529,2534,2539,2544,2549,2554,2559],{"title":2289,"path":2290,"stem":2291,"icon":2293},{"title":2526,"path":1587,"stem":2527,"icon":2528},"Running on Kubernetes","1.docs\u002F6.operating\u002F2.kubernetes","i-lucide-ship",{"title":2530,"path":2531,"stem":2532,"icon":2533},"High availability","\u002Fdocs\u002Foperating\u002Fhigh-availability","1.docs\u002F6.operating\u002F3.high-availability","i-lucide-copy",{"title":2535,"path":2536,"stem":2537,"icon":2538},"Liveness and readiness probes","\u002Fdocs\u002Foperating\u002Fprobes","1.docs\u002F6.operating\u002F4.probes","i-lucide-stethoscope",{"title":2540,"path":2541,"stem":2542,"icon":2543},"Observability","\u002Fdocs\u002Foperating\u002Fobservability","1.docs\u002F6.operating\u002F5.observability","i-lucide-telescope",{"title":2545,"path":2546,"stem":2547,"icon":2548},"Tuning under load","\u002Fdocs\u002Foperating\u002Ftuning","1.docs\u002F6.operating\u002F6.tuning","i-lucide-sliders",{"title":2550,"path":2551,"stem":2552,"icon":2553},"Production checklist","\u002Fdocs\u002Foperating\u002Fproduction-checklist","1.docs\u002F6.operating\u002F7.production-checklist","i-lucide-clipboard-check",{"title":2555,"path":2556,"stem":2557,"icon":2558},"The licence tool","\u002Fdocs\u002Foperating\u002Flicence-tool","1.docs\u002F6.operating\u002F8.licence-tool","i-lucide-badge-check",{"title":2560,"path":2561,"stem":2562,"icon":2477},"Right-sizing memory","\u002Fdocs\u002Foperating\u002Fright-sizing-memory","1.docs\u002F6.operating\u002F9.right-sizing-memory",{"title":2564,"path":2565,"stem":2566,"children":2567,"icon":2394},"Migrating from Kafka Streams","\u002Fdocs\u002Fmigration","1.docs\u002F7.migration\u002F1.index",[2568,2569,2574,2579,2584,2589],{"title":2564,"path":2565,"stem":2566,"icon":2394},{"title":2570,"path":2571,"stem":2572,"icon":2573},"Automated port","\u002Fdocs\u002Fmigration\u002Fautomated-port","1.docs\u002F7.migration\u002F2.automated-port","i-lucide-wand-sparkles",{"title":2575,"path":2576,"stem":2577,"icon":2578},"Migration without carrying state","\u002Fdocs\u002Fmigration\u002Fwithout-data-migration","1.docs\u002F7.migration\u002F3.without-data-migration","i-lucide-sparkles",{"title":2580,"path":2581,"stem":2582,"icon":2583},"Migration carrying state","\u002Fdocs\u002Fmigration\u002Fwith-data-migration","1.docs\u002F7.migration\u002F4.with-data-migration","i-lucide-database-backup",{"title":2585,"path":2586,"stem":2587,"icon":2588},"The migration tool","\u002Fdocs\u002Fmigration\u002Fmigration-tool","1.docs\u002F7.migration\u002F5.migration-tool","i-lucide-truck",{"title":2590,"path":2591,"stem":2592,"icon":2593},"Reusing your Kafka Streams dashboards","\u002Fdocs\u002Fmigration\u002Freusing-kafka-streams-dashboards","1.docs\u002F7.migration\u002F6.reusing-kafka-streams-dashboards","i-lucide-line-chart",{"title":2595,"path":2596,"stem":2597,"children":2598,"icon":2600},"Reference","\u002Fdocs\u002Freference","1.docs\u002F8.reference\u002F1.index",[2599,2601,2606,2611,2616,2621,2626,2630],{"title":2595,"path":2596,"stem":2597,"icon":2600},"i-lucide-list",{"title":2602,"path":2603,"stem":2604,"icon":2605},"Configuration reference","\u002Fdocs\u002Freference\u002Fconfiguration-reference","1.docs\u002F8.reference\u002F2.configuration-reference","i-lucide-table",{"title":2607,"path":2608,"stem":2609,"icon":2610},"REST API reference","\u002Fdocs\u002Freference\u002Frest-api-reference","1.docs\u002F8.reference\u002F3.rest-api-reference","i-lucide-network",{"title":2612,"path":2613,"stem":2614,"icon":2615},"Gradle plugin reference","\u002Fdocs\u002Freference\u002Fgradle-plugin-reference","1.docs\u002F8.reference\u002F4.gradle-plugin-reference","i-lucide-box",{"title":2617,"path":2618,"stem":2619,"icon":2620},"Maven reference","\u002Fdocs\u002Freference\u002Fmaven-reference","1.docs\u002F8.reference\u002F5.maven-reference","i-simple-icons-apachemaven",{"title":2622,"path":2623,"stem":2624,"icon":2625},"Kafka Streams compatibility matrix","\u002Fdocs\u002Freference\u002Fks-compatibility-matrix","1.docs\u002F8.reference\u002F6.ks-compatibility-matrix","i-lucide-table-2",{"title":2627,"path":2628,"stem":2629,"icon":2477},"Metrics reference","\u002Fdocs\u002Freference\u002Fmetrics-reference","1.docs\u002F8.reference\u002F7.metrics-reference",{"title":2631,"path":2632,"stem":2633,"icon":2634},"Glossary","\u002Fdocs\u002Freference\u002Fglossary","1.docs\u002F8.reference\u002F8.glossary","i-lucide-book-a",1795959308612,"17acf18c-e5d6-4c82-93bc-2e8c02bb6aa2"]