aboutsummaryrefslogtreecommitdiff
path: root/potpourri/show-tracking-data.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2017-01-27 18:49:37 -0500
committerRob Austein <sra@hactrn.net>2017-01-27 18:49:37 -0500
commit9bcd874fc3f83e2517f89db122ed49cad4e9e599 (patch)
treec6b8c53cf6de3f636bb0fe74223a26dd91687a1c /potpourri/show-tracking-data.py
parent824cdf673f5f26679d7fe7955060963e720066d6 (diff)
Accumulate primary keys instead of objects to work around Django caching.
This is nasty, and I still don't entirely understand it why this was happening. We collect ca_detail objects during bulk ROA processing, so that we can defer manifest and CRL updates until the end of the batch. Somehow, Django's caching code was causing the parent CA's issued serial number to roll back as part of this caching, which caused us to reuse serial numbers. Which is (very) bad. Replacing the collection of ca_detail objects with a collection of primary key values for those same ca_detail objects seems to have worked, presumably because it lets us force creation of a new queryset when it's time for us to process the relevant ca_detail objects. The question is how many other booby traps like this might be lurking.
Diffstat (limited to 'potpourri/show-tracking-data.py')
0 files changed, 0 insertions, 0 deletions
10'>110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213