mirror of
https://github.com/fosrl/pangolin.git
synced 2026-01-28 22:00:51 +00:00
Merge branch 'main' into dev
This commit is contained in:
32
.github/workflows/cicd.yml
vendored
32
.github/workflows/cicd.yml
vendored
@@ -339,37 +339,37 @@ jobs:
|
|||||||
TAG=${{ env.TAG }}
|
TAG=${{ env.TAG }}
|
||||||
MAJOR_TAG=$(echo $TAG | cut -d. -f1)
|
MAJOR_TAG=$(echo $TAG | cut -d. -f1)
|
||||||
MINOR_TAG=$(echo $TAG | cut -d. -f1,2)
|
MINOR_TAG=$(echo $TAG | cut -d. -f1,2)
|
||||||
|
|
||||||
echo "Waiting for multi-arch manifests to be ready..."
|
echo "Waiting for multi-arch manifests to be ready..."
|
||||||
sleep 30
|
sleep 30
|
||||||
|
|
||||||
# Determine if this is an RC release
|
# Determine if this is an RC release
|
||||||
IS_RC="false"
|
IS_RC="false"
|
||||||
if echo "$TAG" | grep -qE "rc[0-9]+$"; then
|
if [[ "$TAG" == *"-rc."* ]]; then
|
||||||
IS_RC="true"
|
IS_RC="true"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$IS_RC" = "true" ]; then
|
if [ "$IS_RC" = "true" ]; then
|
||||||
echo "RC release detected - copying version-specific tags only"
|
echo "RC release detected - copying version-specific tags only"
|
||||||
|
|
||||||
# SQLite OSS
|
# SQLite OSS
|
||||||
echo "Copying ${{ env.DOCKERHUB_IMAGE }}:${TAG} -> ${{ env.GHCR_IMAGE }}:${TAG}"
|
echo "Copying ${{ env.DOCKERHUB_IMAGE }}:${TAG} -> ${{ env.GHCR_IMAGE }}:${TAG}"
|
||||||
skopeo copy --all --retry-times 3 \
|
skopeo copy --all --retry-times 3 \
|
||||||
docker://$DOCKERHUB_IMAGE:$TAG \
|
docker://$DOCKERHUB_IMAGE:$TAG \
|
||||||
docker://$GHCR_IMAGE:$TAG
|
docker://$GHCR_IMAGE:$TAG
|
||||||
|
|
||||||
# PostgreSQL OSS
|
# PostgreSQL OSS
|
||||||
echo "Copying ${{ env.DOCKERHUB_IMAGE }}:postgresql-${TAG} -> ${{ env.GHCR_IMAGE }}:postgresql-${TAG}"
|
echo "Copying ${{ env.DOCKERHUB_IMAGE }}:postgresql-${TAG} -> ${{ env.GHCR_IMAGE }}:postgresql-${TAG}"
|
||||||
skopeo copy --all --retry-times 3 \
|
skopeo copy --all --retry-times 3 \
|
||||||
docker://$DOCKERHUB_IMAGE:postgresql-$TAG \
|
docker://$DOCKERHUB_IMAGE:postgresql-$TAG \
|
||||||
docker://$GHCR_IMAGE:postgresql-$TAG
|
docker://$GHCR_IMAGE:postgresql-$TAG
|
||||||
|
|
||||||
# SQLite Enterprise
|
# SQLite Enterprise
|
||||||
echo "Copying ${{ env.DOCKERHUB_IMAGE }}:ee-${TAG} -> ${{ env.GHCR_IMAGE }}:ee-${TAG}"
|
echo "Copying ${{ env.DOCKERHUB_IMAGE }}:ee-${TAG} -> ${{ env.GHCR_IMAGE }}:ee-${TAG}"
|
||||||
skopeo copy --all --retry-times 3 \
|
skopeo copy --all --retry-times 3 \
|
||||||
docker://$DOCKERHUB_IMAGE:ee-$TAG \
|
docker://$DOCKERHUB_IMAGE:ee-$TAG \
|
||||||
docker://$GHCR_IMAGE:ee-$TAG
|
docker://$GHCR_IMAGE:ee-$TAG
|
||||||
|
|
||||||
# PostgreSQL Enterprise
|
# PostgreSQL Enterprise
|
||||||
echo "Copying ${{ env.DOCKERHUB_IMAGE }}:ee-postgresql-${TAG} -> ${{ env.GHCR_IMAGE }}:ee-postgresql-${TAG}"
|
echo "Copying ${{ env.DOCKERHUB_IMAGE }}:ee-postgresql-${TAG} -> ${{ env.GHCR_IMAGE }}:ee-postgresql-${TAG}"
|
||||||
skopeo copy --all --retry-times 3 \
|
skopeo copy --all --retry-times 3 \
|
||||||
@@ -377,7 +377,7 @@ jobs:
|
|||||||
docker://$GHCR_IMAGE:ee-postgresql-$TAG
|
docker://$GHCR_IMAGE:ee-postgresql-$TAG
|
||||||
else
|
else
|
||||||
echo "Regular release detected - copying all tags (latest, major, minor, full version)"
|
echo "Regular release detected - copying all tags (latest, major, minor, full version)"
|
||||||
|
|
||||||
# SQLite OSS - all tags
|
# SQLite OSS - all tags
|
||||||
for TAG_SUFFIX in "latest" "$MAJOR_TAG" "$MINOR_TAG" "$TAG"; do
|
for TAG_SUFFIX in "latest" "$MAJOR_TAG" "$MINOR_TAG" "$TAG"; do
|
||||||
echo "Copying ${{ env.DOCKERHUB_IMAGE }}:${TAG_SUFFIX} -> ${{ env.GHCR_IMAGE }}:${TAG_SUFFIX}"
|
echo "Copying ${{ env.DOCKERHUB_IMAGE }}:${TAG_SUFFIX} -> ${{ env.GHCR_IMAGE }}:${TAG_SUFFIX}"
|
||||||
@@ -385,7 +385,7 @@ jobs:
|
|||||||
docker://$DOCKERHUB_IMAGE:$TAG_SUFFIX \
|
docker://$DOCKERHUB_IMAGE:$TAG_SUFFIX \
|
||||||
docker://$GHCR_IMAGE:$TAG_SUFFIX
|
docker://$GHCR_IMAGE:$TAG_SUFFIX
|
||||||
done
|
done
|
||||||
|
|
||||||
# PostgreSQL OSS - all tags
|
# PostgreSQL OSS - all tags
|
||||||
for TAG_SUFFIX in "latest" "$MAJOR_TAG" "$MINOR_TAG" "$TAG"; do
|
for TAG_SUFFIX in "latest" "$MAJOR_TAG" "$MINOR_TAG" "$TAG"; do
|
||||||
echo "Copying ${{ env.DOCKERHUB_IMAGE }}:postgresql-${TAG_SUFFIX} -> ${{ env.GHCR_IMAGE }}:postgresql-${TAG_SUFFIX}"
|
echo "Copying ${{ env.DOCKERHUB_IMAGE }}:postgresql-${TAG_SUFFIX} -> ${{ env.GHCR_IMAGE }}:postgresql-${TAG_SUFFIX}"
|
||||||
@@ -393,7 +393,7 @@ jobs:
|
|||||||
docker://$DOCKERHUB_IMAGE:postgresql-$TAG_SUFFIX \
|
docker://$DOCKERHUB_IMAGE:postgresql-$TAG_SUFFIX \
|
||||||
docker://$GHCR_IMAGE:postgresql-$TAG_SUFFIX
|
docker://$GHCR_IMAGE:postgresql-$TAG_SUFFIX
|
||||||
done
|
done
|
||||||
|
|
||||||
# SQLite Enterprise - all tags
|
# SQLite Enterprise - all tags
|
||||||
for TAG_SUFFIX in "latest" "$MAJOR_TAG" "$MINOR_TAG" "$TAG"; do
|
for TAG_SUFFIX in "latest" "$MAJOR_TAG" "$MINOR_TAG" "$TAG"; do
|
||||||
echo "Copying ${{ env.DOCKERHUB_IMAGE }}:ee-${TAG_SUFFIX} -> ${{ env.GHCR_IMAGE }}:ee-${TAG_SUFFIX}"
|
echo "Copying ${{ env.DOCKERHUB_IMAGE }}:ee-${TAG_SUFFIX} -> ${{ env.GHCR_IMAGE }}:ee-${TAG_SUFFIX}"
|
||||||
@@ -401,7 +401,7 @@ jobs:
|
|||||||
docker://$DOCKERHUB_IMAGE:ee-$TAG_SUFFIX \
|
docker://$DOCKERHUB_IMAGE:ee-$TAG_SUFFIX \
|
||||||
docker://$GHCR_IMAGE:ee-$TAG_SUFFIX
|
docker://$GHCR_IMAGE:ee-$TAG_SUFFIX
|
||||||
done
|
done
|
||||||
|
|
||||||
# PostgreSQL Enterprise - all tags
|
# PostgreSQL Enterprise - all tags
|
||||||
for TAG_SUFFIX in "latest" "$MAJOR_TAG" "$MINOR_TAG" "$TAG"; do
|
for TAG_SUFFIX in "latest" "$MAJOR_TAG" "$MINOR_TAG" "$TAG"; do
|
||||||
echo "Copying ${{ env.DOCKERHUB_IMAGE }}:ee-postgresql-${TAG_SUFFIX} -> ${{ env.GHCR_IMAGE }}:ee-postgresql-${TAG_SUFFIX}"
|
echo "Copying ${{ env.DOCKERHUB_IMAGE }}:ee-postgresql-${TAG_SUFFIX} -> ${{ env.GHCR_IMAGE }}:ee-postgresql-${TAG_SUFFIX}"
|
||||||
@@ -410,7 +410,7 @@ jobs:
|
|||||||
docker://$GHCR_IMAGE:ee-postgresql-$TAG_SUFFIX
|
docker://$GHCR_IMAGE:ee-postgresql-$TAG_SUFFIX
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "All images copied successfully to GHCR!"
|
echo "All images copied successfully to GHCR!"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
@@ -442,7 +442,7 @@ jobs:
|
|||||||
|
|
||||||
# Determine if this is an RC release
|
# Determine if this is an RC release
|
||||||
IS_RC="false"
|
IS_RC="false"
|
||||||
if echo "$TAG" | grep -qE "rc[0-9]+$"; then
|
if [[ "$TAG" == *"-rc."* ]]; then
|
||||||
IS_RC="true"
|
IS_RC="true"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -490,11 +490,11 @@ jobs:
|
|||||||
--certificate-oidc-issuer "${issuer}" \
|
--certificate-oidc-issuer "${issuer}" \
|
||||||
--certificate-identity-regexp "${id_regex}" \
|
--certificate-identity-regexp "${id_regex}" \
|
||||||
"${REF}" -o text
|
"${REF}" -o text
|
||||||
|
|
||||||
echo "✓ Successfully signed and verified ${BASE_IMAGE}:${IMAGE_TAG}"
|
echo "✓ Successfully signed and verified ${BASE_IMAGE}:${IMAGE_TAG}"
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "All images signed and verified successfully!"
|
echo "All images signed and verified successfully!"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ import { fromError } from "zod-validation-error";
|
|||||||
|
|
||||||
import type { Request, Response, NextFunction } from "express";
|
import type { Request, Response, NextFunction } from "express";
|
||||||
import { build } from "@server/build";
|
import { build } from "@server/build";
|
||||||
import { getOrgTierData } from "@server/lib/billing";
|
import { getOrgTierData } from "#private/lib/billing";
|
||||||
import { TierId } from "@server/lib/billing/tiers";
|
import { TierId } from "@server/lib/billing/tiers";
|
||||||
import {
|
import {
|
||||||
approvals,
|
approvals,
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ export const handleOlmRegisterMessage: MessageHandler = async (context) => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!policyCheck.policies?.passwordAge?.compliant === false) {
|
if (policyCheck.policies?.passwordAge?.compliant === false) {
|
||||||
logger.warn(
|
logger.warn(
|
||||||
`Olm user ${olm.userId} has non-compliant password age for org ${orgId}`
|
`Olm user ${olm.userId} has non-compliant password age for org ${orgId}`
|
||||||
);
|
);
|
||||||
@@ -159,7 +159,7 @@ export const handleOlmRegisterMessage: MessageHandler = async (context) => {
|
|||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
} else if (
|
} else if (
|
||||||
!policyCheck.policies?.maxSessionLength?.compliant === false
|
policyCheck.policies?.maxSessionLength?.compliant === false
|
||||||
) {
|
) {
|
||||||
logger.warn(
|
logger.warn(
|
||||||
`Olm user ${olm.userId} has non-compliant session length for org ${orgId}`
|
`Olm user ${olm.userId} has non-compliant session length for org ${orgId}`
|
||||||
|
|||||||
@@ -19,17 +19,6 @@ export interface ApprovalFeedPageProps {
|
|||||||
export default async function ApprovalFeedPage(props: ApprovalFeedPageProps) {
|
export default async function ApprovalFeedPage(props: ApprovalFeedPageProps) {
|
||||||
const params = await props.params;
|
const params = await props.params;
|
||||||
|
|
||||||
let approvals: ApprovalItem[] = [];
|
|
||||||
const res = await internal
|
|
||||||
.get<
|
|
||||||
AxiosResponse<{ approvals: ApprovalItem[] }>
|
|
||||||
>(`/org/${params.orgId}/approvals`, await authCookieHeader())
|
|
||||||
.catch((e) => {});
|
|
||||||
|
|
||||||
if (res && res.status === 200) {
|
|
||||||
approvals = res.data.data.approvals;
|
|
||||||
}
|
|
||||||
|
|
||||||
let org: GetOrgResponse | null = null;
|
let org: GetOrgResponse | null = null;
|
||||||
const orgRes = await getCachedOrg(params.orgId);
|
const orgRes = await getCachedOrg(params.orgId);
|
||||||
|
|
||||||
|
|||||||
@@ -143,7 +143,6 @@ export default function LoginOrgSelector({
|
|||||||
<IdpLoginButtons
|
<IdpLoginButtons
|
||||||
idps={idps}
|
idps={idps}
|
||||||
redirect={redirect}
|
redirect={redirect}
|
||||||
orgId={org.orgId}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user