Atlassian Connect は 1月31日に終了: Localhost で Forge Remote バックエンドを実行する
Atlassian Connect のサポートは 2027年1月31日に終了します。localhost で安定したサブドメインを使って Forge Remote バックエンドを実行し、Forge Invocation Token(FIT)を検証してください。

Quick answer
Atlassian Connect は 1月31日に終了: Localhost で Forge Remote: localhost tunnel answer
A localhost tunnel gives your local app a public HTTPS URL without opening router ports, which is useful for demos, QA, mobile testing, and provider callbacks.
How do I expose localhost without opening ports?
Use a reverse HTTPS tunnel. Your machine connects outbound to the tunnel service, and the public URL forwards requests back to your local app.
When should I use a localhost tunnel?
Use one for webhook testing, OAuth callbacks, client demos, QA previews, mobile device checks, and short-lived development reviews.
Atlassian は Connect のサポート終了日を 2026年12月から 2027年1月31日へ移動しました。 拡張は 2026年8月3日に発表されました パートナーと開発者が休暇や年次計画を考慮するための時間を確保するためです。12月5日時点で、残りは57日です。
If your Connect app has a real backend, you don’t have to rewrite it as Forge functions to move. Forge Remote は Forge アプリが自分の HTTPS サービスを呼び出せるようにします。開発上の難点は、Forge が Atlassian のクラウドで動作し、あなたのサーバーが localhost で動作することです。
このガイドはローカルループを扱います:安定した公開 URL、マニフェスト、Forge Invocation Token(FIT)の検証、そして移行中に現れる落とし穴です。
2027年1月31日には何が起こるか
“Connect ends” とは サポート の終了を意味します。 Atlassian は、すべての Connect アプリがその日で停止することを公式に発表していません。 Atlassian の readiness post によれば、その日以降は以下のとおりです:
- 重大なセキュリティ脆弱性のみ対応されます。
- サポート SLAs は緩和されます。
- Connect はプラットフォームの進化とともに発展を止めます。
- 機能は告知期間が大幅に短くなる形で非推奨化および削除されることがあります。
- 障害はより頻繁になり、事前通知なしに動作を停止するアプリも出てくるでしょう。
すでにいくつかの以前のマイルストーンは過ぎています。Marketplace は 2025年9月に新しい Connect アプリの受け付けを停止し、2026年3月以降は Connect ディスクリプタを持つアプリもアップデートを受けられなくなりました。この記事は Jira と Confluence を扱っています。 Bitbucket には独自のガイダンスがあります。
さらに近い日付もあります。11月30日、Atlassian は Developer Canary サイトで製品内のサポート終了メッセージのプレビューを開始し、1週間後に本番展開を開始すると発表しました。展開は段階的で、12月中まで継続します。これには、移行意図を NO または UNDECIDED と宣言した Connect モジュールを持つアプリが対象で、何も宣言していない場合も含まれます。顧客は1月より前にアプリ内で警告を目にすることがあるでしょう。
Atlassian は、サポート日以降の Connect の動作についても今後さらに共有する予定だと述べているため、顧客へ約束をする前に更新情報を確認してください。
Forge Remote は Connect 移行における位置づけ
移行は一般的に3つのステップで実行されます。
1. ディスクリプタの変換。 Atlassian のツールは atlassian-connect.json を Forge の manifest.yml に変換します。既存のモジュールは connectModules セクションへ移動します:
npx @atlassian/connect-to-forge@latest convert \
--type jira \
--url https://example.com/atlassian-connect.json
Confluence 用には --type confluence を使用し、--url を本番ディスクリプタへ指し示します。
2. 移行計画を公開する。 connectToForgeMigration モジュール:
modules:
connectToForgeMigration:
- key: migration-declaration
migrationGuideUrl: https://example.com/forge-migration-plan
willMigrateToForgeBeforeEOS: UNDECIDED
受け入れられる値は YES、NO、UNDECIDED の3つです。YES を設定すると、1月31日以前には製品内のメッセージは表示されませんが、Connected Apps の管理ページには通知が表示されます。本気で意味するときだけ YES を宣言してください。
3. モジュールを段階的に置換する。 Connect モジュールを Forge モジュールにファミリーごとに1つずつ置き換えます。
Forge Remote は、アプリに複雑なバックエンド、外部サービス、または特殊なインフラがある場合に有用です。Atlassian はこれを実務的な第一歩、または長期的なアーキテクチャと説明しています。
トレードオフがあります。 Atlassian で実行 はアプリが Atlassian が提供する計算リソースとストレージを排他的に使用し、データ出力を制限することを意味します。そのためリモートバックのアプリが適合しない場合があります。データの居住性を固定することはまだ可能ですが、バックエンドが保存するデータと [どう宣言するか] に依存します。あなたはリクエストの認証と顧客データの取り扱いについて、より多くの責任を負うことになります。
なぜ localhost はリモートとして機能しないのか
リモートは baseUrl で宣言され、Forge は Atlassian のプラットフォームからそれにリクエストを送信します。http://localhost:3000 はそこから到達不能です。これを試した開発者の一人は デプロイ時のコンテンツセキュリティとデータ送出エラーを報告しました。
forge tunnel はこれを自体で解決しません。 Forge アプリのコードをローカルで実行します、Cloudflare を使ってリクエストをあなたのマシンにルーティングします。別個のリモートサービスはまだ公開 HTTPS アドレスを必要とします。
| What you’re developing | How Atlassian reaches it |
|---|---|
| Forge 関数および UI リソース | forge tunnel |
| あなたのリモートバックエンド | ローカルポートへ公開された HTTPS トンネル |
アプリに Forge 関数がなく、UI がすでに構築・デプロイされている場合は、2番目だけが必要になることがあります。
Step 1: 安定した HTTPS サブドメインを取得
ランダムなトンネル URL は Forge に不向きです。リモートのアドレスはマニフェストにあり、既存のリモートの baseUrl を変更するとデプロイ時にメジャーバージョンのアップグレードが発生します 。毎回再起動するたびに URL が変わると、再デプロイとインストールのアップグレードを繰り返すことになります。
1つの名前を選んで使い続けてください。例えば InstaTunnel を使うと:
npm install -g instatunnel
instatunnel auth login -e you@example.com
instatunnel auth set-key "it_your_api_key"
instatunnel 3000 --subdomain acme-forge-dev
これにより、ローカルポート 3000 が https://acme-forge-dev.instatunnel.my で提供されます。名前はプレースホルダなので、好きな名前を選んでください。
執筆時点で、フリープラン はカスタムサブドメイン、24時間セッション、同時に3本のトンネル、月間 2 GB のデータ、1日あたり 2,000 件のリクエストを含みます。リクエストログは Pro 機能です。無料セッションが終了したら、同じ --subdomain で再起動してマニフェストが有効な状態を保ちます。安定した HTTPS ホスト名を提供するトンネルであれば、このガイドの他の部分でも機能します。
各開発者に別々のサブドメイン と 別々の Forge 開発環境 を割り当ててください。URL はデプロイ済みマニフェストの一部なので、1つの共有環境に2人がデプロイすると、互いのノートパソコンへ再度指し直すことになります。
Step 2: マニフェストをトンネルに向ける
チームで共有するファイルに個人のトンネル URL をハードコーディングしないでください。Forge はデフォルトを持つ マニフェスト変数 をサポートします。
この断片は Jira の課題パネルと課題作成イベントを1つのリモートに接続します。既存のマニフェストにマージしてください:
environment:
variables:
- key: REMOTE_BASE_URL
default: https://api.example.com
modules:
jira:issuePanel:
- key: acme-panel
title: Acme
resource: main
resolver:
endpoint: panel-endpoint
trigger:
- key: issue-created
events:
- avi:jira:created:issue
endpoint: event-endpoint
endpoint:
- key: panel-endpoint
remote: backend
- key: event-endpoint
remote: backend
route:
path: /events/issue-created
resources:
- key: main
path: static/panel/build
remotes:
- key: backend
baseUrl: ${REMOTE_BASE_URL}
operations:
- compute
permissions:
scopes:
- read:jira-work
チェーンはモジュール → エンドポイント → リモートの順です。UI はフロントエンドのコード内で自分の経路を選択し、トリガーはエンドポイントの route.path を使用します。
開発環境へデプロイします(作成した環境名を自分のものと置き換えてください):
export REMOTE_BASE_URL=https://acme-forge-dev.instatunnel.my
forge deploy -e development
forge install -e development
アプリがすでにサイトにインストールされている場合は、代わりに forge install --upgrade -e development を実行します。
ここでは4つの詳細が重要です:
- マニフェスト変数は CLI によって解決されます。 アプリのコードは実行時にそれらを読むことができず、
forge variables setでは埋め込めません。 - デプロイ前にシェルを確認してください。 エクスポートされた値はデフォルトを上書きしますので、
REMOTE_BASE_URLが残っていると本番デプロイがノートパソコンを指すことがあります。CIで明示的に設定してください。 - データ処理を正直に宣言してください。
computeはデータを処理するが保存しないことを意味します。バックエンドがデータを保存する場合はstorage操作を追加し、storage.inScopeEUDを適切に設定してください。operationsをまったく省略した場合、Forge はエンドユーザーデータをリモートで保存すると見なします。 - CLI を最新に保つ。 Forge CLI 13.3.0 は 2026年8月の出荷時に
baseUrlで変数を受け付けない問題を修正しましたが、それ以前のバージョンを固定して問題を回避するのは避けてください。現在は Atlassian が対策済みです。問題を回避するために古いリリースを固定しないでください:バージョン 13.2.0 以前は 2027年2月3日に動作しなくなります.
パネル内からリモートを呼び出すには、invokeRemote を使用します:
import { invokeRemote } from '@forge/bridge';
const res = await invokeRemote({ path: '/panel-data', method: 'GET' });
console.log(res.body);
If your backend needs to call Atlassian APIs, enable the tokens on the endpoint:
modules:
endpoint:
- key: panel-endpoint
remote: backend
auth:
appSystemToken:
enabled: true
appUserToken:
enabled: true
permissions:
scopes:
- read:jira-work
- read:app-system-token
- read:app-user-token
Enable only what you use. For frontend and trigger calls, auth set on the remote itself does not apply. Tokens arrive in the x-forge-oauth-system and x-forge-oauth-user headers. Treat them as opaque, and send API requests to the app.apiBaseUrl found in the FIT.
Step 3: Forge Invocation Token の検証
Your tunnel URL is public. Anyone who finds it can send it a request, so verification belongs in your first commit, not your pre-launch checklist.
Forge sends the FIT as a bearer token:
Authorization: Bearer <forge-invocation-token>
It is a signed JWT. Atlassian の要件 come down to this:
- 署名を Atlassian の JWKS と照合して検証する。
- オーディエンスをアプリ ID に設定することを要求する。
app.idクレームが信頼できるソース、例えばデベロッパーコンソールからのアプリ ID と一致することを確認する。トークン自体から得られた値を使わないこと。
Atlassian のサンプルコードでは発行者 forge/invocation-token の検証も求められます。
以下は jose ライブラリを使った小さな Express サーバーの例です。 依存関係を npm install express jose でインストールし、これを server.mjs として保存します:
import express from 'express';
import { createRemoteJWKSet, jwtVerify } from 'jose';
import { pathToFileURL } from 'node:url';
const JWKS_URL =
'https://forge.cdn.prod.atlassian-dev.net/.well-known/jwks.json';
export function createApp({ appId, jwks, allowedEnv }) {
if (!appId) throw new Error('FORGE_APP_ID is required');
const app = express();
async function requireFit(req, res, next) {
const [scheme, token] = (req.headers.authorization ?? '').split(' ');
if (scheme !== 'Bearer' || !token) return res.sendStatus(401);
try {
const { payload } = await jwtVerify(token, jwks, {
issuer: 'forge/invocation-token',
audience: appId,
requiredClaims: ['exp'],
});
if (payload.app?.id !== appId) return res.sendStatus(401);
if (allowedEnv && payload.app?.environment?.type !== allowedEnv) {
return res.status(403).json({ error: 'wrong environment' });
}
req.fit = payload;
next();
} catch (err) {
console.warn('FIT rejected:', err.code ?? err.message);
res.sendStatus(401);
}
}
// Order matters: authenticate first, parse the body second
const forge = [requireFit, express.json({ limit: '1mb' })];
app.get('/panel-data', forge, (req, res) => {
res.json({ installation: req.fit.app.installationId });
});
app.post('/events/issue-created', forge, (req, res) => {
// Demo only: persist the event to a durable queue before replying
res.status(202).json({ accepted: true });
});
return app;
}
if (import.meta.url === pathToFileURL(process.argv[1]).href) {
createApp({
appId: process.env.FORGE_APP_ID,
jwks: createRemoteJWKSet(new URL(JWKS_URL)),
allowedEnv: process.env.ALLOWED_FORGE_ENV,
}).listen(3000, () => console.log('Listening on :3000'));
}
Run it with your full app ID, which is the app.id value in manifest.yml:
FORGE_APP_ID="ari:cloud:ecosystem::app/<your-uuid>" \\
ALLOWED_FORGE_ENV=DEVELOPMENT \\
node server.mjs
Each Forge route lists the forge middleware explicitly, so add it to every new one. The ALLOWED_FORGE_ENV check is an extra safeguard: if a staging or production installation is ever pointed at your laptop by mistake, the server refuses it.
Test the negative case first:
curl -i https://acme-forge-dev.instatunnel.my/panel-data
You should get 401. Then open the panel on your development site and confirm that your server logs no rejection and the call returns data.
Isolated Cloud: if the token carries an icLabel claim, it must be verified against a different JWKS URL. Atlassian requires validating the label against ^[a-z0-9_-]{1,50}$ before building that URL. The sample above covers commercial cloud only.
Step 4: リモート契約を尊重する
Several contract rules explain bugs that look like tunnel problems:
| 挙動 | UI モジュールの呼び出し | イベントおよびスケジュールトリガー |
|---|---|---|
| Methods | GET, POST, PUT, PATCH, DELETE | POST |
| Timeout | 25 秒 | 5 秒 |
| Retries | None | 4 |
- Redirects are errors. Any
3xxcounts as failure, so watch for trailing-slash redirects and framework HTTPS redirects that misread the proxy. - Shape your errors. For
invokeRemote, non-2xxresponses other than401must include a body, and anyContent-Typethey set must beapplication/json. Keep401for FIT validation failures. - Acknowledge events fast. The five-second budget includes the trip through your tunnel. A paused breakpoint in your handler will blow through it.
- Expect redelivery. A non-
2xxresponse or timeout on an event delivery is retried after 60 seconds by default. The request body carries aretryContextwith the retry count and reason. - Make handlers idempotent. A request that timed out may still have finished its work on your side.
- Don’t treat retries as a queue. They are limited, so don’t count on events waiting while your laptop is asleep.
The sample’s 202 is only safe for demonstration. In production, write the event to a durable queue before acknowledging it, or a crash can lose it.
Also keep password or Basic Auth gates off this tunnel. Forge already uses the Authorization header for the FIT and has no way to answer your tunnel’s login prompt. The FIT check is your access control.
The mid-migration trap: two kinds of token
During an incremental migration, one backend may serve both Forge modules and remaining connectModules. They don’t authenticate the same way:
- Forge Remote calls send
Authorization: Bearer <FIT>. - Connect module calls still use Connect JWT, normally sent as
Authorization: JWT <token>. Thejwtquery parameter is deprecated.
Don’t feed one into the other’s validator, and don’t disable authentication to get past a 401. Keep two strict verifiers: your existing Connect middleware on Connect routes, and the FIT middleware on Forge routes.
Check these as well:
- The Connect remote. A manifest with
connectModulesmust setapp.connect.remoteto the remote that holds your ConnectbaseUrl. If that is the remote you point at your tunnel, Connect module traffic moves with it. - App keys.
app.connect.keyisn’t environment-specific by itself, but you can bind it to a manifest variable. In production it must match your existing Connect key, and it can’t be changed after the first production deploy. - Stored tenant data. Connect アプリは通常
clientKeyでデータをキー付けします。Forge はinstallationIdを使用します。これはアップグレードを生き延びますが、再インストール時に変更されます。Atlassian はclientKeyを取得する2つの方法 を提供しており、それらをマッピングできます。サポート終了後は利用できなくなると述べています。 - Behaviour differences. Forge モジュールは未ライセンスのユーザーおよび匿名ユーザーに対する明示的なオプトインを必要とします [リンク先], そして Forge の課題パネルは
contentPresentConditionsをサポートしていません。
Troubleshooting checklist
Nothing reaches your server. Confirm the tunnel and local server are running. Check that you deployed with REMOTE_BASE_URL set and that the site’s installation has been upgraded.
Every request returns 401. Check that FORGE_APP_ID is the full ARI, not a bare UUID. Read the server’s FIT rejected line, check your system clock and confirm your machine can reach the JWKS URL.
A replayed request fails. FITs expire, and the example token in Atlassian’s docs is valid for only 25 seconds. Trigger a fresh invocation instead of resending a captured one.
Events arrive repeatedly. Your handler is probably slow or returning a non-2xx status.
OAuth headers are missing. Enable the tokens on the endpoint and add the scopes. User tokens are not sent when there is no user in session, such as for scheduled triggers.
forge tunnel is listening but receives nothing. Atlassian’s docs flag Chrome’s Local Network Access setting: check that chrome://flags/#local-network-access-check isn’t set to Enabled (Blocking). This affects the Forge tunnel path, so test your remote tunnel separately with curl.
Your UI dev server wants port 3000 too. If you use forge tunnel with a local dev server for Custom UI, run it and your backend on different ports.
Your logs look too helpful. Remove any logging of authorization, x-forge-oauth-system or x-forge-oauth-user. Atlassian says never to share or log OAuth access tokens.
A 57-day plan
- This week: convert the descriptor if you haven’t, publish your migration declaration, and list every Connect module and backend route.
- Mid-December: get FIT verification working and migrate your highest-traffic module.
- Before the holidays: build the
clientKeytoinstallationIdmapping and confirm it against real installation data. - Early January: test upgrades from a real Connect installation, including data and permission approval.
- Mid-January: confirm production deploys use your production URL, load-test, and leave time for any admin approvals.
A tunnel is a development tool. Production remotes belong on infrastructure with monitoring, redundancy and an on-call owner.
One more date for after the migration: from February 1, 2027, Forge plans to delete resources in idle non-production environments, 90 days after the last deployment for development and 180 days for staging. Redeploying restores them.
よくある質問
Will my Connect app stop working on January 31, 2027?
Atlassian describes that date as the start of end of support, not a universal shutdown. It also warns that Connect apps will not continue in a steady state, and that some will stop functioning without advance notice.
Can I use localhost as a Forge Remote baseUrl?
No, not for a backend on your own machine. Forge calls remotes from Atlassian’s cloud, so yours needs a publicly reachable HTTPS URL.
Does forge tunnel expose my remote backend?
No. It handles your Forge app’s code and resources. A separately running backend needs its own HTTPS tunnel.
Do I have to rewrite my backend?
Not necessarily. Forge Remote can keep your business logic in place, but authentication, installation identity, manifest configuration and some API access will need changes.
The bottom line
The January date is close, but the local setup is small: one stable subdomain, one manifest variable and one strict token check. Get those working first. Then you can run the rest of the migration against a real development site, with your debugger attached and your existing backend still doing the work.
Related InstaTunnel pages
Continue from this article into the most relevant product guides and workflows.
Related Topics
Keep building with InstaTunnel
Read the docs for implementation details or compare plans before you ship.