[{"data":1,"prerenderedAt":2140},["ShallowReactive",2],{"/blog/open-sourcing-the-gitter-mobile-apps":3,"navigation-en-us":1390,"banner-en-us":1826,"footer-en-us":1834,"blog-post-authors-en-us-Eric Eastwood":2081,"blog-related-posts-en-us-open-sourcing-the-gitter-mobile-apps":2095,"blog-share-wrapper-en-us":2120,"next-steps-en-us":2130},{"id":4,"title":5,"authors":6,"body":8,"category":1368,"date":1369,"description":1370,"extension":1371,"externalUrl":1372,"faq":1372,"featured":1373,"heroImage":1374,"hidePromo":1373,"meta":1375,"navigation":327,"path":1376,"seo":1377,"slug":1381,"stem":1382,"tags":1383,"template":1388,"updatedDate":1372,"__hash__":1389},"blogPosts/en-us/blog/open-sourcing-the-gitter-mobile-apps.md","Open-sourcing the Gitter mobile apps",[7],"Eric Eastwood",{"type":9,"value":10,"toc":1353},"minimark",[11,34,37,59,62,76,80,94,108,113,123,155,159,162,206,221,226,292,297,305,308,344,349,369,381,385,397,404,407,446,452,456,463,491,498,501,512,523,526,531,568,578,581,592,601,604,620,628,633,841,849,854,860,865,1187,1190,1264,1268,1275,1278,1284,1288,1325,1335,1349],[12,13,14,15,21,22,27,28,33],"p",{},"Before we acquired Gitter most every part of Gitter was private/closed-source. The main ",[16,17,20],"a",{"href":18,"rel":19},"https://gitlab.com/gitlab-org/gitter/webapp",[],"webapp"," was open-sourced in June 2017 and got both mobile ",[16,23,26],{"href":24,"rel":25},"https://gitlab.com/gitlab-org/gitter/gitter-android-app",[],"Android","/",[16,29,32],{"href":30,"rel":31},"https://gitlab.com/gitlab-org/gitter/gitter-ios-app",[],"iOS"," apps open sourced in September 2018. If you would like to come help out, feel free to send us a merge request! This blog post will go over some the technical details of making the projects available for anyone to contribute.",[12,35,36],{},"Here is the basic overview:",[38,39,40,44,47,50],"ol",{},[41,42,43],"li",{},"Find secrets in the current state of the project (don't worry about the commit history) and move to some config that isn't tracked in the repo.",[41,45,46],{},"Find/remove secrets throughout the whole repo commit history.",[41,48,49],{},"Make the project public 🎉",[41,51,52,53],{},"Caveats:\n",[54,55,56],"ul",{},[41,57,58],{},"Because we are rewriting the git history, I don't know of a way to keep merge requests/pull requests because the MRs reference the old commit hashes.",[12,60,61],{},"Quick navigation:",[54,63,64,70],{},[41,65,66],{},[16,67,69],{"href":68},"#android","Jump to open sourcing Android",[41,71,72],{},[16,73,75],{"href":74},"#ios","Jump to open sourcing iOS",[77,78,26],"h2",{"id":79},"android",[12,81,82,83,87,88,93],{},"If you want to check out the full project and final result, you can check out the ",[16,84,86],{"href":24,"rel":85},[],"project on GitLab"," (",[16,89,92],{"href":90,"rel":91},"https://twitter.com/gitchat/status/1027293167471812611",[],"open-sourced 2018-8-8",").",[12,95,96,97,102,103,107],{},"To start out, we used the ",[16,98,101],{"href":99,"rel":100},"https://docs.gitlab.com/user/project/import/github/",[],"GitHub to GitLab project import"," to move the private GitHub project over to GitLab. We named it ",[104,105,106],"code",{},"gitter-android-app2"," so that later on we could create the actual clean public project without any of the orphaned git references that may potentially leak.",[109,110,112],"h3",{"id":111},"finding-secrets","Finding secrets",[12,114,115,122],{},[16,116,119],{"href":117,"rel":118},"https://github.com/dxa4481/truffleHog",[],[104,120,121],{},"truffleHog"," will search for high entropy strings (like tokens/passwords) through the entire git repo history. It's also useful to find all the potential areas where secrets may still exist in the current state of the project. Some sticky points we encountered while using include:",[54,124,125,138],{},[41,126,127,128,131,132,137],{},"\"I wish we could just search the current state of the project instead of all git history (the ",[104,129,130],{},"--max_depth=2"," argument will just make it search the diff of the latest commit)\" ",[16,133,136],{"href":134,"rel":135},"https://github.com/dxa4481/truffleHog/issues/92",[],"dxa4481/truffleHog#92",".",[41,139,140,141,144,145,149,150,137],{},"\"The output will show the entire diff for the triggered commit which is a bit burdensome to see exactly what is wrong. The JSON output ",[104,142,143],{},"--json"," is sometimes easier to understand\" ",[16,146,147],{"href":147,"rel":148},"https://github.com/dxa4481/truffleHog/issues/58",[]," or ",[16,151,154],{"href":152,"rel":153},"https://github.com/dxa4481/truffleHog/issues/102",[],"dxa4481/truffleHog#102",[109,156,158],{"id":157},"moving-secrets-to-untracked-config","Moving secrets to untracked config",[12,160,161],{},"Once we figure out where all of the secrets are we need a config/variable solution that isn't tracked by git but still lets them be available when building. We also wanted the solution to work in GitLab CI for some sanity builds/testing. There are lots of good articles on this topic:",[54,163,164,171,178,185,192,199],{},[41,165,166],{},[16,167,170],{"href":168,"rel":169},"https://developer.android.com/studio/build/gradle-tips#remove-private-signing-information-from-your-project",[],"Remove private signing information from your project",[41,172,173],{},[16,174,177],{"href":175,"rel":176},"https://medium.com/@geocohn/keeping-your-android-projects-secrets-secret-393b8855765d",[],"Keeping Your Android Project’s Secrets Secret",[41,179,180],{},[16,181,184],{"href":182,"rel":183},"https://rammic.github.io/2015/07/28/hiding-secrets-in-android-apps/",[],"Hiding Secrets in Android Apps",[41,186,187],{},[16,188,191],{"href":189,"rel":190},"https://joshmcarthur.com/2014/02/16/keeping-secrets-in-an-android-application.html",[],"Keeping secrets in an Android Application",[41,193,194],{},[16,195,198],{"href":196,"rel":197},"https://gist.github.com/curioustechizen/9f7d745f9f5f51355bd6",[],"Android: Loading API Keys and other secrets from properties file using gradle",[41,200,201],{},[16,202,205],{"href":203,"rel":204},"https://arstechnica.com/information-technology/2013/12/how-can-i-keep-api-keys-out-of-source-control/",[],"How can I keep API keys out of source control?",[12,207,208,209,212,213,215,216,137],{},"Our solution is completely based on the information in these articles. We chose to go the route of defining things in a ",[104,210,211],{},"secrets.properties"," file which can easily be read in the Gradle build script which handles the build even when using Android Studio. If the ",[104,214,211],{}," file doesn't exist (like in CI), it will try to read the secrets from ",[16,217,220],{"href":218,"rel":219},"https://docs.gitlab.com/ci/variables/",[],"environment variables which can easily be supplied in the project settings",[12,222,223],{},[104,224,225],{},"secerts.properties",[227,228,233],"pre",{"className":229,"code":230,"language":231,"meta":232,"style":232},"language-properties shiki shiki-themes github-light","# Visit https://developer.gitter.im/apps (sign in) and create a new app\n# Name: my-gitter-android-app (can be anything)\n# Redirect URL: https://gitter.im/login/oauth/callback\noauth_client_id=\"...\"\noauth_client_secret=\"...\"\noauth_redirect_uri=\"https://gitter.im/login/oauth/callback\"\n","properties","",[104,234,235,244,250,256,271,281],{"__ignoreMap":232},[236,237,240],"span",{"class":238,"line":239},"line",1,[236,241,243],{"class":242},"sAwPA","# Visit https://developer.gitter.im/apps (sign in) and create a new app\n",[236,245,247],{"class":238,"line":246},2,[236,248,249],{"class":242},"# Name: my-gitter-android-app (can be anything)\n",[236,251,253],{"class":238,"line":252},3,[236,254,255],{"class":242},"# Redirect URL: https://gitter.im/login/oauth/callback\n",[236,257,259,263,267],{"class":238,"line":258},4,[236,260,262],{"class":261},"sD7c4","oauth_client_id",[236,264,266],{"class":265},"sgsFI","=",[236,268,270],{"class":269},"sYBdl","\"...\"\n",[236,272,274,277,279],{"class":238,"line":273},5,[236,275,276],{"class":261},"oauth_client_secret",[236,278,266],{"class":265},[236,280,270],{"class":269},[236,282,284,287,289],{"class":238,"line":283},6,[236,285,286],{"class":261},"oauth_redirect_uri",[236,288,266],{"class":265},[236,290,291],{"class":269},"\"https://gitter.im/login/oauth/callback\"\n",[12,293,294],{},[104,295,296],{},"build.gradle",[227,298,303],{"className":299,"code":301,"language":302,"meta":232},[300],"language-text","apply plugin: 'com.android.application'\n\n// Try reading secrets from file\ndef secretsPropertiesFile = rootProject.file(\"secrets.properties\")\ndef secretProperties = new Properties()\nif (secretsPropertiesFile.exists()) {\n    secretProperties.load(new FileInputStream(secretsPropertiesFile))\n}\n// Otherwise read from environment variables, this happens in CI\nelse {\n    secretProperties.setProperty(\"oauth_client_id\", \"\\\"${System.getenv('oauth_client_id')}\\\"\")\n    secretProperties.setProperty(\"oauth_client_secret\", \"\\\"${System.getenv('oauth_client_secret')}\\\"\")\n    secretProperties.setProperty(\"oauth_redirect_uri\", \"\\\"${System.getenv('oauth_redirect_uri')}\\\"\")\n}\n\nandroid {\n    ...\n\n    defaultConfig {\n        ...\n\n        buildConfigField(\"String\", \"oauth_client_id\", \"${secretProperties['oauth_client_id']}\")\n        buildConfigField(\"String\", \"oauth_client_secret\", \"${secretProperties['oauth_client_secret']}\")\n        buildConfigField(\"String\", \"oauth_redirect_uri\", \"${secretProperties['oauth_redirect_uri']}\")\n    }\n    ...\n}\n","text",[104,304,301],{"__ignoreMap":232},[12,306,307],{},"Use the config variables in the Java app:",[227,309,313],{"className":310,"code":311,"language":312,"meta":232,"style":232},"language-java shiki shiki-themes github-light","import im.gitter.gitter.BuildConfig;\n\nBuildConfig.oauth_client_id;\nBuildConfig.oauth_client_secret;\nBuildConfig.oauth_redirect_uri;\n","java",[104,314,315,323,329,334,339],{"__ignoreMap":232},[236,316,317,320],{"class":238,"line":239},[236,318,319],{"class":261},"import",[236,321,322],{"class":265}," im.gitter.gitter.BuildConfig;\n",[236,324,325],{"class":238,"line":246},[236,326,328],{"emptyLinePlaceholder":327},true,"\n",[236,330,331],{"class":238,"line":252},[236,332,333],{"class":265},"BuildConfig.oauth_client_id;\n",[236,335,336],{"class":238,"line":258},[236,337,338],{"class":265},"BuildConfig.oauth_client_secret;\n",[236,340,341],{"class":238,"line":273},[236,342,343],{"class":265},"BuildConfig.oauth_redirect_uri;\n",[345,346,348],"h4",{"id":347},"removing-compiled-assets","Removing compiled assets",[12,350,351,352,355,356,362,363,368],{},"We use a ",[104,353,354],{},"WebView"," to display the HTML markdown messages in the chat room. This view uses assets built from the main ",[16,357,359,361],{"href":18,"rel":358},[],[104,360,20],{}," project",". Because these assets had some inlined production ",[16,364,366],{"href":18,"rel":365},[],[104,367,20],{}," secrets that whole directory needed to be removed.",[12,370,371,372,377,378,380],{},"Initially, we opted to have the developer build these assets with their own secrets and symlink the build output directory. The ",[16,373,376],{"href":374,"rel":375},"https://gitlab.com/gitlab-org/gitter/gitter-android-app/merge_requests/113",[],"community made this even simpler",", so now there is just a Gradle task to run which fetches the latest build we have available from the ",[104,379,20],{}," GitLab CI.",[109,382,384],{"id":383},"removing-secrets-from-the-repo-history","Removing secrets from the repo history",[12,386,387,388,390,391,396],{},"From your ",[104,389,121],{}," results earlier, you should know where secrets were stored throughout the history. We can use ",[16,392,395],{"href":393,"rel":394},"https://rtyley.github.io/bfg-repo-cleaner/",[],"BFG Repo-Cleaner"," to remove and rewrite the repo history quickly.",[12,398,399,400,403],{},"When using BFG, I wanted just to rewrite all of the sensitive values in ",[104,401,402],{},"app/src/main/res/values/settings.xml"," instead of completely removing them, but rewriting isn't an option with BFG so I went ahead with deleting it and recreated it in a commit afterwards. 🤷",[12,405,406],{},"For the Android app, here are the BFG commands I used,",[54,408,409,422,433],{},[41,410,411,412,415],{},"Remove ",[104,413,414],{},"app/src/main/assets/www/",[54,416,417],{},[41,418,419],{},[104,420,421],{},"java -jar \"bfg.jar\" --delete-folders www",[41,423,411,424,426],{},[104,425,402],{},[54,427,428],{},[41,429,430],{},[104,431,432],{},"java -jar \"bfg.jar\" --delete-files settings.xml",[41,434,435,436,438,439],{},"Remove sensitive strings where we can't just remove the whole file (collected from ",[104,437,121],{}," results)\n",[54,440,441],{},[41,442,443],{},[104,444,445],{},"java -jar \"bfg.jar\" --replace-text \"gitter-android-bad-words.txt\"",[12,447,448,449,451],{},"After you think you removed all the secrets, it's best to run ",[104,450,121],{}," again just to make sure no secrets are leftover. 😉",[109,453,455],{"id":454},"make-it-public","Make it public",[12,457,458,459,462],{},"Now it's time to update your ",[104,460,461],{},"readme"," with some setup instruction so the community knows how to contribute.",[12,464,465,466,470,471,470,474,477,478,481,482,485,486,490],{},"This is the scary part 😅. Go to ",[467,468,469],"strong",{},"Project settings"," > ",[467,472,473],{},"General",[467,475,476],{},"Permissions"," > set ",[467,479,480],{},"Project visibility"," as ",[467,483,484],{},"Public",". You can read more about project access in the GitLab documentation.\nCurious about how to setup builds in GitLab CI? ",[16,487,489],{"href":488},"/blog/setting-up-gitlab-ci-for-android-projects/","Learn more from this blog post",", which was what we used to set it up for our projects.",[12,492,493,494,137],{},"You can even learn how we ",[16,495,497],{"href":496},"/blog/android-publishing-with-gitlab-and-fastlane/","automated the release process so we can publish straight to the Google Play Store from GitLab CI via fastlane 🚀",[77,499,32],{"id":500},"ios",[12,502,503,504,87,507,93],{},"If you want to see the full project and final result, you can check out the ",[16,505,86],{"href":30,"rel":506},[],[16,508,511],{"href":509,"rel":510},"https://twitter.com/gitchat/status/1041795909103898625",[],"open-sourced 2018-9-18",[12,513,514,515,518,519,522],{},"The same concepts apply from the Android section. We create a separate private project, ",[104,516,517],{},"gitter-ios-app2",", where we can work and later on, we can create the actual clean public project(",[104,520,521],{},"gitter-ios-app",") without any of the orphaned git references that could leak.",[109,524,112],{"id":525},"finding-secrets-1",[12,527,528,530],{},[104,529,121],{}," didn't work well in the iOS project because there was a bunch of generated XCode files that had file hashes (high entropy strings which truffleHog looks for) – which meant every commit was listed. 🤦‍ Instead of trying to find something to filter the results down or get another tool, I decided just search manually. Here is the list of things we looked for:",[54,532,533,538,543,548,553,558,563],{},[41,534,535],{},[104,536,537],{},"token",[41,539,540],{},[104,541,542],{},"secret",[41,544,545],{},[104,546,547],{},"key",[41,549,550],{},[104,551,552],{},"cert",[41,554,555],{},[104,556,557],{},"api",[41,559,560],{},[104,561,562],{},"pw",[41,564,565],{},[104,566,567],{},"password",[12,569,570,571,574,575],{},"I used this directory filter when ",[104,572,573],{},"Ctrl + f"," those strings above to avoid finding things outside of the repo itself (copy-paste for Atom editor): ",[104,576,577],{},"!Common/,!Libraries,!Gitter/www,!Pods/,!xctool",[109,579,158],{"id":580},"moving-secrets-to-untracked-config-1",[12,582,583,584,591],{},"The iOS app uses a few git sub-modules which we also had to check for secrets before making them public. It turned out only one of the sub-modules – ",[16,585,588],{"href":586,"rel":587},"https://gitlab.com/gitlab-org/gitter/troupeobjccommon",[],[104,589,590],{},"troupeobjccommon"," – had secrets of it's own so I ran through the same secret removal process.",[12,593,594,595,597,598,600],{},"We had the same OAuth secrets in the main part of the iOS app, but since ",[104,596,590],{}," was also trying to handle OAuth secret settings, we opted for putting the new logic in ",[104,599,590],{}," to avoid having to refactor whatever other downstream code that uses the same submodule (like the macOS desktop app).",[12,602,603],{},"Here are some articles around handling secrets in an iOS project,",[54,605,606,613],{},[41,607,608],{},[16,609,612],{"href":610,"rel":611},"https://medium.com/flawless-app-stories/secret-variables-in-xcode-and-your-ci-for-fun-and-profit-d387a50475d7",[],"Secret variables in Xcode AND your CI for fun and profit 💌",[41,614,615],{},[16,616,619],{"href":617,"rel":618},"https://medium.com/@jules2689/secrets-management-in-ios-applications-52795c254ec1",[],"Secrets Management in iOS Applications",[12,621,622,623,137],{},"Since iOS apps can only be built on macOS and we don't have any macOS GitLab CI runners, our solution doesn't have to be CI compatible. You can track ",[16,624,627],{"href":625,"rel":626},"https://gitlab.com/gitlab-com/gl-infra/infrastructure/issues/5720",[],"this issue for shared macOS GitLab CI runners",[12,629,630],{},[104,631,632],{},"Gitter/GitterSecrets-Dev.plist",[227,634,638],{"className":635,"code":636,"language":637,"meta":232,"style":232},"language-xml shiki shiki-themes github-light","\u003C?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\u003C!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n\u003Cplist version=\"1.0\">\n\u003Cdict>\n  \u003C!--\n  Visit https://developer.gitter.im/apps (sign in) and create a new app\n  Name: my-gitter-ios-app (can be anything)\n  Redirect URL: https://gitter.im/login/oauth/callback\n  -->\n  \u003Ckey>OAuthClientId\u003C/key>\n  \u003Cstring>\u003C/string>\n  \u003Ckey>OAuthClientSecret\u003C/key>\n  \u003Cstring>\u003C/string>\n  \u003Ckey>OAuthCallback\u003C/key>\n  \u003Cstring>https://gitter.im/login/oauth/callback\u003C/string>\n\u003C/dict>\n\u003C/plist>\n","xml",[104,639,640,668,683,700,709,714,719,725,731,737,752,767,781,794,808,822,832],{"__ignoreMap":232},[236,641,642,645,648,652,654,657,660,662,665],{"class":238,"line":239},[236,643,644],{"class":265},"\u003C?",[236,646,637],{"class":647},"shJU0",[236,649,651],{"class":650},"s7eDp"," version",[236,653,266],{"class":265},[236,655,656],{"class":269},"\"1.0\"",[236,658,659],{"class":650}," encoding",[236,661,266],{"class":265},[236,663,664],{"class":269},"\"UTF-8\"",[236,666,667],{"class":265},"?>\n",[236,669,670,673,676,680],{"class":238,"line":246},[236,671,672],{"class":265},"\u003C!",[236,674,675],{"class":261},"DOCTYPE",[236,677,679],{"class":678},"sYu0t"," plist",[236,681,682],{"class":265}," PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n",[236,684,685,688,691,693,695,697],{"class":238,"line":252},[236,686,687],{"class":265},"\u003C",[236,689,690],{"class":647},"plist",[236,692,651],{"class":650},[236,694,266],{"class":265},[236,696,656],{"class":269},[236,698,699],{"class":265},">\n",[236,701,702,704,707],{"class":238,"line":258},[236,703,687],{"class":265},[236,705,706],{"class":647},"dict",[236,708,699],{"class":265},[236,710,711],{"class":238,"line":273},[236,712,713],{"class":242},"  \u003C!--\n",[236,715,716],{"class":238,"line":283},[236,717,718],{"class":242},"  Visit https://developer.gitter.im/apps (sign in) and create a new app\n",[236,720,722],{"class":238,"line":721},7,[236,723,724],{"class":242},"  Name: my-gitter-ios-app (can be anything)\n",[236,726,728],{"class":238,"line":727},8,[236,729,730],{"class":242},"  Redirect URL: https://gitter.im/login/oauth/callback\n",[236,732,734],{"class":238,"line":733},9,[236,735,736],{"class":242},"  -->\n",[236,738,740,743,745,748,750],{"class":238,"line":739},10,[236,741,742],{"class":265},"  \u003C",[236,744,547],{"class":647},[236,746,747],{"class":265},">OAuthClientId\u003C/",[236,749,547],{"class":647},[236,751,699],{"class":265},[236,753,755,757,760,763,765],{"class":238,"line":754},11,[236,756,742],{"class":265},[236,758,759],{"class":647},"string",[236,761,762],{"class":265},">\u003C/",[236,764,759],{"class":647},[236,766,699],{"class":265},[236,768,770,772,774,777,779],{"class":238,"line":769},12,[236,771,742],{"class":265},[236,773,547],{"class":647},[236,775,776],{"class":265},">OAuthClientSecret\u003C/",[236,778,547],{"class":647},[236,780,699],{"class":265},[236,782,784,786,788,790,792],{"class":238,"line":783},13,[236,785,742],{"class":265},[236,787,759],{"class":647},[236,789,762],{"class":265},[236,791,759],{"class":647},[236,793,699],{"class":265},[236,795,797,799,801,804,806],{"class":238,"line":796},14,[236,798,742],{"class":265},[236,800,547],{"class":647},[236,802,803],{"class":265},">OAuthCallback\u003C/",[236,805,547],{"class":647},[236,807,699],{"class":265},[236,809,811,813,815,818,820],{"class":238,"line":810},15,[236,812,742],{"class":265},[236,814,759],{"class":647},[236,816,817],{"class":265},">https://gitter.im/login/oauth/callback\u003C/",[236,819,759],{"class":647},[236,821,699],{"class":265},[236,823,825,828,830],{"class":238,"line":824},16,[236,826,827],{"class":265},"\u003C/",[236,829,706],{"class":647},[236,831,699],{"class":265},[236,833,835,837,839],{"class":238,"line":834},17,[236,836,827],{"class":265},[236,838,690],{"class":647},[236,840,699],{"class":265},[12,842,843,848],{},[16,844,846],{"href":586,"rel":845},[],[104,847,590],{}," is in Objective-C",[12,850,851],{},[104,852,853],{},"TRAppSettings.h",[227,855,858],{"className":856,"code":857,"language":302,"meta":232},[300],"#import \u003CFoundation/Foundation.h>\n\n@interface TRAppSettings : NSObject\n\n+ (TRAppSettings *) sharedInstance;\n\n- (NSString *) clientID;\n\n- (NSString *) clientSecret;\n\n- (NSString *) oauthScope;\n\n@end\n",[104,859,857],{"__ignoreMap":232},[12,861,862],{},[104,863,864],{},"TRAppSettings.m",[227,866,870],{"className":867,"code":868,"language":869,"meta":232,"style":232},"language-objc shiki shiki-themes github-light","@interface TRAppSettings ()\n\n@property (strong, nonatomic) NSUserDefaults *secrets;\n\n@end\n\nstatic TRAppSettings *sharedAppSettingsSingleton;\n\n@implementation TRAppSettings {\n    int firstRunPostUpdate;\n}\n\n+ (void)initialize\n{\n    static BOOL initialized = NO;\n    if(!initialized)\n    {\n        initialized = YES;\n        sharedAppSettingsSingleton = [[TRAppSettings alloc] init];\n    }\n\n    NSLog(@\"Pulling secrets from SECRETS_PLIST = %@.plist\", SECRETS_PLIST);\n}\n\n+ (TRAppSettings *) sharedInstance\n{\n    return sharedAppSettingsSingleton;\n}\n\n- (id)init {\n    NSString *troupeSecretsPath = [[NSBundle mainBundle] pathForResource:\"GitterSecrets-Dev\" ofType:@\"plist\"];\n    if(troupeSecretsPath == nil) {\n        NSString *failureReason = [NSString stringWithFormat:@\"Gitter secrets file not found in bundle: %@.plist. You probably need to add it to the `Gitter/Supporting Files` in Xcode navigator\", SECRETS_PLIST];\n        NSException* exception = [NSException\n            exceptionWithName:@\"FileNotFoundException\"\n            reason:failureReason\n            userInfo:nil];\n\n        NSLog(@\"%@\", failureReason);\n\n        [exception raise];\n    }\n    NSDictionary *troupeSecrets = [NSDictionary dictionaryWithContentsOfFile:troupeSecretsPath];\n\n    self.secrets = [NSUserDefaults standardUserDefaults];\n    [self.secrets registerDefaults:troupeSecrets];\n}\n\n- (NSString *) clientID {\n    return [self.secrets stringForKey:@\"OAuthClientId\"];\n}\n\n- (NSString *) clientSecret {\n    return [self.secrets stringForKey:@\"OAuthClientSecret\"];\n}\n\n- (NSString *)oauthScope {\n    return [self.secrets stringForKey:@\"OAuthCallback\"];\n}\n","objc",[104,871,872,877,881,886,890,895,899,904,908,913,918,923,927,932,937,942,947,952,958,964,970,975,981,986,991,997,1002,1008,1013,1018,1024,1030,1036,1042,1048,1054,1060,1066,1071,1077,1082,1088,1093,1099,1104,1110,1116,1121,1126,1132,1138,1143,1148,1154,1160,1165,1170,1176,1182],{"__ignoreMap":232},[236,873,874],{"class":238,"line":239},[236,875,876],{},"@interface TRAppSettings ()\n",[236,878,879],{"class":238,"line":246},[236,880,328],{"emptyLinePlaceholder":327},[236,882,883],{"class":238,"line":252},[236,884,885],{},"@property (strong, nonatomic) NSUserDefaults *secrets;\n",[236,887,888],{"class":238,"line":258},[236,889,328],{"emptyLinePlaceholder":327},[236,891,892],{"class":238,"line":273},[236,893,894],{},"@end\n",[236,896,897],{"class":238,"line":283},[236,898,328],{"emptyLinePlaceholder":327},[236,900,901],{"class":238,"line":721},[236,902,903],{},"static TRAppSettings *sharedAppSettingsSingleton;\n",[236,905,906],{"class":238,"line":727},[236,907,328],{"emptyLinePlaceholder":327},[236,909,910],{"class":238,"line":733},[236,911,912],{},"@implementation TRAppSettings {\n",[236,914,915],{"class":238,"line":739},[236,916,917],{},"    int firstRunPostUpdate;\n",[236,919,920],{"class":238,"line":754},[236,921,922],{},"}\n",[236,924,925],{"class":238,"line":769},[236,926,328],{"emptyLinePlaceholder":327},[236,928,929],{"class":238,"line":783},[236,930,931],{},"+ (void)initialize\n",[236,933,934],{"class":238,"line":796},[236,935,936],{},"{\n",[236,938,939],{"class":238,"line":810},[236,940,941],{},"    static BOOL initialized = NO;\n",[236,943,944],{"class":238,"line":824},[236,945,946],{},"    if(!initialized)\n",[236,948,949],{"class":238,"line":834},[236,950,951],{},"    {\n",[236,953,955],{"class":238,"line":954},18,[236,956,957],{},"        initialized = YES;\n",[236,959,961],{"class":238,"line":960},19,[236,962,963],{},"        sharedAppSettingsSingleton = [[TRAppSettings alloc] init];\n",[236,965,967],{"class":238,"line":966},20,[236,968,969],{},"    }\n",[236,971,973],{"class":238,"line":972},21,[236,974,328],{"emptyLinePlaceholder":327},[236,976,978],{"class":238,"line":977},22,[236,979,980],{},"    NSLog(@\"Pulling secrets from SECRETS_PLIST = %@.plist\", SECRETS_PLIST);\n",[236,982,984],{"class":238,"line":983},23,[236,985,922],{},[236,987,989],{"class":238,"line":988},24,[236,990,328],{"emptyLinePlaceholder":327},[236,992,994],{"class":238,"line":993},25,[236,995,996],{},"+ (TRAppSettings *) sharedInstance\n",[236,998,1000],{"class":238,"line":999},26,[236,1001,936],{},[236,1003,1005],{"class":238,"line":1004},27,[236,1006,1007],{},"    return sharedAppSettingsSingleton;\n",[236,1009,1011],{"class":238,"line":1010},28,[236,1012,922],{},[236,1014,1016],{"class":238,"line":1015},29,[236,1017,328],{"emptyLinePlaceholder":327},[236,1019,1021],{"class":238,"line":1020},30,[236,1022,1023],{},"- (id)init {\n",[236,1025,1027],{"class":238,"line":1026},31,[236,1028,1029],{},"    NSString *troupeSecretsPath = [[NSBundle mainBundle] pathForResource:\"GitterSecrets-Dev\" ofType:@\"plist\"];\n",[236,1031,1033],{"class":238,"line":1032},32,[236,1034,1035],{},"    if(troupeSecretsPath == nil) {\n",[236,1037,1039],{"class":238,"line":1038},33,[236,1040,1041],{},"        NSString *failureReason = [NSString stringWithFormat:@\"Gitter secrets file not found in bundle: %@.plist. You probably need to add it to the `Gitter/Supporting Files` in Xcode navigator\", SECRETS_PLIST];\n",[236,1043,1045],{"class":238,"line":1044},34,[236,1046,1047],{},"        NSException* exception = [NSException\n",[236,1049,1051],{"class":238,"line":1050},35,[236,1052,1053],{},"            exceptionWithName:@\"FileNotFoundException\"\n",[236,1055,1057],{"class":238,"line":1056},36,[236,1058,1059],{},"            reason:failureReason\n",[236,1061,1063],{"class":238,"line":1062},37,[236,1064,1065],{},"            userInfo:nil];\n",[236,1067,1069],{"class":238,"line":1068},38,[236,1070,328],{"emptyLinePlaceholder":327},[236,1072,1074],{"class":238,"line":1073},39,[236,1075,1076],{},"        NSLog(@\"%@\", failureReason);\n",[236,1078,1080],{"class":238,"line":1079},40,[236,1081,328],{"emptyLinePlaceholder":327},[236,1083,1085],{"class":238,"line":1084},41,[236,1086,1087],{},"        [exception raise];\n",[236,1089,1091],{"class":238,"line":1090},42,[236,1092,969],{},[236,1094,1096],{"class":238,"line":1095},43,[236,1097,1098],{},"    NSDictionary *troupeSecrets = [NSDictionary dictionaryWithContentsOfFile:troupeSecretsPath];\n",[236,1100,1102],{"class":238,"line":1101},44,[236,1103,328],{"emptyLinePlaceholder":327},[236,1105,1107],{"class":238,"line":1106},45,[236,1108,1109],{},"    self.secrets = [NSUserDefaults standardUserDefaults];\n",[236,1111,1113],{"class":238,"line":1112},46,[236,1114,1115],{},"    [self.secrets registerDefaults:troupeSecrets];\n",[236,1117,1119],{"class":238,"line":1118},47,[236,1120,922],{},[236,1122,1124],{"class":238,"line":1123},48,[236,1125,328],{"emptyLinePlaceholder":327},[236,1127,1129],{"class":238,"line":1128},49,[236,1130,1131],{},"- (NSString *) clientID {\n",[236,1133,1135],{"class":238,"line":1134},50,[236,1136,1137],{},"    return [self.secrets stringForKey:@\"OAuthClientId\"];\n",[236,1139,1141],{"class":238,"line":1140},51,[236,1142,922],{},[236,1144,1146],{"class":238,"line":1145},52,[236,1147,328],{"emptyLinePlaceholder":327},[236,1149,1151],{"class":238,"line":1150},53,[236,1152,1153],{},"- (NSString *) clientSecret {\n",[236,1155,1157],{"class":238,"line":1156},54,[236,1158,1159],{},"    return [self.secrets stringForKey:@\"OAuthClientSecret\"];\n",[236,1161,1163],{"class":238,"line":1162},55,[236,1164,922],{},[236,1166,1168],{"class":238,"line":1167},56,[236,1169,328],{"emptyLinePlaceholder":327},[236,1171,1173],{"class":238,"line":1172},57,[236,1174,1175],{},"- (NSString *)oauthScope {\n",[236,1177,1179],{"class":238,"line":1178},58,[236,1180,1181],{},"    return [self.secrets stringForKey:@\"OAuthCallback\"];\n",[236,1183,1185],{"class":238,"line":1184},59,[236,1186,922],{},[12,1188,1189],{},"Usage in the Swift app:",[227,1191,1195],{"className":1192,"code":1193,"language":1194,"meta":232,"style":232},"language-swift shiki shiki-themes github-light","private let appSettings = TRAppSettings.sharedInstance()\n\nappSettings!.clientID()\nappSettings!.clientSecret()\nappSettings!.oauthScope()\n","swift",[104,1196,1197,1219,1223,1238,1251],{"__ignoreMap":232},[236,1198,1199,1202,1205,1208,1210,1213,1216],{"class":238,"line":239},[236,1200,1201],{"class":261},"private",[236,1203,1204],{"class":261}," let",[236,1206,1207],{"class":265}," appSettings ",[236,1209,266],{"class":261},[236,1211,1212],{"class":265}," TRAppSettings.",[236,1214,1215],{"class":678},"sharedInstance",[236,1217,1218],{"class":265},"()\n",[236,1220,1221],{"class":238,"line":246},[236,1222,328],{"emptyLinePlaceholder":327},[236,1224,1225,1228,1231,1233,1236],{"class":238,"line":252},[236,1226,1227],{"class":265},"appSettings",[236,1229,1230],{"class":261},"!",[236,1232,137],{"class":265},[236,1234,1235],{"class":678},"clientID",[236,1237,1218],{"class":265},[236,1239,1240,1242,1244,1246,1249],{"class":238,"line":258},[236,1241,1227],{"class":265},[236,1243,1230],{"class":261},[236,1245,137],{"class":265},[236,1247,1248],{"class":678},"clientSecret",[236,1250,1218],{"class":265},[236,1252,1253,1255,1257,1259,1262],{"class":238,"line":273},[236,1254,1227],{"class":265},[236,1256,1230],{"class":261},[236,1258,137],{"class":265},[236,1260,1261],{"class":678},"oauthScope",[236,1263,1218],{"class":265},[109,1265,1267],{"id":1266},"adding-in-gitlab-ci","Adding in GitLab CI",[12,1269,1270,1271,137],{},"If you're interested in setting up automated builds and publish releases to the Apple App Store from GitLab CI, you can learn how ",[16,1272,1274],{"href":1273},"/blog/ios-publishing-with-gitlab-and-fastlane/","blog post about using fastlane",[109,1276,384],{"id":1277},"removing-secrets-from-the-repo-history-1",[12,1279,1280,1281,1283],{},"We didn't have a complete picture of what to remove because ",[104,1282,121],{}," didn't work well, so we didn't use BFG Repo-Cleaner. To remove secrets from the git repo history, we just squashed all of the history into a single commit.",[77,1285,1287],{"id":1286},"life-after-open-sourcing-apps","Life after open sourcing apps",[12,1289,1290,1291,1296,1297,1302,1303,1308,1309,1316,1317,1324],{},"We have some ",[16,1292,1295],{"href":1293,"rel":1294},"https://gitlab.com/gitlab-org/gitter/webapp/issues/2281",[],"thoughts of deprecating the Android/iOS apps"," but the community has been great to keep the apps alive so far. We released a couple versions of each app including ",[16,1298,1301],{"href":1299,"rel":1300},"https://gitlab.com/gitlab-org/gitter/gitter-android-app/merge_requests/2",[],"dark theme"," and ",[16,1304,1307],{"href":1305,"rel":1306},"https://gitlab.com/gitlab-org/gitter/gitter-android-app/merge_requests/112",[],"GitLab sign-in"," for Android and a bunch of technical debt and fixes for iOS, including removing the deprecated ",[16,1310,1313],{"href":1311,"rel":1312},"https://gitlab.com/gitlab-org/gitter/gitter-ios-app/merge_requests/8",[],[104,1314,1315],{},"SlackTextViewController"," (and we are intensely working on incorporating the new ",[16,1318,1321],{"href":1319,"rel":1320},"https://goo.gl/7NDM3x",[],[104,1322,1323],{},"SlackWysiwygInputController"," 😜).",[12,1326,1327,1328,27,1331,1334],{},"The ",[16,1329,26],{"href":24,"rel":1330},[],[16,1332,32],{"href":30,"rel":1333},[]," apps could benefit from a lot of polish and fixes, so if you see anything particularly annoying, we would love to review and merge your updates!",[12,1336,1337,1338,1343,1344,137],{},"Cover image by ",[16,1339,1342],{"href":1340,"rel":1341},"https://unsplash.com/@natejohnston",[],"Nate Johnston"," on ",[16,1345,1348],{"href":1346,"rel":1347},"https://unsplash.com/photos/DkCydKeaLV8",[],"Unsplash",[1350,1351,1352],"style",{},"html pre.shiki code .sAwPA, html code.shiki .sAwPA{--shiki-default:#6A737D}html pre.shiki code .sD7c4, html code.shiki .sD7c4{--shiki-default:#D73A49}html pre.shiki code .sgsFI, html code.shiki .sgsFI{--shiki-default:#24292E}html pre.shiki code .sYBdl, html code.shiki .sYBdl{--shiki-default:#032F62}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 .shJU0, html code.shiki .shJU0{--shiki-default:#22863A}html pre.shiki code .s7eDp, html code.shiki .s7eDp{--shiki-default:#6F42C1}html pre.shiki code .sYu0t, html code.shiki .sYu0t{--shiki-default:#005CC5}",{"title":232,"searchDepth":246,"depth":246,"links":1354},[1355,1361,1367],{"id":79,"depth":246,"text":26,"children":1356},[1357,1358,1359,1360],{"id":111,"depth":252,"text":112},{"id":157,"depth":252,"text":158},{"id":383,"depth":252,"text":384},{"id":454,"depth":252,"text":455},{"id":500,"depth":246,"text":32,"children":1362},[1363,1364,1365,1366],{"id":525,"depth":252,"text":112},{"id":580,"depth":252,"text":158},{"id":1266,"depth":252,"text":1267},{"id":1277,"depth":252,"text":384},{"id":1286,"depth":246,"text":1287},"engineering","2019-11-22","Learn how we open sourced the Android and iOS Gitter apps.","md",null,false,"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749666717/Blog/Hero%20Images/cover-image.jpg",{},"/en-us/blog/open-sourcing-the-gitter-mobile-apps",{"title":5,"description":1370,"ogTitle":5,"ogDescription":1370,"noIndex":1373,"ogImage":1374,"ogUrl":1378,"ogSiteName":1379,"ogType":1380,"canonicalUrls":1378},"https://about.gitlab.com/blog/open-sourcing-the-gitter-mobile-apps","https://about.gitlab.com","article","open-sourcing-the-gitter-mobile-apps","en-us/blog/open-sourcing-the-gitter-mobile-apps",[1384,1385,1386,1387],"open source","collaboration","contributors","CI/CD","BlogPost","esqvSsDYiKW6kE2gixVrPzALekBIR0iH-7RZeZ3B0co",{"logo":1391,"freeTrial":1395,"sales":1400,"login":1405,"items":1410,"search":1745,"minimal":1777,"duo":1796,"switchNav":1805,"pricingDeployment":1816},{"config":1392},{"href":27,"dataGaName":1393,"dataGaLocation":1394},"gitlab logo","header",{"text":1396,"config":1397},"Get free trial",{"href":1398,"dataGaName":1399,"dataGaLocation":1394},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com&glm_content=default-saas-trial/","free trial",{"text":1401,"config":1402},"Request a demo",{"href":1403,"dataGaName":1404,"dataGaLocation":1394},"/request-a-demo/","sales",{"text":1406,"config":1407},"Sign in",{"href":1408,"dataGaName":1409,"dataGaLocation":1394},"https://gitlab.com/users/sign_in/","sign in",[1411,1496,1584,1589,1669,1723],{"text":1412,"left":327,"config":1413,"menu":1415},"Platform",{"dataNavLevelOne":1414},"platform",{"type":1416,"link":1417,"columns":1421,"feature":1485},"lists",{"text":1418,"config":1419},"Explore the Platform",{"href":1420,"dataGaName":1414,"dataGaLocation":1394},"/platform/",[1422,1444,1467],{"title":1423,"items":1424},"DevOps",[1425,1429,1434,1439],{"text":1387,"config":1426},{"href":1427,"dataGaLocation":1394,"dataGaName":1428},"/solutions/continuous-integration/","ci/cd",{"text":1430,"config":1431},"Source Code Management",{"href":1432,"dataGaLocation":1394,"dataGaName":1433},"/solutions/source-code-management/","source code management",{"text":1435,"config":1436},"Agile Delivery",{"href":1437,"dataGaLocation":1394,"dataGaName":1438},"/solutions/agile-delivery/","agile delivery",{"text":1440,"config":1441},"Artifact Management",{"href":1442,"dataGaLocation":1394,"dataGaName":1443},"/artifact-central/","artifact management",{"title":1445,"items":1446},"Security & Governance",[1447,1452,1457,1462],{"text":1448,"config":1449},"Application Security Testing",{"href":1450,"dataGaLocation":1394,"dataGaName":1451},"/solutions/application-security-testing/","application security testing",{"text":1453,"config":1454},"Governance & Compliance",{"href":1455,"dataGaLocation":1394,"dataGaName":1456},"/solutions/software-compliance/","governance and compliance",{"text":1458,"config":1459},"Secrets Management",{"href":1460,"dataGaLocation":1394,"dataGaName":1461},"/gitlab-secrets-manager/","secrets management",{"text":1463,"config":1464},"Supply Chain Security",{"href":1465,"dataGaLocation":1394,"dataGaName":1466},"/solutions/supply-chain/","supply chain security",{"title":1468,"items":1469},"Agentic AI & Context",[1470,1475,1480],{"text":1471,"config":1472},"Duo Agent Platform",{"href":1473,"dataGaLocation":1394,"dataGaName":1474},"/gitlab-duo-agent-platform/","duo agent platform",{"text":1476,"config":1477},"Orbit Context Graph",{"href":1478,"dataGaLocation":1394,"dataGaName":1479},"/gitlab-orbit/","orbit",{"text":1481,"config":1482},"Visibility & Measurement",{"href":1483,"dataGaLocation":1394,"dataGaName":1484},"/solutions/visibility-measurement/","visibility and measurement",{"config":1486,"title":1489,"text":1490,"link":1491},{"background":1487,"textColor":1488},"url('https://res.cloudinary.com/about-gitlab-com/image/upload/v1790185102/o7dn32anqcb6z8dgd3as.jpg')","#000","GitLab Orbit is generally available","Higher agent accuracy, lower token cost",{"text":1492,"config":1493},"Read the announcement",{"href":1494,"dataGaName":1495,"dataGaLocation":1394},"/blog/gitlab-orbit-ga/","orbit ga announcement",{"text":1497,"left":327,"config":1498,"menu":1500},"Solutions",{"dataNavLevelOne":1499},"solutions",{"type":1416,"link":1501,"columns":1505,"feature":1575},{"text":1502,"config":1503},"View all Solutions",{"href":1504,"dataGaName":1499,"dataGaLocation":1394},"/solutions/",[1506,1524,1542],{"title":1507,"items":1508},"Outcomes",[1509,1514,1519],{"text":1510,"config":1511},"DevOps Modernization",{"href":1512,"dataGaLocation":1394,"dataGaName":1513},"/assessments/devops-modernization-assessment/","devops modernization",{"text":1515,"config":1516},"Security Modernization",{"href":1517,"dataGaLocation":1394,"dataGaName":1518},"/assessments/security-modernization-assessment/","security modernization",{"text":1520,"config":1521},"AI Modernization",{"href":1522,"dataGaLocation":1394,"dataGaName":1523},"/assessments/ai-modernization-assessment/","ai modernization",{"title":1525,"items":1526},"By size",[1527,1532,1537],{"text":1528,"config":1529},"Enterprise",{"href":1530,"dataGaLocation":1394,"dataGaName":1531},"/enterprise/","enterprise",{"text":1533,"config":1534},"Small Business",{"href":1535,"dataGaLocation":1394,"dataGaName":1536},"/small-business/","small business",{"text":1538,"config":1539},"Startups",{"href":1540,"dataGaLocation":1394,"dataGaName":1541},"/solutions/startups/","startups",{"title":1543,"items":1544},"Industries",[1545,1550,1555,1560,1565,1570],{"text":1546,"config":1547},"Financial Services",{"href":1548,"dataGaLocation":1394,"dataGaName":1549},"/solutions/finance/","financial services",{"text":1551,"config":1552},"Public Sector",{"href":1553,"dataGaLocation":1394,"dataGaName":1554},"/solutions/public-sector/","public sector",{"text":1556,"config":1557},"Telecommunications",{"href":1558,"dataGaLocation":1394,"dataGaName":1559},"/solutions/telecommunications/","telecommunications",{"text":1561,"config":1562},"Automotive",{"href":1563,"dataGaLocation":1394,"dataGaName":1564},"/solutions/automotive/","automotive",{"text":1566,"config":1567},"Education",{"href":1568,"dataGaLocation":1394,"dataGaName":1569},"/solutions/education/","education",{"text":1571,"config":1572},"Aerospace",{"href":1573,"dataGaLocation":1394,"dataGaName":1574},"/solutions/aerospace/","aerospace",{"config":1576,"title":1577,"text":1578,"link":1579},{"background":1487,"textColor":1488},"GitLab Security Standard","Learn how to harden your software factory and let AI agents earn autonomy, without trading away security.",{"text":1580,"config":1581},"Explore the standard",{"href":1582,"dataGaName":1583,"dataGaLocation":1394},"/gitlab-security-standard/","gitlab security standard",{"text":1585,"config":1586},"Pricing",{"href":1587,"dataGaName":1588,"dataGaLocation":1394,"dataNavLevelOne":1588},"/pricing/","pricing",{"text":1590,"config":1591,"menu":1593},"Resources",{"dataNavLevelOne":1592},"resources",{"type":1416,"link":1594,"columns":1598,"feature":1660},{"text":1595,"config":1596},"View all resources",{"href":1597,"dataGaName":1592,"dataGaLocation":1394},"/resources/",[1599,1632],{"title":1600,"items":1601},"Discover",[1602,1607,1612,1617,1622,1627],{"text":1603,"config":1604},"Docs",{"href":1605,"dataGaName":1606,"dataGaLocation":1394},"https://docs.gitlab.com/","docs",{"text":1608,"config":1609},"University",{"href":1610,"dataGaName":1611,"dataGaLocation":1394},"https://university.gitlab.com/","university",{"text":1613,"config":1614},"Demo Series",{"href":1615,"dataGaName":1616,"dataGaLocation":1394},"/gitlab-technical-demo-series/","demo series",{"text":1618,"config":1619},"Demo Hub",{"href":1620,"dataGaName":1621,"dataGaLocation":1394},"/demo-hub/","demo hub",{"text":1623,"config":1624},"Services",{"href":1625,"dataGaName":1626,"dataGaLocation":1394},"/services/","services",{"text":1628,"config":1629},"Well Architected",{"href":1630,"dataGaName":1631,"dataGaLocation":1394},"/resources/well-architected/","well architected",{"title":1633,"items":1634},"Connect",[1635,1640,1645,1650,1655],{"text":1636,"config":1637},"Blog",{"href":1638,"dataGaName":1639,"dataGaLocation":1394},"/blog/","blog",{"text":1641,"config":1642},"Community",{"href":1643,"dataGaName":1644,"dataGaLocation":1394},"/community/","community",{"text":1646,"config":1647},"Customers",{"href":1648,"dataGaName":1649,"dataGaLocation":1394},"/customers/","customers",{"text":1651,"config":1652},"Partners",{"href":1653,"dataGaName":1654,"dataGaLocation":1394},"/partners/","partners",{"text":1656,"config":1657},"Events",{"href":1658,"dataGaName":1659,"dataGaLocation":1394},"/events/","events",{"config":1661,"title":1662,"text":1663,"link":1664},{"background":1487,"textColor":1488},"What’s new in GitLab","Stay updated with our latest features and improvements.",{"text":1665,"config":1666},"Read the latest",{"href":1667,"dataGaName":1668,"dataGaLocation":1394},"/whats-new/","whats new",{"text":1670,"config":1671,"menu":1673},"Company",{"dataNavLevelOne":1672},"company",{"type":1416,"columns":1674},[1675],{"items":1676},[1677,1682,1688,1693,1698,1703,1708,1713,1718],{"text":1678,"config":1679},"About",{"href":1680,"dataGaName":1681,"dataGaLocation":1394},"/company/","about",{"text":1683,"config":1684,"footerGa":1687},"Jobs",{"href":1685,"dataGaName":1686,"dataGaLocation":1394},"/jobs/","jobs",{"dataGaName":1686},{"text":1689,"config":1690},"Press",{"href":1691,"dataGaName":1692,"dataGaLocation":1394},"/press/","press",{"text":1694,"config":1695},"Handbook",{"href":1696,"dataGaName":1697,"dataGaLocation":1394},"https://handbook.gitlab.com/","handbook",{"text":1699,"config":1700},"Leadership",{"href":1701,"dataGaName":1702,"dataGaLocation":1394},"/company/team/e-group/","leadership",{"text":1704,"config":1705},"Investor relations",{"href":1706,"dataGaName":1707,"dataGaLocation":1394},"https://ir.gitlab.com/overview/default.aspx","investor relations",{"text":1709,"config":1710},"Trust Center",{"href":1711,"dataGaName":1712,"dataGaLocation":1394},"/security/","trust center",{"text":1714,"config":1715},"AI Transparency Center",{"href":1716,"dataGaName":1717,"dataGaLocation":1394},"/ai-transparency-center/","ai transparency center",{"text":1719,"config":1720},"Newsletter",{"href":1721,"dataGaName":1722,"dataGaLocation":1394},"/company/contact/#contact-forms","newsletter",{"text":1724,"config":1725,"menu":1726},"Contact us",{"dataNavLevelOne":1672},{"type":1416,"columns":1727},[1728],{"items":1729},[1730,1735,1740],{"text":1731,"config":1732},"Talk to sales",{"href":1733,"dataGaName":1734,"dataGaLocation":1394},"/sales/","talk to sales",{"text":1736,"config":1737},"Support portal",{"href":1738,"dataGaName":1739,"dataGaLocation":1394},"https://support.gitlab.com/hc/en-us","support portal",{"text":1741,"config":1742},"Customer portal",{"href":1743,"dataGaName":1744,"dataGaLocation":1394},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":1746,"login":1747,"suggestions":1754},"Close",{"text":1748,"link":1749},"To search repositories and projects, login to",{"text":1750,"config":1751},"gitlab.com",{"href":1408,"dataGaName":1752,"dataGaLocation":1753},"search login","search",{"text":1755,"default":1756},"Suggestions",[1757,1760,1763,1765,1769,1773],{"text":1758,"config":1759},"GitLab Duo Agent Platform",{"href":1473,"dataGaName":1758,"dataGaLocation":1753},{"text":1761,"config":1762},"Code Suggestions (AI)",{"href":1473,"dataGaName":1761,"dataGaLocation":1753},{"text":1387,"config":1764},{"href":1427,"dataGaName":1387,"dataGaLocation":1753},{"text":1766,"config":1767},"GitLab on AWS",{"href":1768,"dataGaName":1766,"dataGaLocation":1753},"/partners/technology-partners/aws/",{"text":1770,"config":1771},"GitLab on Google Cloud",{"href":1772,"dataGaName":1770,"dataGaLocation":1753},"/partners/technology-partners/google-cloud-platform/",{"text":1774,"config":1775},"Why GitLab?",{"href":1776,"dataGaName":1774,"dataGaLocation":1753},"/why-gitlab/",{"freeTrial":1778,"mobileIcon":1783,"desktopIcon":1788,"secondaryButton":1791},{"text":1779,"config":1780},"Start free trial",{"href":1781,"dataGaName":1399,"dataGaLocation":1782},"https://gitlab.com/-/trials/new/","nav",{"altText":1784,"config":1785},"Gitlab Icon",{"src":1786,"dataGaName":1787,"dataGaLocation":1782},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":1784,"config":1789},{"src":1790,"dataGaName":1787,"dataGaLocation":1782},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":1792,"config":1793},"Get Started",{"href":1794,"dataGaName":1795,"dataGaLocation":1782},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/get-started/","get started",{"freeTrial":1797,"mobileIcon":1801,"desktopIcon":1803},{"text":1798,"config":1799},"Learn more about GitLab Duo",{"href":1473,"dataGaName":1800,"dataGaLocation":1782},"gitlab duo",{"altText":1784,"config":1802},{"src":1786,"dataGaName":1787,"dataGaLocation":1782},{"altText":1784,"config":1804},{"src":1790,"dataGaName":1787,"dataGaLocation":1782},{"button":1806,"mobileIcon":1811,"desktopIcon":1813},{"text":1807,"config":1808},"/switch",{"href":1809,"dataGaName":1810,"dataGaLocation":1782},"#contact","switch",{"altText":1784,"config":1812},{"src":1786,"dataGaName":1787,"dataGaLocation":1782},{"altText":1784,"config":1814},{"src":1815,"dataGaName":1787,"dataGaLocation":1782},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":1817,"mobileIcon":1822,"desktopIcon":1824},{"text":1818,"config":1819},"Back to pricing",{"href":1587,"dataGaName":1820,"dataGaLocation":1782,"icon":1821},"back to pricing","GoBack",{"altText":1784,"config":1823},{"src":1786,"dataGaName":1787,"dataGaLocation":1782},{"altText":1784,"config":1825},{"src":1790,"dataGaName":1787,"dataGaLocation":1782},{"title":1827,"button":1828,"config":1832},"GitLab Orbit is generally available. Increase agent accuracy and lower token cost",{"text":1492,"config":1829},{"href":1494,"dataGaName":1830,"dataGaLocation":1831},"orbit-ga-banner","global-banner",{"layout":1833,"disabled":1373},"release",{"data":1835},{"text":1836,"config":1837,"items":1842,"minimal":2070},"Git is a trademark of Software Freedom Conservancy and our use of 'GitLab' is under license",{"twitter":1838,"facebook":1839,"youtube":1840,"linkedin":1841},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[1843,1891,1950,1997,2038],{"title":1585,"links":1844,"subMenu":1860},[1845,1850,1855],{"text":1846,"config":1847},"View plans",{"href":1587,"dataGaName":1848,"dataGaLocation":1849},"view plans","footer",{"text":1851,"config":1852},"Why Premium?",{"href":1853,"dataGaName":1854,"dataGaLocation":1849},"/pricing/premium/","why premium",{"text":1856,"config":1857},"Why Ultimate?",{"href":1858,"dataGaName":1859,"dataGaLocation":1849},"/pricing/ultimate/","why ultimate",[1861],{"title":1862,"links":1863},"Contact Us",[1864,1867,1869,1871,1876,1881,1886],{"text":1865,"config":1866},"Contact sales",{"href":1733,"dataGaName":1404,"dataGaLocation":1849},{"text":1736,"config":1868},{"href":1738,"dataGaName":1739,"dataGaLocation":1849},{"text":1741,"config":1870},{"href":1743,"dataGaName":1744,"dataGaLocation":1849},{"text":1872,"config":1873},"Status",{"href":1874,"dataGaName":1875,"dataGaLocation":1849},"https://status.gitlab.com/","status",{"text":1877,"config":1878},"Terms of use",{"href":1879,"dataGaName":1880,"dataGaLocation":1849},"/terms/","terms of use",{"text":1882,"config":1883},"Privacy statement",{"href":1884,"dataGaName":1885,"dataGaLocation":1849},"/privacy/","privacy statement",{"text":1887,"config":1888},"Cookie preferences",{"dataGaName":1889,"dataGaLocation":1849,"id":1890,"isOneTrustButton":327},"cookie preferences","ot-sdk-btn",{"title":1412,"links":1892,"subMenu":1908},[1893,1896,1898,1900,1902,1904],{"text":1894,"config":1895},"Explore the platform",{"href":1420,"dataGaName":1414,"dataGaLocation":1849},{"text":1471,"config":1897},{"href":1473,"dataGaName":1474,"dataGaLocation":1849},{"text":1387,"config":1899},{"href":1427,"dataGaName":1428,"dataGaLocation":1849},{"text":1476,"config":1901},{"href":1478,"dataGaName":1479,"dataGaLocation":1849},{"text":1458,"config":1903},{"href":1460,"dataGaName":1461,"dataGaLocation":1849},{"text":1905,"config":1906},"Why GitLab",{"href":1776,"dataGaName":1907,"dataGaLocation":1849},"why gitlab",[1909],{"title":1910,"links":1911},"Topics",[1912,1916,1921,1925,1930,1935,1940,1945],{"text":1387,"config":1913},{"href":1914,"dataGaName":1915,"dataGaLocation":1849},"/topics/ci-cd/","cicd",{"text":1917,"config":1918},"GitOps",{"href":1919,"dataGaName":1920,"dataGaLocation":1849},"/topics/gitops/","gitops",{"text":1423,"config":1922},{"href":1923,"dataGaName":1924,"dataGaLocation":1849},"/topics/devops/","devops",{"text":1926,"config":1927},"Version Control",{"href":1928,"dataGaName":1929,"dataGaLocation":1849},"/topics/version-control/","version control",{"text":1931,"config":1932},"DevSecOps",{"href":1933,"dataGaName":1934,"dataGaLocation":1849},"/topics/devsecops/","devsecops",{"text":1936,"config":1937},"Cloud Native",{"href":1938,"dataGaName":1939,"dataGaLocation":1849},"/topics/cloud-native/","cloud native",{"text":1941,"config":1942},"AI for Coding",{"href":1943,"dataGaName":1944,"dataGaLocation":1849},"/topics/devops/ai-for-coding/","ai for coding",{"text":1946,"config":1947},"Agentic AI",{"href":1948,"dataGaName":1949,"dataGaLocation":1849},"/topics/agentic-ai/","agentic ai",{"title":1497,"links":1951},[1952,1955,1958,1961,1964,1967,1969,1971,1973,1975,1977,1980,1982,1985,1989,1993],{"text":1953,"config":1954},"DevOps modernization",{"href":1512,"dataGaName":1513,"dataGaLocation":1849},{"text":1956,"config":1957},"Security modernization",{"href":1517,"dataGaName":1518,"dataGaLocation":1849},{"text":1959,"config":1960},"AI modernization",{"href":1522,"dataGaName":1523,"dataGaLocation":1849},{"text":1962,"config":1963},"Financial services",{"href":1548,"dataGaName":1549,"dataGaLocation":1849},{"text":1965,"config":1966},"Public sector",{"href":1553,"dataGaName":1554,"dataGaLocation":1849},{"text":1556,"config":1968},{"href":1558,"dataGaName":1559,"dataGaLocation":1849},{"text":1561,"config":1970},{"href":1563,"dataGaName":1564,"dataGaLocation":1849},{"text":1566,"config":1972},{"href":1568,"dataGaName":1569,"dataGaLocation":1849},{"text":1571,"config":1974},{"href":1573,"dataGaName":1574,"dataGaLocation":1849},{"text":1528,"config":1976},{"href":1530,"dataGaName":1531,"dataGaLocation":1849},{"text":1978,"config":1979},"Small business",{"href":1535,"dataGaName":1536,"dataGaLocation":1849},{"text":1538,"config":1981},{"href":1540,"dataGaName":1541,"dataGaLocation":1849},{"text":1917,"config":1983},{"href":1984,"dataGaName":1920,"dataGaLocation":1849},"/solutions/gitops/",{"text":1986,"config":1987},"Software composition analysis",{"href":1465,"dataGaName":1988,"dataGaLocation":1849},"software composition analysis",{"text":1990,"config":1991},"Value stream management",{"href":1483,"dataGaName":1992,"dataGaLocation":1849},"value stream management",{"text":1994,"config":1995},"All solutions",{"href":1504,"dataGaName":1996,"dataGaLocation":1849},"all solutions",{"title":1590,"links":1998},[1999,2004,2009,2011,2013,2015,2017,2019,2021,2023,2025,2027,2029,2031,2034],{"text":2000,"config":2001},"Install",{"href":2002,"dataGaName":2003,"dataGaLocation":1849},"/install/","install",{"text":2005,"config":2006},"Quick start guides",{"href":2007,"dataGaName":2008,"dataGaLocation":1849},"/get-started/","quick setup checklists",{"text":1603,"config":2010},{"href":1605,"dataGaName":1606,"dataGaLocation":1849},{"text":1608,"config":2012},{"href":1610,"dataGaName":1611,"dataGaLocation":1849},{"text":1613,"config":2014},{"href":1615,"dataGaName":1616,"dataGaLocation":1849},{"text":1618,"config":2016},{"href":1620,"dataGaName":1621,"dataGaLocation":1849},{"text":1623,"config":2018},{"href":1625,"dataGaName":1626,"dataGaLocation":1849},{"text":1636,"config":2020},{"href":1638,"dataGaName":1639,"dataGaLocation":1849},{"text":1641,"config":2022},{"href":1643,"dataGaName":1644,"dataGaLocation":1849},{"text":1646,"config":2024},{"href":1648,"dataGaName":1649,"dataGaLocation":1849},{"text":1651,"config":2026},{"href":1653,"dataGaName":1654,"dataGaLocation":1849},{"text":1656,"config":2028},{"href":1658,"dataGaName":1659,"dataGaLocation":1849},{"text":1719,"config":2030},{"href":1721,"dataGaName":1722,"dataGaLocation":1849},{"text":2032,"config":2033},"What's new",{"href":1667,"dataGaName":1668,"dataGaLocation":1849},{"text":2035,"config":2036},"All resources",{"href":1597,"dataGaName":2037,"dataGaLocation":1849},"all resources",{"title":1670,"links":2039},[2040,2042,2044,2046,2048,2050,2052,2054,2056,2060,2065],{"text":1678,"config":2041},{"href":1680,"dataGaName":1672,"dataGaLocation":1849},{"text":1683,"config":2043},{"href":1685,"dataGaName":1686,"dataGaLocation":1849},{"text":1689,"config":2045},{"href":1691,"dataGaName":1692,"dataGaLocation":1849},{"text":1694,"config":2047},{"href":1696,"dataGaName":1697,"dataGaLocation":1849},{"text":1699,"config":2049},{"href":1701,"dataGaName":1702,"dataGaLocation":1849},{"text":1704,"config":2051},{"href":1706,"dataGaName":1707,"dataGaLocation":1849},{"text":1709,"config":2053},{"href":1711,"dataGaName":1712,"dataGaLocation":1849},{"text":1714,"config":2055},{"href":1716,"dataGaName":1717,"dataGaLocation":1849},{"text":2057,"config":2058},"Sustainability",{"href":2059,"dataGaName":2057,"dataGaLocation":1849},"/sustainability/",{"text":2061,"config":2062},"Diversity, inclusion and belonging (DIB)",{"href":2063,"dataGaName":2064,"dataGaLocation":1849},"/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":2066,"config":2067},"Modern Slavery Transparency Statement",{"href":2068,"dataGaName":2069,"dataGaLocation":1849},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":2071},[2072,2075,2078],{"text":2073,"config":2074},"Terms",{"href":1879,"dataGaName":1880,"dataGaLocation":1849},{"text":2076,"config":2077},"Cookies",{"dataGaName":1889,"dataGaLocation":1849,"id":1890,"isOneTrustButton":327},{"text":2079,"config":2080},"Privacy",{"href":1884,"dataGaName":1885,"dataGaLocation":1849},[2082],{"id":2083,"title":7,"body":1372,"config":2084,"content":2086,"description":1372,"extension":2089,"meta":2090,"navigation":327,"path":2091,"seo":2092,"stem":2093,"__hash__":2094},"blogAuthors/en-us/blog/authors/eric-eastwood.yml",{"template":2085},"BlogAuthor",{"name":7,"config":2087},{"headshot":232,"ctfId":2088},"MadLittleMods","yml",{},"/en-us/blog/authors/eric-eastwood",{},"en-us/blog/authors/eric-eastwood","3GY5NqxW7tQ8UAQZ6F5lUcRr_K1vdp-6xP1nVi6jI4I",[2096,2104,2112],{"title":2097,"description":2098,"heroImage":2099,"category":1368,"date":2100,"authors":2101,"slug":2103,"externalUrl":1372},"Two front doors: Module-level access in a Django GRC app","A technical deep-dive on restructuring a Django internal tool to support two distinct GitLab teams: Security Compliance and Internal Audit.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1750097663/Blog/Hero%20Images/Blog/Hero%20Images/Workflow%201800x945_2gQoQIbY9NvjLFpXtsxtXy_1750097663612.png","2026-10-05",[2102],"Donovan Felton","module-level-access-in-a-django-grc-app",{"title":2105,"description":2106,"heroImage":2107,"category":1368,"date":2108,"authors":2109,"slug":2111,"externalUrl":1372},"How GitLab reduced code-per-agentic-flow ratio by 45%","Learn how Flow Registry, a component-based framework that compiles YAML configurations into fully functional LangGraph flows, helped improve scalability and more.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1774465167/n5hlvrsrheadeccyr1oz.png","2026-09-22",[2110],"Mikolaj Wawrzyniak","how-gitlab-reduced-code-per-agentic-flow-ratio",{"title":2113,"description":2114,"heroImage":2115,"category":1368,"date":2116,"authors":2117,"slug":2119,"externalUrl":1372},"Co-Create: Building GitLab with our users","How GitLab users collaborated with us to build practical product improvements in the first half of 2026.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1750099203/Blog/Hero%20Images/Blog/Hero%20Images/blog-image-template-1800x945%20%2820%29_2bJGC5ZP3WheoqzlLT05C5_1750099203484.png","2026-09-10",[2118],"Isa Huerga","co-create-h1-2026",{"header":2121,"text":2122,"button":2126,"disclaimer":2129},"Start your free\n\n30-day GitLab trial\n",[2123,2124,2125],"GitLab Duo Agent Platform access","Try our most advanced features","Automate complex tasks with AI",{"text":1396,"config":2127},{"href":2128,"dataGaName":1399,"dataGaLocation":1639},"https://gitlab.com/-/trials/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/blog/","No credit card required.",{"header":2131,"blurb":2132,"button":2133,"secondaryButton":2138},"Start building faster today","See what your team can do with the intelligent orchestration platform for DevSecOps.\n",{"text":2134,"config":2135},"Get your free trial",{"href":2136,"dataGaName":1399,"dataGaLocation":2137},"https://gitlab.com/-/trial_registrations/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/","feature",{"text":1865,"config":2139},{"href":1733,"dataGaName":1404,"dataGaLocation":2137},1794911790879]