Organisation API Token

Dave Poole November 16, 2023

We have a docker container that we include in all our CI/CD workflows that publishes generates and publishes documentation to Confluence.

At present this works by having two GitHub organisation secrets containing

  • Confluence user name
  • PAT token for that user

The problem I am trying to solve is that we don't want the user to be locked to an individual with their expiring PAT token.  In effect we want a service account to use with our CI/CD process.

Is there an official way of doing this?

Is it simply a case of creating a CICD user just as for any other account with an associated PAT token?

1 answer

0 votes
marc -Collabello--Phase Locked-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 16, 2023

There is no "official" way to do this except to build a Confluence cloud addon with an api which is exposed to your container.  This is a lot of work and maintenance.

The pragmatic way is to use a service account user, give this account minimal rights, and create an API token for this account.  This allows you to access the Confluence cloud API with BasicAuth.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events