<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Oliver Schoenborn on Medium]]></title>
        <description><![CDATA[Stories by Oliver Schoenborn on Medium]]></description>
        <link>https://medium.com/@oliver-schoenborn?source=rss-269a24fb6aa------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*lFdcKKVOobVfIUac.</url>
            <title>Stories by Oliver Schoenborn on Medium</title>
            <link>https://medium.com/@oliver-schoenborn?source=rss-269a24fb6aa------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 19:16:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@oliver-schoenborn/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[I knew this was click-bait but was curios to see what bs could yet again be written about ai.]]></title>
            <link>https://oliver-schoenborn.medium.com/this-is-click-bait-for-those-who-lack-the-ability-to-think-logically-aka-those-who-sadly-already-eae5dd4dacf4?source=rss-269a24fb6aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/eae5dd4dacf4</guid>
            <dc:creator><![CDATA[Oliver Schoenborn]]></dc:creator>
            <pubDate>Tue, 18 Apr 2023 21:12:41 GMT</pubDate>
            <atom:updated>2023-04-18T21:14:19.001Z</atom:updated>
            <content:encoded><![CDATA[<p>I knew this was click-bait but was curios to see what bs could yet again be written about ai. <br><br>I was not disappointed. This article is for those who lack the ability to think logically, aka those who (sadly) already have a hard time making ends meet (which makes them desparate for a &quot;lucky break&quot;).<br><br>But worse, the 1000 claps indicates the author is additionally playing the system (which is easy with Medium). Nice role anti-model.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eae5dd4dacf4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The cyberattack is the email about the cyber attack!]]></title>
            <link>https://oliver-schoenborn.medium.com/the-cyberattack-is-the-email-about-the-cyber-attack-e6162073693b?source=rss-269a24fb6aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6162073693b</guid>
            <dc:creator><![CDATA[Oliver Schoenborn]]></dc:creator>
            <pubDate>Fri, 23 Oct 2020 20:14:55 GMT</pubDate>
            <atom:updated>2020-10-23T20:14:55.322Z</atom:updated>
            <content:encoded><![CDATA[<p>Today I got an email that seemed to come from my school website. It said the school alumni website got hacked and that next time I sign in, I will have to reset my password. The email contained a link to the alumni site. Nothing too ominous, right? The email didn’t recommend that I change my password now, just “the next time I log in”.</p><p>Still, that’s a big warning sign right there: you should be weary of links in emails, let alone links related to account passwords.</p><p>I noticed that the alumni website that showed in the email had a .com address? Weird. A “.com” site is usually a business. Hovering mouse pointer over the link in the email showed “https://&lt;alumni-site-name&gt;.us19.list-manage.com/track/…”… now why the heck would the alumni web site admin want to track me going to the site? The plot thickens.</p><p>So I went to my web browser and typed the address that was showing up in the text of the email (not the list-manage.com address). I have setup our home to use OpenDNS to resolve web addresses, because it does a lot filtering out of bad websites and sure enough, the page that came up said OpenDNS was preventing access to that address because it was found to be involved in a phishing attack.</p><p>I then looked at the email sender *details* which in gmail, you get by clicking the down-arrow:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/1*SI5e-_tK2tcDI8RcRZvrGA.png" /></figure><p>If you don’t pay attention it may seem like this comes from the high-school for this alumni group, perhaps from “mnalette”. But look again and you see that the email sender is at qc.ca which is the Quebec government, and “via utoronto.onmicrosoft.com”. This address does not even exist (I checked). The “from” address is completely forged.</p><p>You can also see in the sender details that it was mailed by utoronto.ca which belongs to University of Toronto, how does UofT know anything about my high school? Plus, the email is digitally signed for “security” by that onmicrosoft.com which does not exist. Notice gmail does not say the signature is valid. When it does, it looks like this, ie there is a “security” field that verifies the signed-by is legit:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/327/1*RYIPv6-RbjaV8tk4O3SWrQ.png" /></figure><p>Here, you now know a few things to verify before clicking on links in emails. Basically, hover over links to see what they *really* point to (not necessarily what the email text shows), and check the sender info.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6162073693b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exclusive end-to-end encryption (e4)]]></title>
            <link>https://oliver-schoenborn.medium.com/exclusive-end-to-end-encryption-e4-ffb7cabc5bb9?source=rss-269a24fb6aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/ffb7cabc5bb9</guid>
            <dc:creator><![CDATA[Oliver Schoenborn]]></dc:creator>
            <pubDate>Sat, 07 Mar 2020 16:50:28 GMT</pubDate>
            <atom:updated>2020-03-07T17:02:47.247Z</atom:updated>
            <content:encoded><![CDATA[<p>I saw an article today explaining why the Earn It act in the US is a terrible thing. It focussed on why exclusive end-to-end encryption (I’ll abbreviate this as e4) is absolutely necessary and this Act will open the door to mass surveillance.</p><p>I have not yet formed an opinion about the act itself, but I do have a strong opinion about e4.</p><p>E4, to be clear, means that once you click “submit” from your web browser or mobile app, the data is no longer readable by <em>anyone</em> but you and the parties for which the data is intended. Not even the service provider has a way to look at the data, ever, even if asked by law; there is no computer algorithm that could decypher your data except if the cypher (your password, say) is weak; there is no way for you to access the data if you lose the password or the key.</p><p>This might sound good in theory, but in practice it will make the world a less safe place. The intent of E4 is to prevent hackers and thieves (aka “bad people”) from stealing private data that would give them access to your assets (whether hard like home, money etc, or soft like bitcoins, licenses, etc) either directly or by impersonating you, or making false accusations, etc.</p><p>It’s been shown time and again that openness is what makes people accountable. Everywhere, in every human organization. Corruption is possible only behind closed doors. Can you imagine if everything you see was encrypted and you could only decypher it if you had the right password in your brain? Can you imagine how much power that would give to people who don’t have integrity? If this were not true we would not need police forces, income tax audits, coast guards, security guards, etc! The internet is no different, we need policing/auditing there too. And therefore on the internet, as in the real world, you have to balance freedom with responsibility, privacy with community. You don’t do that by allowing everything to be hidden.</p><p>It’s been demonstrated that some people (I don’t know the stats, but as the saying goes, it only takes a few rotten apples to spoil the barrel), do the right thing only if they know they are are being watched. The bigger the crime/misdemeanor, the fewer people will try it. How many of you drive below the speed limit? This is not a big crime; it only means that every morning, there is an accident due to speed, and it takes every one else 1 hour to get to work instead of half an hour. There only needs to be one accident from breaking the law; because after that everyone is driving below the speed limit (until the mess gets cleared; and after that the traffic goes down).</p><p>Think about it : communication is necessary for organized crime; both to organize, and to sell. The only way to police organized crime on the internet is to have access to the same channels and data to collect evidence. If you’re an honest person and you do your job and contribute to your community, why do you worry so much about hiding *all* your data? If we lived in a country where corruption and abuse of authority were rampant, that would be different. And please don’t say that is true; not if you live in the US or Canada, and many other countries.</p><p>E4 (exclusive end-to-end encryption) is simply not a practical option in the long run for the Internet and the world to be a safe place for everyone. Encryption at rest and in transit are critical, but there has to be ways to monitor behavior and therefore data.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ffb7cabc5bb9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Basic features missing from Confluence and Bitbucket]]></title>
            <link>https://oliver-schoenborn.medium.com/basic-features-missing-from-confluence-and-bitbucket-5cbb7694d8df?source=rss-269a24fb6aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/5cbb7694d8df</guid>
            <category><![CDATA[confluence]]></category>
            <category><![CDATA[peer-review]]></category>
            <category><![CDATA[bitbucket]]></category>
            <dc:creator><![CDATA[Oliver Schoenborn]]></dc:creator>
            <pubDate>Tue, 04 Feb 2020 16:20:36 GMT</pubDate>
            <atom:updated>2020-02-04T16:26:12.855Z</atom:updated>
            <content:encoded><![CDATA[<p>I keep finding basic features missing from Atlassian products like Confluence and Bitbucket. However Atlassian products have many essential features so one could see why they are so popular, but I have a hard time understanding why these missing ones can’t be implemented.</p><p>Take for instance comments on Confluence pages:</p><ul><li>There is no list of comments on a page: you have to scroll through the whole page, looking for text that has a light yellow background. Then if you click on it the comment will become visible on the right. This is error-prone and time-consuming, very easy to miss. There is a menu option “Resolved Comments”, it should just be “Comments” and should open sidebar (not a window over the text) with list of comments that you could filter on resolved/unresolved and when you clicked on one, the view would automatically scroll to that comment. Pretty basic functionality, essential for review cycles.</li><li>In page-edit mode, the comments are not visible, can you believe that? So you want to address a comment, you have to go up, click Edit, you have to remember or have copied the words to search to find the place where the comment is, change it, publish, and mark the comment done. Talk about inneficiency. The comments should remain visible while editing.</li></ul><p>Similar problems exist with comments in Bitbucket pull requests:</p><ul><li>Little comment icons appear next to each file listed at the top, but you can’t see the text of the comment without scrolling to it, so it can be difficult to figure out whether it is a comment you have already dealt with.</li><li>Can’t mark a comment as resolved, no cue in that list of files of which comments have been “resolved”, let alone which ones have been accepted as resolved by the reviewer.</li><li>You can’t go to previous or next comment, you have to scroll through the page; at least on these pages, the comments are easy to see, but sometimes there is a lot of scrolling to do eg if you have added some large files.</li></ul><p>In both of those Atlassian services (Confluence pages and Bitbucket PRs), there is no way for the user who raised the issue via a comment to accept or reject the “fix”. Basic life cycle of issues: you raise one (state=new), someone fixes (state=fix needs validating), the person who raised it should confirm this addresses the concern or drop the issue (either way, state=closed).</p><p>Sometimes you find out that some small bit of the above missing functionality is available as a paid, third-party plugin. Really? Like, “Oh you need a door on your car? Yeah well that’s extra that we don’t provide, but that garage, one block from here, can put one in for you. It’ll cost a bit, and we have no idea how good their testing is, or how much you can trust them, but we don’t put doors on our cars. Not yet anyways. It’s in our backlog. Good luck!” Seriously.</p><p>Some of these basic essential features appear in their backlog, like <a href="https://community.atlassian.com/t5/Confluence-questions/View-all-open-comments-on-a-Confluence-page/qaq-p/386566">https://community.atlassian.com/t5/Confluence-questions/View-all-open-comments-on-a-Confluence-page/qaq-p/386566</a>. Been there for years, tons of people asking for it. YEARS! WTH?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5cbb7694d8df" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My experience with CloudFormation, Terraform… hi Pulumi?]]></title>
            <link>https://oliver-schoenborn.medium.com/my-experience-with-cloudformation-terraform-hi-pulumi-a4792ac75c05?source=rss-269a24fb6aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4792ac75c05</guid>
            <dc:creator><![CDATA[Oliver Schoenborn]]></dc:creator>
            <pubDate>Wed, 29 Jan 2020 15:42:56 GMT</pubDate>
            <atom:updated>2020-01-29T15:42:56.513Z</atom:updated>
            <content:encoded><![CDATA[<p>Really enjoyed reading <a href="https://blog.codecentric.de/en/2019/09/aws-cdk-versus-terraform-and-serverless-framework">Will AWS CDK replace Terraform and the Serverless Framework? by Kevin van Ingen</a>. I have worked with AWS CLI and terraform for a couple of years, and CloudFormation for a few months. Here is summary of my experience so far, and a short discussion on possible alternatives. If you have any thoughts on what I post here, please comment!</p><p>Some nice things with CloudFormation:</p><ol><li>Looks like every AWS resource can be expressed, 100% of configuration parameters etc</li><li>It supports nested stacks as a form of re-use</li><li>Pretty good docs</li><li>Change sets as a way to see what will be changed to decide whether to go ahead</li></ol><p>Gripes with CloudFormation:</p><ol><li>It feels like I’m working at the assembly level of cloud infrastructure, where I have to think in terms of nat gateways and subnets and such, whereas I (personnally) prefer to work at the Kubernetes level, where I don’t have to worry about all the plumbing and I can focus on the application components.</li><li>CloudFormation’s transactional model makes for very difficult debugging, ie if something goes wrong you have to check which object failed and that object is not necessarily the problem, in some cases other object it uses is misconfigured, sometimes the problem is not obvious to determine.</li><li>The all-or-nothing (because it is transactional) can be really annoying, like you get one little parameter value wrong in one object near the end of the stack template, it undoes the whole thing! this can be very time consuming.</li><li>The syntax is hackish, simple things like lists are complex to express and read.</li><li>Sometimes the rollback that occurs to undo the failed change set, fails itself! Then what do you do? Get out the hammer and vice grips and blow torch.</li></ol><p>What I like about terraform:</p><ol><li>The plan it generates is very nice, including its summary of added/removed/changed.</li><li>Because it uses AWS CLI under the hood, it is non-transactional so when something breaks, you can often fix that problem manually, and continue where it left off. This is almost like procedural stepping through code (my background is in software engineering).</li><li>Modules are a nice form of re-use.</li><li>It seems to support a huge number of AWS resources, but I don’t know how close it gets to CF coverage.</li></ol><p>What I dislike about Terraform:</p><ol><li>Sometimes the problem description that TF outputs has no obvious solution, it’s not oh just delete this and try again. Bugs in TF do happen, and in such cases the error may be completely misleading, ambiguous, or no one else has reported same in stackoverflow and other forums. If this were in production, there would be major downtime.</li><li>Solutions you find in web searches will often not match exactly your situation, and often it is not clear that the best candidate solution will actually fix the problem, could make it worse.</li><li>The TF HCL is a new language to learn, and the syntax is not very friendly. Seriously I don’t understand why developers of tools like TF don’t just embed a Python interpreter instead of re-inventing the wheel with a domain-specific language.</li><li>Re-use and separation of concerns is not easy because TF Modules are only one aspect of this. E.g. I want to have all my IaC files related to all my RDS instances of one VPC in one folder, can’t do it, because all tfvars files *have* to be in the main TF folder. If I want this kind of separation, I need a script to copy things around at deployment time.</li><li>Some simple things can’t be done, using a value within another value (like value=$(a-$b) where you want value to the value of a variable, the <em>name </em>of which you know only at runtime from a combination of other values (this is not the same as value=$a-$b).</li><li>Ultimately just declarative does not cut it because different versions of your stack will have different requirements say for integration testing, staging, production, sandboxes for troubleshooting, etc, and HCL is just not expressive enough so you will end up needing Python or Bash or Javascript.</li></ol><p>Alternatives?</p><p>Serverless Framework seems to be purely declarative like TF, in which case you will as with TF and CF end up using some external scripting like Python or bash to customize your yaml. Also it apparently only supports AWS resources that are serverless, so if you have anything non-serverless components you need to set up, you need something.</p><p>AWS CDK is a Python interface to produce CF templates. Although using Python gives you a huge amount of power to *generate* your CF templates, ultimately it is still transactional, you won’t be able to step through your code and resume where it left off, hence the issues with rollback failures and all-or-nothing will still be there.</p><p>Pulumi seems like a good candidate for the best of both worlds: it uses Python so you can do the infrastructure business logic, the AWS CLI so you can procedurally step through your code, creating one resource at a time step by step, and Terraform AWS provider so it covers a huge number of AWS resources. I’m very tempted to try it out.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4792ac75c05" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scan-based attendance for meetup.com please]]></title>
            <link>https://oliver-schoenborn.medium.com/i-go-to-a-lot-of-technical-meetups-thanks-to-the-awesome-meetup-com-f0d9c7a0f925?source=rss-269a24fb6aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0d9c7a0f925</guid>
            <dc:creator><![CDATA[Oliver Schoenborn]]></dc:creator>
            <pubDate>Fri, 10 Jan 2020 17:22:38 GMT</pubDate>
            <atom:updated>2020-01-10T17:31:18.535Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1BFYKebXI_BCa8n2_22GIg.png" /></figure><p>I go to a lot of technical meetups thanks to the awesome meetup.com, and I’ve noticed a trend that the company should take seriously : meetup hosts want an easy way for attendees to sign in to the event location, via a QR or bar code that host can scan when the attendee arrives.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5-DpD9WeJic-cl4AWU4Gag.png" /></figure><p>Some apps provide this, like Eventbrite.com. But Meetup does not provide this, so hosts are more and more switching to tools like Eventbrite (often, AFAICT, due to sponsors). <em>Very unfortunate</em> because none of the alternatives come close to meetup.com when it comes to</p><ul><li>ease of finding relevant groups,</li><li>marking your attendance with one click, and</li><li>automatically getting an entry in your google calendar.</li></ul><p>There are many more (nice clean ui, etc). The equivalent tasks are laborious in Eventbrite.</p><p>I don’t think meetup.com needs to go all-out and provide the sign-in-at-event using a ticket. It would be sufficient to</p><ol><li>provide users with a QR code that she can show from the app, on demand (like via a widget on home screen). This could be an opt-in feature for users even with free account. It should be clear to the user what info the QR code exposes to the scanner.</li><li>On the host side, the app would just access the camera to scan the codes for a particular event. The host could choose when they create the event whether a qr code will be necessary to enter the event venue. Scanning should be a paid feature only if competition like Eventbrite also charge for it.</li></ol><p>Not only does the host know who attended, like for events hosted through Eventbrite, but good bye to having to ask users to answer whether they attended, much more reliable data!</p><p>I sent feedback to meetup.com, I hope they can do something like this quickly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0d9c7a0f925" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cable Modem 100 Mbps Speed Tests]]></title>
            <link>https://oliver-schoenborn.medium.com/cable-modem-100-mbps-speed-tests-3da3ca87a5ec?source=rss-269a24fb6aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/3da3ca87a5ec</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[cable-internet]]></category>
            <category><![CDATA[speed-test]]></category>
            <dc:creator><![CDATA[Oliver Schoenborn]]></dc:creator>
            <pubDate>Thu, 02 Jan 2020 19:55:02 GMT</pubDate>
            <atom:updated>2020-01-02T19:55:02.826Z</atom:updated>
            <content:encoded><![CDATA[<p>Got our cable modem installed today: 100 Mbps cable modem plan with Start.ca, a company located in London, Ontario (Canada). They are on the Rogers cable network. Monthly CA$73 everything included (taxes and modem rental), unlimited up/downloads. Also great phone/email service so far. Here are speed tests to biggest cities in various parts of the world, based on speedtest.net:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*RVRaWQVZHOJY6Q6qkMHgjg.png" /></figure><p>It is interesting to note that in some cases, there were big differences in performance between providers in same city, e.g. AT&amp;T vs Comcast in SF, and MTA vs Vodacom in Johannesburg.</p><p>On a semi-philosophical note, it is quite awesome how data can flow at around 70 million bits per second between locations 11,400 miles (18,300 km) apart. The max distance between any 2 cities on the planet is about 20,000 km. I used <a href="https://www.timeanddate.com/worldclock/distances.html?n=188">https://www.timeanddate.com/worldclock/distances.html?n=188</a> to find the furthest big city. Based on the ping, it takes about 0.13 sec for signal to travel that distance through all the servers. So about 1/8 sec lag, and 70 Mbps, to a location halfway around the planet. Amazing. Mind you I don’t know how the speed test works. Does it check that it receives everything exactly as sent? Does it retry sending pieces that don’t make it? Probably does since *should* be http based speed test but this is just a reasonable assumption at this stage.</p><p>What are your closest and furthest server speed test results (and from what city!)?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3da3ca87a5ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Rotating KMS Keys is Safer]]></title>
            <link>https://oliver-schoenborn.medium.com/why-rotating-kms-keys-is-safer-66715e3cb1e5?source=rss-269a24fb6aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/66715e3cb1e5</guid>
            <category><![CDATA[km]]></category>
            <category><![CDATA[key-rotation]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Oliver Schoenborn]]></dc:creator>
            <pubDate>Tue, 24 Dec 2019 18:40:06 GMT</pubDate>
            <atom:updated>2019-12-24T18:40:06.010Z</atom:updated>
            <content:encoded><![CDATA[<p>Funny how sometimes you can take things for granted. When you ask “why” something is the way it is, it also amazing how many web pages just repeat the “what”, without any indication of knowing the “why”.</p><p>Example: crypto key rotation, the way it is done in hosted clouds like AWS and GCP: they keep the old keys around. That’s by design and is a good thing otherwise every time you rotate a key, you would first have to decrypt all documents that were encrypted with it, rotate the key, the re-encrypt. But just think for a sec, “how” is this safer? After 10 years, without rotating keys, or with rotating them, you can still decrypt all old documents.</p><p>By analogy, it’s obvious that changing passwords is a good thing. But if you allow all previous passwords to let you in, it’s actually the opposite. So why is it safer in the case of these cloud-managed keys, to allow all previous keys to decrypt the files that were encrypted using them? I could not find this in any AWS documentation, but I sure came across a lot of sites that repeated almost word for word what AWS docs say, ie is a good thing to do, without any quote or link to backup the statement.</p><p>After several searches combining different sets of keywords, I eventually came across a nice explanation on Google Cloud docs: see “Reasons for rotating a key” in <a href="https://cloud.google.com/kms/docs/key-rotation.">https://cloud.google.com/kms/docs/key-rotation.</a></p><p>Makes sense once you see it!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66715e3cb1e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Merge Pull Requests programmatically in BitBucket]]></title>
            <link>https://oliver-schoenborn.medium.com/merge-pull-requests-programmatically-in-bitbucket-3a89b9440721?source=rss-269a24fb6aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a89b9440721</guid>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Oliver Schoenborn]]></dc:creator>
            <pubDate>Thu, 19 Dec 2019 21:52:23 GMT</pubDate>
            <atom:updated>2020-07-20T21:47:19.378Z</atom:updated>
            <content:encoded><![CDATA[<p>In <a href="https://medium.com/@oliver.schoenborn/create-pull-requests-programmatically-in-bitbucket-d5e4f7dc9b1b">Creating PR programmatically in Bitbucket</a>, I showed how to create a large number of identical pull requests, ie identical across a set of bitbucket repositories. The other task that is cumbersome is merging the set of create PRs.</p><p>In the final curl command in that post, extract the merge link from the responses, like this:</p><pre>BB_URL=<a href="https://api.bitbucket.org/2.0/repositories/outfrontmedia/$repo/pullrequests">https://api.bitbucket.org/2.0/repositories/</a><a href="https://api.bitbucket.org/2.0/repositories/outfrontmedia/REPO_NAME/pullrequests/PR_NUMBER_JUST_CREATED">YOUR_ORG_NAME</a><br>for repo in $REPOS; do <br>  curl -s $BB_URL<a href="https://api.bitbucket.org/2.0/repositories/outfrontmedia/$repo/pullrequests">/$repo/pullrequests</a> --user USERNAME:PASSWORD \<br>     --request POST --header &#39;Content-Type: application/json&#39; \<br>     --data <a href="http://twitter.com/pr_NUMBER_get">@pr_get</a>.json \<br>  | jq -r .links.merge.href<br>done &gt; pr_merges.txt</pre><p>Then add a line for the PR that you created manually (all you need is the PR number, which you can find in the URL in the browser where you created it). When you have all PRs approved and are ready to merge, execute the following command:</p><pre>for merge in $( cat pr_merges.txt ); do<br>    curl $merge --user USERNAME:PASSWORD --request POST<br>done</pre><p>Done!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a89b9440721" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create Pull Requests programmatically in BitBucket]]></title>
            <link>https://oliver-schoenborn.medium.com/create-pull-requests-programmatically-in-bitbucket-d5e4f7dc9b1b?source=rss-269a24fb6aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5e4f7dc9b1b</guid>
            <category><![CDATA[bitbucket]]></category>
            <category><![CDATA[pull-request]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Oliver Schoenborn]]></dc:creator>
            <pubDate>Fri, 06 Sep 2019 00:53:41 GMT</pubDate>
            <atom:updated>2020-07-17T19:54:51.072Z</atom:updated>
            <content:encoded><![CDATA[<p>On this one large project the bitbucket account has about 50 git repos in Atlassian BitBucket Cloud. Many of them are microservices that have e.g. similar Jenkinsfile, Dockerfile etc. Sometimes we need to make just one tweak across a whole bunch of repos, say to change the URL for a server because it was not parametrized. With JetBrains IDE (like IntelliJ, PyCharm, etc), it’s easy to do a search &amp; replace, and then to do a bulk commit of all 50 repos for that one small change as you can use the same commit message, same referenced JIRA ticket number etc. A couple of button clicks and you’re done that part, piece of cake.</p><p>But then you have to create 50 pull requests!! I have no patience for that type of repetitive work. After a bit of digging and trial and error, I found a convenient way to create pull requests programmatically using bitbucket’s REST API:</p><ol><li>Create one PR in the web UI on one of the repos. Write a useful title, description, select all the reviewers you might need across all repos, and don’t forget to checkmar the “Delete branch on merge”.</li><li>From a terminal shell, use curl <a href="https://api.bitbucket.org/2.0/repositories/outfrontmedia/REPO_NAME/pullrequests/PR_NUMBER_JUST_CREATED">https://api.bitbucket.org/2.0/repositories/YOUR_ORG_NAME/REPO_NAME/pullrequests/PR_NUMBER_JUST_CREATED</a> -u USERNAME:PASSWORD | jq . &gt; pr_get.json to get the JSON of that PR into a file. Note that your username is the one defined in your Profile Settings, and can be changed. For me it is <strong>not</strong> the name I use to login with.</li><li>Edit the file to remove most elements of it, keeping only the following: description, title, close_source_branch, reviewers, and source</li><li>In source element, keep only branch, remove the rest.</li><li>In the shell, use for repo in $REPOS; do curl -s <a href="https://api.bitbucket.org/2.0/repositories/outfrontmedia/$repo/pullrequests">https://api.bitbucket.org/2.0/repositories/</a><a href="https://api.bitbucket.org/2.0/repositories/outfrontmedia/REPO_NAME/pullrequests/PR_NUMBER_JUST_CREATED">YOUR_ORG_NAME</a><a href="https://api.bitbucket.org/2.0/repositories/outfrontmedia/$repo/pullrequests">/$repo/pullrequests</a> --user USERNAME:PASSWORD --request POST --header &#39;Content-Type: application/json&#39; --data <a href="http://twitter.com/pr_NUMBER_get">@pr_get</a>.json; done where REPOS is your list of repos. So REPOS could be * if all folders in local folder are bitbucket git repos, or *-service if all bitbucket repos of interest end in -service, etc. You could get fancier and only do the curl if git status shows changes, etc.</li></ol><p>You’re done! Visit bitbucket and marvel that all your Pull Requests are created.</p><p>PS. If you also want to merge the PRs created this way, before doing the above look at my other post <a href="https://medium.com/@oliver.schoenborn/merge-pull-requests-programmatically-in-bitbucket-3a89b9440721">Merge Pull Requests programmatically in BitBucket</a>, as there is one small change to make.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5e4f7dc9b1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>